mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[UXTHEME] -Don't change the behaviour of DefWindowProc if SetWindowRgn was called before
This commit is contained in:
parent
4067eb1454
commit
8f98574e1d
1 changed files with 15 additions and 3 deletions
|
@ -268,7 +268,13 @@ int OnPostWinPosChanged(HWND hWnd, WINDOWPOS* pWinPos)
|
||||||
static LRESULT CALLBACK
|
static LRESULT CALLBACK
|
||||||
ThemeDefWindowProcW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
ThemeDefWindowProcW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
if(!IsAppThemed() || !(GetThemeAppProperties() & STAP_ALLOW_NONCLIENT))
|
PWND_DATA pwndData;
|
||||||
|
|
||||||
|
pwndData = (PWND_DATA)GetPropW(hWnd, (LPCWSTR)MAKEINTATOM(atWndContext));
|
||||||
|
|
||||||
|
if(!IsAppThemed() ||
|
||||||
|
!(GetThemeAppProperties() & STAP_ALLOW_NONCLIENT) ||
|
||||||
|
(pwndData && pwndData->HasAppDefinedRgn))
|
||||||
{
|
{
|
||||||
return g_user32ApiHook.DefWindowProcW(hWnd,
|
return g_user32ApiHook.DefWindowProcW(hWnd,
|
||||||
Msg,
|
Msg,
|
||||||
|
@ -286,7 +292,13 @@ ThemeDefWindowProcW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
||||||
static LRESULT CALLBACK
|
static LRESULT CALLBACK
|
||||||
ThemeDefWindowProcA(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
ThemeDefWindowProcA(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
if(!IsAppThemed() || !(GetThemeAppProperties() & STAP_ALLOW_NONCLIENT))
|
PWND_DATA pwndData;
|
||||||
|
|
||||||
|
pwndData = (PWND_DATA)GetPropW(hWnd, (LPCWSTR)MAKEINTATOM(atWndContext));
|
||||||
|
|
||||||
|
if(!IsAppThemed() ||
|
||||||
|
!(GetThemeAppProperties() & STAP_ALLOW_NONCLIENT) ||
|
||||||
|
(pwndData && pwndData->HasAppDefinedRgn))
|
||||||
{
|
{
|
||||||
return g_user32ApiHook.DefWindowProcA(hWnd,
|
return g_user32ApiHook.DefWindowProcA(hWnd,
|
||||||
Msg,
|
Msg,
|
||||||
|
|
Loading…
Reference in a new issue