Commit 74d7ef84 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Manage internal ctl3d auto subclass flag.

parent bed2b9c3
...@@ -21,13 +21,17 @@ ...@@ -21,13 +21,17 @@
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "wine/winuser16.h" #include "wine/winuser16.h"
static BOOL16 CTL3D16_is_auto_subclass = FALSE;
BOOL16 WINAPI Ctl3dAutoSubclass16(HINSTANCE16 hInst) BOOL16 WINAPI Ctl3dAutoSubclass16(HINSTANCE16 hInst)
{ {
CTL3D16_is_auto_subclass = TRUE;
return TRUE; return TRUE;
} }
BOOL16 WINAPI Ctl3dAutoSubclassEx16(HINSTANCE16 hInst, DWORD type) BOOL16 WINAPI Ctl3dAutoSubclassEx16(HINSTANCE16 hInst, DWORD type)
{ {
CTL3D16_is_auto_subclass = TRUE;
return TRUE; return TRUE;
} }
...@@ -46,7 +50,6 @@ HBRUSH WINAPI Ctl3dCtlColorEx16(UINT16 msg, WPARAM16 wParam, LPARAM lParam) ...@@ -46,7 +50,6 @@ HBRUSH WINAPI Ctl3dCtlColorEx16(UINT16 msg, WPARAM16 wParam, LPARAM lParam)
return 0; return 0;
} }
LONG WINAPI Ctl3dDlgFramePaint16(HWND16 hwnd, UINT16 msg, WPARAM16 wParam, LPARAM lParam) LONG WINAPI Ctl3dDlgFramePaint16(HWND16 hwnd, UINT16 msg, WPARAM16 wParam, LPARAM lParam)
{ {
return DefWindowProc16(hwnd, msg, wParam, lParam); return DefWindowProc16(hwnd, msg, wParam, lParam);
...@@ -64,7 +67,7 @@ WORD WINAPI Ctl3dGetVer16(void) ...@@ -64,7 +67,7 @@ WORD WINAPI Ctl3dGetVer16(void)
BOOL16 WINAPI Ctl3dIsAutoSubclass16(void) BOOL16 WINAPI Ctl3dIsAutoSubclass16(void)
{ {
return FALSE; return CTL3D16_is_auto_subclass;
} }
BOOL16 WINAPI Ctl3dRegister16(HINSTANCE16 hInst) BOOL16 WINAPI Ctl3dRegister16(HINSTANCE16 hInst)
...@@ -94,15 +97,16 @@ BOOL16 WINAPI Ctl3dSubclassDlgEx16(HWND16 hwnd, DWORD types) ...@@ -94,15 +97,16 @@ BOOL16 WINAPI Ctl3dSubclassDlgEx16(HWND16 hwnd, DWORD types)
BOOL16 WINAPI Ctl3dUnAutoSubclass16(void) BOOL16 WINAPI Ctl3dUnAutoSubclass16(void)
{ {
CTL3D16_is_auto_subclass = FALSE;
return FALSE; return FALSE;
} }
BOOL16 WINAPI Ctl3dUnregister16(HINSTANCE16 hInst) BOOL16 WINAPI Ctl3dUnregister16(HINSTANCE16 hInst)
{ {
CTL3D16_is_auto_subclass = FALSE;
return TRUE; return TRUE;
} }
BOOL16 WINAPI Ctl3dUnsubclassCtl16(HWND16 hwnd) BOOL16 WINAPI Ctl3dUnsubclassCtl16(HWND16 hwnd)
{ {
return FALSE; return FALSE;
......
...@@ -21,13 +21,17 @@ ...@@ -21,13 +21,17 @@
#include "winbase.h" #include "winbase.h"
#include "winuser.h" #include "winuser.h"
static BOOL CTL3D_is_auto_subclass = FALSE;
BOOL WINAPI Ctl3dAutoSubclass(HINSTANCE hInst) BOOL WINAPI Ctl3dAutoSubclass(HINSTANCE hInst)
{ {
CTL3D_is_auto_subclass = TRUE;
return TRUE; return TRUE;
} }
BOOL WINAPI Ctl3dAutoSubclassEx(HINSTANCE hInst, DWORD type) BOOL WINAPI Ctl3dAutoSubclassEx(HINSTANCE hInst, DWORD type)
{ {
CTL3D_is_auto_subclass = TRUE;
return TRUE; return TRUE;
} }
...@@ -46,7 +50,6 @@ HBRUSH WINAPI Ctl3dCtlColorEx(UINT msg, WPARAM wParam, LPARAM lParam) ...@@ -46,7 +50,6 @@ HBRUSH WINAPI Ctl3dCtlColorEx(UINT msg, WPARAM wParam, LPARAM lParam)
return 0; return 0;
} }
LONG WINAPI Ctl3dDlgFramePaint(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) LONG WINAPI Ctl3dDlgFramePaint(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{ {
return DefWindowProcA(hwnd, msg, wParam, lParam); return DefWindowProcA(hwnd, msg, wParam, lParam);
...@@ -64,7 +67,7 @@ WORD WINAPI Ctl3dGetVer(void) ...@@ -64,7 +67,7 @@ WORD WINAPI Ctl3dGetVer(void)
BOOL WINAPI Ctl3dIsAutoSubclass(void) BOOL WINAPI Ctl3dIsAutoSubclass(void)
{ {
return FALSE; return CTL3D_is_auto_subclass;
} }
BOOL WINAPI Ctl3dRegister(HINSTANCE hInst) BOOL WINAPI Ctl3dRegister(HINSTANCE hInst)
...@@ -94,15 +97,16 @@ BOOL WINAPI Ctl3dSubclassDlgEx(HWND hwnd, DWORD types) ...@@ -94,15 +97,16 @@ BOOL WINAPI Ctl3dSubclassDlgEx(HWND hwnd, DWORD types)
BOOL WINAPI Ctl3dUnAutoSubclass(void) BOOL WINAPI Ctl3dUnAutoSubclass(void)
{ {
CTL3D_is_auto_subclass = FALSE;
return FALSE; return FALSE;
} }
BOOL WINAPI Ctl3dUnregister(HINSTANCE hInst) BOOL WINAPI Ctl3dUnregister(HINSTANCE hInst)
{ {
CTL3D_is_auto_subclass = FALSE;
return TRUE; return TRUE;
} }
BOOL WINAPI Ctl3dUnsubclassCtl(HWND hwnd) BOOL WINAPI Ctl3dUnsubclassCtl(HWND hwnd)
{ {
return FALSE; return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment