4 * Copyright (c) 2003 Dmitry Timoshkov
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 static BOOL CTL3D_is_auto_subclass
= FALSE
;
29 BOOL WINAPI
Ctl3dAutoSubclass(HINSTANCE hInst
)
31 CTL3D_is_auto_subclass
= TRUE
;
35 BOOL WINAPI
Ctl3dAutoSubclassEx(HINSTANCE hInst
, DWORD type
)
37 CTL3D_is_auto_subclass
= TRUE
;
41 BOOL WINAPI
Ctl3dColorChange(void)
46 HBRUSH WINAPI
Ctl3dCtlColor(HDC hdc
, HWND hwnd
)
51 HBRUSH WINAPI
Ctl3dCtlColorEx(UINT msg
, WPARAM wParam
, LPARAM lParam
)
56 LONG WINAPI
Ctl3dDlgFramePaint(HWND hwnd
, UINT msg
, WPARAM wParam
, LPARAM lParam
)
58 return DefWindowProcA(hwnd
, msg
, wParam
, lParam
);
61 BOOL WINAPI
Ctl3dEnabled(void)
66 WORD WINAPI
Ctl3dGetVer(void)
68 return MAKEWORD(31,2);
71 BOOL WINAPI
Ctl3dIsAutoSubclass(void)
73 return CTL3D_is_auto_subclass
;
76 BOOL WINAPI
Ctl3dRegister(HINSTANCE hInst
)
81 BOOL WINAPI
Ctl3dSubclassCtl(HWND hwnd
)
86 BOOL WINAPI
Ctl3dSubclassCtlEx(HWND hwnd
, int type
)
91 BOOL WINAPI
Ctl3dSubclassDlg(HWND hwnd
, WORD types
)
96 BOOL WINAPI
Ctl3dSubclassDlgEx(HWND hwnd
, DWORD types
)
101 BOOL WINAPI
Ctl3dUnAutoSubclass(void)
103 CTL3D_is_auto_subclass
= FALSE
;
107 BOOL WINAPI
Ctl3dUnregister(HINSTANCE hInst
)
109 CTL3D_is_auto_subclass
= FALSE
;
113 BOOL WINAPI
Ctl3dUnsubclassCtl(HWND hwnd
)
118 void WINAPI
Ctl3dWinIniChange(void)
122 /***********************************************************************
123 * ComboWndProc3d (CTL3D32.10)
125 LRESULT WINAPI
ComboWndProc3d(HWND hwnd
,UINT msg
,WPARAM wparam
,LPARAM lparam
)
130 /***********************************************************************
131 * BtnWndProc3d (CTL3D32.7)
133 LRESULT WINAPI
BtnWndProc3d(HWND hwnd
,UINT msg
,WPARAM wparam
,LPARAM lparam
)
138 /***********************************************************************
139 * StaticWndProc3d (CTL3D32.11)
141 LRESULT WINAPI
StaticWndProc3d(HWND hwnd
,UINT msg
,WPARAM wparam
,LPARAM lparam
)
146 /***********************************************************************
147 * EditWndProc3d (CTL3D32.8)
149 LRESULT WINAPI
EditWndProc3d(HWND hwnd
,UINT msg
,WPARAM wparam
,LPARAM lparam
)
154 /***********************************************************************
155 * ListWndProc3d (CTL3D32.9)
157 LRESULT WINAPI
ListWndProc3d(HWND hwnd
,UINT msg
,WPARAM wparam
,LPARAM lparam
)
162 /***********************************************************************
163 * Ctl3dDlgProc (CTL3D32.17)
165 LRESULT WINAPI
Ctl3dDlgProc(HWND hwnd
,UINT msg
,WPARAM wparam
,LPARAM lparam
)