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 @@
#include "wine/winbase16.h"
#include "wine/winuser16.h"
static BOOL16 CTL3D16_is_auto_subclass = FALSE;
BOOL16 WINAPI Ctl3dAutoSubclass16(HINSTANCE16 hInst)
{
CTL3D16_is_auto_subclass = TRUE;
return TRUE;
}
BOOL16 WINAPI Ctl3dAutoSubclassEx16(HINSTANCE16 hInst, DWORD type)
{
CTL3D16_is_auto_subclass = TRUE;
return TRUE;
}
......@@ -46,7 +50,6 @@ HBRUSH WINAPI Ctl3dCtlColorEx16(UINT16 msg, WPARAM16 wParam, LPARAM lParam)
return 0;
}
LONG WINAPI Ctl3dDlgFramePaint16(HWND16 hwnd, UINT16 msg, WPARAM16 wParam, LPARAM lParam)
{
return DefWindowProc16(hwnd, msg, wParam, lParam);
......@@ -64,7 +67,7 @@ WORD WINAPI Ctl3dGetVer16(void)
BOOL16 WINAPI Ctl3dIsAutoSubclass16(void)
{
return FALSE;
return CTL3D16_is_auto_subclass;
}
BOOL16 WINAPI Ctl3dRegister16(HINSTANCE16 hInst)
......@@ -94,15 +97,16 @@ BOOL16 WINAPI Ctl3dSubclassDlgEx16(HWND16 hwnd, DWORD types)
BOOL16 WINAPI Ctl3dUnAutoSubclass16(void)
{
CTL3D16_is_auto_subclass = FALSE;
return FALSE;
}
BOOL16 WINAPI Ctl3dUnregister16(HINSTANCE16 hInst)
{
CTL3D16_is_auto_subclass = FALSE;
return TRUE;
}
BOOL16 WINAPI Ctl3dUnsubclassCtl16(HWND16 hwnd)
{
return FALSE;
......
......@@ -21,13 +21,17 @@
#include "winbase.h"
#include "winuser.h"
static BOOL CTL3D_is_auto_subclass = FALSE;
BOOL WINAPI Ctl3dAutoSubclass(HINSTANCE hInst)
{
CTL3D_is_auto_subclass = TRUE;
return TRUE;
}
BOOL WINAPI Ctl3dAutoSubclassEx(HINSTANCE hInst, DWORD type)
{
CTL3D_is_auto_subclass = TRUE;
return TRUE;
}
......@@ -46,7 +50,6 @@ HBRUSH WINAPI Ctl3dCtlColorEx(UINT msg, WPARAM wParam, LPARAM lParam)
return 0;
}
LONG WINAPI Ctl3dDlgFramePaint(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
return DefWindowProcA(hwnd, msg, wParam, lParam);
......@@ -64,7 +67,7 @@ WORD WINAPI Ctl3dGetVer(void)
BOOL WINAPI Ctl3dIsAutoSubclass(void)
{
return FALSE;
return CTL3D_is_auto_subclass;
}
BOOL WINAPI Ctl3dRegister(HINSTANCE hInst)
......@@ -94,15 +97,16 @@ BOOL WINAPI Ctl3dSubclassDlgEx(HWND hwnd, DWORD types)
BOOL WINAPI Ctl3dUnAutoSubclass(void)
{
CTL3D_is_auto_subclass = FALSE;
return FALSE;
}
BOOL WINAPI Ctl3dUnregister(HINSTANCE hInst)
{
CTL3D_is_auto_subclass = FALSE;
return TRUE;
}
BOOL WINAPI Ctl3dUnsubclassCtl(HWND hwnd)
{
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