ReactOS  0.4.14-dev-114-gc8cbd56
subclass.c File Reference
#include <assert.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "commctrl.h"
#include "wine/heap.h"
#include "wine/test.h"
Include dependency graph for subclass.c:

Go to the source code of this file.

Classes

struct  message
 

Macros

#define _WIN32_WINNT   0x0501 /* For SetWindowSubclass/etc */
 
#define SEND_NEST   0x01
 
#define DELETE_SELF   0x02
 
#define DELETE_PREV   0x04
 
#define MAKEFUNC_ORD(f, ord)   (p##f = (void*)GetProcAddress(hmod, (LPSTR)(ord)))
 
#define TESTNAMED(f)
 

Functions

static BOOL (WINAPI *pSetWindowSubclass)(HWND
 
static LRESULT (WINAPI *pDefSubclassProc)(HWND
 
static void add_message (const struct message *msg)
 
static void flush_sequence (void)
 
static void ok_sequence (const struct message *expected, const char *context)
 
static LRESULT WINAPI wnd_proc_1 (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
 
static LRESULT WINAPI wnd_proc_3 (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
 
static LRESULT WINAPI wnd_proc_sub (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, UINT_PTR uldSubclass, DWORD_PTR dwRefData)
 
static void test_subclass (void)
 
static BOOL register_window_classes (void)
 
static BOOL init_function_pointers (void)
 
 START_TEST (subclass)
 

Variables

static SUBCLASSPROC
 
static UINT_PTR
 
static DWORD_PTR
 
static UINT
 
static WPARAM
 
static LPARAM
 
static int sequence_cnt
 
static int sequence_size
 
static struct messagesequence
 
static const struct message Sub_BasicTest []
 
static const struct message Sub_DeletedTest []
 
static const struct message Sub_AfterDeletedTest []
 
static const struct message Sub_OldAfterNewTest []
 
static const struct message Sub_MixTest []
 
static const struct message Sub_MixAndNestTest []
 
static const struct message Sub_MixNestDelTest []
 
static const struct message Sub_MixDelPrevTest []
 
static WNDPROC orig_proc_3
 

Macro Definition Documentation

◆ _WIN32_WINNT

#define _WIN32_WINNT   0x0501 /* For SetWindowSubclass/etc */

Definition at line 20 of file subclass.c.

◆ DELETE_PREV

#define DELETE_PREV   0x04

Definition at line 40 of file subclass.c.

◆ DELETE_SELF

#define DELETE_SELF   0x02

Definition at line 39 of file subclass.c.

◆ MAKEFUNC_ORD

#define MAKEFUNC_ORD (   f,
  ord 
)    (p##f = (void*)GetProcAddress(hmod, (LPSTR)(ord)))

◆ SEND_NEST

#define SEND_NEST   0x01

Definition at line 38 of file subclass.c.

◆ TESTNAMED

#define TESTNAMED (   f)
Value:
ptr = (void*)GetProcAddress(hmod, #f); \
ok(ptr != 0, "expected named export for " #f "\n");
static PVOID ptr
Definition: dispmode.c:27
GLfloat f
Definition: glext.h:7540
static PEXPLICIT_ACCESSW *static HMODULE hmod
Definition: security.c:141
#define GetProcAddress(x, y)
Definition: compat.h:410

Function Documentation

◆ add_message()

static void add_message ( const struct message msg)
static

Definition at line 118 of file subclass.c.

119 {
120  if (!sequence)
121  {
122  sequence_size = 10;
123  sequence = heap_alloc( sequence_size * sizeof (struct message) );
124  }
126  {
127  sequence_size *= 2;
128  sequence = heap_realloc( sequence, sequence_size * sizeof (struct message) );
129  }
130  assert(sequence);
131 
132  sequence[sequence_cnt].wParam = msg->wParam;
133  sequence[sequence_cnt].procnum = msg->procnum;
134 
135  sequence_cnt++;
136 }
Definition: tftpd.h:59
#define assert(x)
Definition: debug.h:53
static void * heap_realloc(void *mem, size_t len)
Definition: appwiz.h:70
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
static int sequence_size
Definition: subclass.c:47
static struct message * sequence
Definition: subclass.c:48
static int sequence_cnt
Definition: subclass.c:47
#define msg(x)
Definition: auth_time.c:54

Referenced by ok_sequence(), wnd_proc_1(), wnd_proc_3(), and wnd_proc_sub().

◆ BOOL()

static BOOL ( WINAPI pSetWindowSubclass)
static

◆ flush_sequence()

static void flush_sequence ( void  )
static

Definition at line 138 of file subclass.c.

139 {
141  sequence = NULL;
143 }
smooth NULL
Definition: ftsmooth.c:416
static int sequence_size
Definition: subclass.c:47
static struct message * sequence
Definition: subclass.c:48
static int sequence_cnt
Definition: subclass.c:47
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

Referenced by ok_sequence().

◆ init_function_pointers()

static BOOL init_function_pointers ( void  )
static

Definition at line 300 of file subclass.c.

301 {
302  HMODULE hmod;
303  void *ptr;
304 
305  hmod = LoadLibraryA("comctl32.dll");
306  ok(hmod != NULL, "got %p\n", hmod);
307 
308  /* Functions have to be loaded by ordinal. Only XP and W2K3 export
309  * them by name.
310  */
311 #define MAKEFUNC_ORD(f, ord) (p##f = (void*)GetProcAddress(hmod, (LPSTR)(ord)))
315 #undef MAKEFUNC_ORD
316 
317  if(!pSetWindowSubclass || !pRemoveWindowSubclass || !pDefSubclassProc)
318  {
319  win_skip("SetWindowSubclass and friends are not available\n");
320  return FALSE;
321  }
322 
323  /* test named exports */
324  ptr = GetProcAddress(hmod, "SetWindowSubclass");
325  ok(broken(ptr == 0) || ptr != 0, "expected named export for SetWindowSubclass\n");
326  if(ptr)
327  {
328 #define TESTNAMED(f) \
329  ptr = (void*)GetProcAddress(hmod, #f); \
330  ok(ptr != 0, "expected named export for " #f "\n");
333  /* GetWindowSubclass exported for V6 only */
334 #undef TESTNAMED
335  }
336 
337  return TRUE;
338 }
#define TRUE
Definition: types.h:120
#define TESTNAMED(f)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111
static PVOID ptr
Definition: dispmode.c:27
#define MAKEFUNC_ORD(f, ord)
smooth NULL
Definition: ftsmooth.c:416
LRESULT WINAPI DefSubclassProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: commctrl.c:1496
BOOL WINAPI SetWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, UINT_PTR uIDSubclass, DWORD_PTR dwRef)
Definition: commctrl.c:1261
#define broken(x)
Definition: _sntprintf.h:21
static PEXPLICIT_ACCESSW *static HMODULE hmod
Definition: security.c:141
BOOL WINAPI RemoveWindowSubclass(HWND hWnd, SUBCLASSPROC pfnSubclass, UINT_PTR uID)
Definition: commctrl.c:1390
#define ok(value,...)
Definition: atltest.h:57
#define GetProcAddress(x, y)
Definition: compat.h:410
#define win_skip
Definition: test.h:141

Referenced by START_TEST().

◆ LRESULT()

static LRESULT ( WINAPI pDefSubclassProc)
static

◆ ok_sequence()

static void ok_sequence ( const struct message expected,
const char context 
)
static

Definition at line 145 of file subclass.c.

146 {
147  static const struct message end_of_sequence = { 0, 0 };
148  const struct message *actual;
149 
150  add_message(&end_of_sequence);
151 
152  actual = sequence;
153 
154  while(expected->procnum && actual->procnum)
155  {
156  ok(expected->procnum == actual->procnum,
157  "%s: the procnum %d was expected, but got procnum %d instead\n",
158  context, expected->procnum, actual->procnum);
159  ok(expected->wParam == actual->wParam,
160  "%s: in procnum %d expecting wParam 0x%lx got 0x%lx\n",
161  context, expected->procnum, expected->wParam, actual->wParam);
162  expected++;
163  actual++;
164  }
165  ok(!expected->procnum, "Received fewer messages than expected\n");
166  ok(!actual->procnum, "Received more messages than expected\n");
167  flush_sequence();
168 }
Definition: tftpd.h:59
Definition: http.c:6587
int procnum
Definition: subclass.c:43
static void add_message(const struct message *msg)
Definition: subclass.c:118
static struct message * sequence
Definition: subclass.c:48
#define ok(value,...)
Definition: atltest.h:57
BOOL expected
Definition: store.c:2063
static void flush_sequence(void)
Definition: subclass.c:138

Referenced by test_subclass().

◆ register_window_classes()

static BOOL register_window_classes ( void  )
static

Definition at line 279 of file subclass.c.

280 {
281  WNDCLASSA cls;
282  ATOM atom;
283 
284  cls.style = 0;
285  cls.lpfnWndProc = wnd_proc_1;
286  cls.cbClsExtra = 0;
287  cls.cbWndExtra = 0;
288  cls.hInstance = GetModuleHandleA(0);
289  cls.hIcon = 0;
290  cls.hCursor = NULL;
291  cls.hbrBackground = NULL;
292  cls.lpszMenuName = NULL;
293  cls.lpszClassName = "TestSubclass";
294  atom = RegisterClassA(&cls);
295  ok(atom, "failed to register test class\n");
296 
297  return atom != 0;
298 }
static LRESULT WINAPI wnd_proc_1(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: subclass.c:170
WORD ATOM
Definition: dimm.idl:113
int cbClsExtra
Definition: winuser.h:3139
LPCSTR lpszMenuName
Definition: winuser.h:3145
HBRUSH hbrBackground
Definition: winuser.h:3144
int cbWndExtra
Definition: winuser.h:3140
HCURSOR hCursor
Definition: winuser.h:3143
smooth NULL
Definition: ftsmooth.c:416
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
Definition: loader.c:821
LPCSTR lpszClassName
Definition: winuser.h:3146
UINT style
Definition: winuser.h:3137
HINSTANCE hInstance
Definition: winuser.h:3141
#define ok(value,...)
Definition: atltest.h:57
WNDPROC lpfnWndProc
Definition: winuser.h:3138
ATOM WINAPI RegisterClassA(_In_ CONST WNDCLASSA *)
HICON hIcon
Definition: winuser.h:3142

Referenced by START_TEST().

◆ START_TEST()

START_TEST ( subclass  )

Definition at line 340 of file subclass.c.

341 {
342  if(!init_function_pointers()) return;
343 
344  if(!register_window_classes()) return;
345 
346  test_subclass();
347 }
static void test_subclass(void)
Definition: subclass.c:219
static BOOL init_function_pointers(void)
Definition: subclass.c:300
static BOOL register_window_classes(void)
Definition: subclass.c:279

◆ test_subclass()

static void test_subclass ( void  )
static

Definition at line 219 of file subclass.c.

220 {
221  BOOL ret;
222  HWND hwnd = CreateWindowExA(0, "TestSubclass", "Test subclass", WS_OVERLAPPEDWINDOW,
223  100, 100, 200, 200, 0, 0, 0, NULL);
224  ok(hwnd != NULL, "failed to create test subclass wnd\n");
225 
226  ret = pSetWindowSubclass(hwnd, wnd_proc_sub, 2, 0);
227  ok(ret == TRUE, "Expected TRUE\n");
228  SendMessageA(hwnd, WM_USER, 1, 0);
229  SendMessageA(hwnd, WM_USER, 2, 0);
230  ok_sequence(Sub_BasicTest, "Basic");
231 
232  ret = pSetWindowSubclass(hwnd, wnd_proc_sub, 2, DELETE_SELF);
233  ok(ret == TRUE, "Expected TRUE\n");
234  SendMessageA(hwnd, WM_USER, 1, 1);
235  ok_sequence(Sub_DeletedTest, "Deleted");
236 
237  SendMessageA(hwnd, WM_USER, 1, 0);
238  ok_sequence(Sub_AfterDeletedTest, "After Deleted");
239 
240  ret = pSetWindowSubclass(hwnd, wnd_proc_sub, 2, 0);
241  ok(ret == TRUE, "Expected TRUE\n");
243  SendMessageA(hwnd, WM_USER, 1, 0);
244  SendMessageA(hwnd, WM_USER, 2, 0);
245  ok_sequence(Sub_OldAfterNewTest, "Old after New");
246 
247  ret = pSetWindowSubclass(hwnd, wnd_proc_sub, 4, 0);
248  ok(ret == TRUE, "Expected TRUE\n");
249  SendMessageA(hwnd, WM_USER, 1, 0);
250  ok_sequence(Sub_MixTest, "Mix");
251 
252  /* Now the fun starts */
253  ret = pSetWindowSubclass(hwnd, wnd_proc_sub, 4, SEND_NEST);
254  ok(ret == TRUE, "Expected TRUE\n");
255  SendMessageA(hwnd, WM_USER, 1, 1);
256  ok_sequence(Sub_MixAndNestTest, "Mix and nest");
257 
258  ret = pSetWindowSubclass(hwnd, wnd_proc_sub, 4, SEND_NEST | DELETE_SELF);
259  ok(ret == TRUE, "Expected TRUE\n");
260  SendMessageA(hwnd, WM_USER, 1, 1);
261  ok_sequence(Sub_MixNestDelTest, "Mix, nest, del");
262 
263  ret = pSetWindowSubclass(hwnd, wnd_proc_sub, 4, 0);
264  ok(ret == TRUE, "Expected TRUE\n");
265  ret = pSetWindowSubclass(hwnd, wnd_proc_sub, 5, DELETE_PREV);
266  ok(ret == TRUE, "Expected TRUE\n");
267  SendMessageA(hwnd, WM_USER, 1, 1);
268  ok_sequence(Sub_MixDelPrevTest, "Mix and del prev");
269 
270  ret = pSetWindowSubclass(NULL, wnd_proc_sub, 1, 0);
271  ok(ret == FALSE, "Expected FALSE\n");
272 
273  ret = pSetWindowSubclass(hwnd, NULL, 1, 0);
274  ok(ret == FALSE, "Expected FALSE\n");
275 
277 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define TRUE
Definition: types.h:120
static const struct message Sub_OldAfterNewTest[]
Definition: subclass.c:69
static LRESULT WINAPI wnd_proc_3(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: subclass.c:184
static const struct message Sub_BasicTest[]
Definition: subclass.c:50
LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
static const struct message Sub_MixAndNestTest[]
Definition: subclass.c:87
BOOL WINAPI DestroyWindow(_In_ HWND)
static const struct message Sub_MixDelPrevTest[]
Definition: subclass.c:110
unsigned int BOOL
Definition: ntddk_ex.h:94
#define SEND_NEST
Definition: subclass.c:38
smooth NULL
Definition: ftsmooth.c:416
static const struct message Sub_MixTest[]
Definition: subclass.c:79
static void ok_sequence(const struct message *expected, const char *context)
Definition: subclass.c:145
static const struct message Sub_AfterDeletedTest[]
Definition: subclass.c:64
static LRESULT WINAPI wnd_proc_sub(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, UINT_PTR uldSubclass, DWORD_PTR dwRefData)
Definition: subclass.c:196
int ret
#define DELETE_SELF
Definition: subclass.c:39
#define SetWindowLongPtrA
Definition: winuser.h:5246
#define WM_USER
Definition: winuser.h:1877
#define GWLP_WNDPROC
Definition: treelist.c:66
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
Definition: winuser.h:2880
#define ok(value,...)
Definition: atltest.h:57
static WNDPROC orig_proc_3
Definition: subclass.c:183
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
static const struct message Sub_DeletedTest[]
Definition: subclass.c:58
HWND WINAPI CreateWindowExA(_In_ DWORD dwExStyle, _In_opt_ LPCSTR lpClassName, _In_opt_ LPCSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
#define WS_OVERLAPPEDWINDOW
Definition: pedump.c:637
#define DELETE_PREV
Definition: subclass.c:40
static const struct message Sub_MixNestDelTest[]
Definition: subclass.c:99

Referenced by START_TEST().

◆ wnd_proc_1()

static LRESULT WINAPI wnd_proc_1 ( HWND  hwnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 170 of file subclass.c.

171 {
172  struct message msg;
173 
174  if(message == WM_USER) {
175  msg.wParam = wParam;
176  msg.procnum = 1;
177  add_message(&msg);
178  }
180 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
Definition: tftpd.h:59
WPARAM wParam
Definition: combotst.c:138
static void add_message(const struct message *msg)
Definition: subclass.c:118
LRESULT WINAPI DefWindowProcA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define WM_USER
Definition: winuser.h:1877
#define msg(x)
Definition: auth_time.c:54
LPARAM lParam
Definition: combotst.c:139

Referenced by register_window_classes().

◆ wnd_proc_3()

static LRESULT WINAPI wnd_proc_3 ( HWND  hwnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 184 of file subclass.c.

185 {
186  struct message msg;
187 
188  if(message == WM_USER) {
189  msg.wParam = wParam;
190  msg.procnum = 3;
191  add_message(&msg);
192  }
194 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
Definition: tftpd.h:59
WPARAM wParam
Definition: combotst.c:138
LRESULT WINAPI CallWindowProcA(_In_ WNDPROC, _In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
static void add_message(const struct message *msg)
Definition: subclass.c:118
#define WM_USER
Definition: winuser.h:1877
static WNDPROC orig_proc_3
Definition: subclass.c:183
#define msg(x)
Definition: auth_time.c:54
LPARAM lParam
Definition: combotst.c:139

Referenced by test_subclass().

◆ wnd_proc_sub()

static LRESULT WINAPI wnd_proc_sub ( HWND  hwnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam,
UINT_PTR  uldSubclass,
DWORD_PTR  dwRefData 
)
static

Definition at line 196 of file subclass.c.

197 {
198  struct message msg;
199 
200  if(message == WM_USER) {
201  msg.wParam = wParam;
202  msg.procnum = uldSubclass;
203  add_message(&msg);
204 
205  if(lParam) {
206  if(dwRefData & DELETE_SELF) {
207  pRemoveWindowSubclass(hwnd, wnd_proc_sub, uldSubclass);
208  pRemoveWindowSubclass(hwnd, wnd_proc_sub, uldSubclass);
209  }
210  if(dwRefData & DELETE_PREV)
211  pRemoveWindowSubclass(hwnd, wnd_proc_sub, uldSubclass-1);
212  if(dwRefData & SEND_NEST)
214  }
215  }
216  return pDefSubclassProc(hwnd, message, wParam, lParam);
217 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
Definition: tftpd.h:59
LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
_In_ SUBCLASSPROC _In_ UINT_PTR _In_ DWORD_PTR dwRefData
Definition: commctrl.h:5027
WPARAM wParam
Definition: combotst.c:138
static void add_message(const struct message *msg)
Definition: subclass.c:118
#define SEND_NEST
Definition: subclass.c:38
static LRESULT WINAPI wnd_proc_sub(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, UINT_PTR uldSubclass, DWORD_PTR dwRefData)
Definition: subclass.c:196
#define DELETE_SELF
Definition: subclass.c:39
#define WM_USER
Definition: winuser.h:1877
#define msg(x)
Definition: auth_time.c:54
#define DELETE_PREV
Definition: subclass.c:40
LPARAM lParam
Definition: combotst.c:139

Referenced by test_subclass().

Variable Documentation

◆ DWORD_PTR

Definition at line 34 of file subclass.c.

◆ LPARAM

Definition at line 36 of file subclass.c.

◆ orig_proc_3

WNDPROC orig_proc_3
static

Definition at line 183 of file subclass.c.

Referenced by test_subclass(), and wnd_proc_3().

◆ sequence

◆ sequence_cnt

int sequence_cnt
static

Definition at line 47 of file subclass.c.

Referenced by add_message(), and flush_sequence().

◆ sequence_size

int sequence_size
static

Definition at line 47 of file subclass.c.

Referenced by add_message(), and flush_sequence().

◆ Sub_AfterDeletedTest

const struct message Sub_AfterDeletedTest[]
static
Initial value:
= {
{ 1, 1 },
{ 0 }
}

Definition at line 64 of file subclass.c.

Referenced by test_subclass().

◆ Sub_BasicTest

const struct message Sub_BasicTest[]
static
Initial value:
= {
{ 2, 1 },
{ 1, 1 },
{ 2, 2 },
{ 1, 2 },
{ 0 }
}

Definition at line 50 of file subclass.c.

Referenced by test_subclass().

◆ Sub_DeletedTest

const struct message Sub_DeletedTest[]
static
Initial value:
= {
{ 2, 1 },
{ 1, 1 },
{ 0 }
}

Definition at line 58 of file subclass.c.

Referenced by test_subclass().

◆ Sub_MixAndNestTest

const struct message Sub_MixAndNestTest[]
static
Initial value:
= {
{ 3, 1 },
{ 4, 1 },
{ 3, 2 },
{ 4, 2 },
{ 2, 2 },
{ 1, 2 },
{ 2, 1 },
{ 1, 1 },
{ 0 }
}

Definition at line 87 of file subclass.c.

Referenced by test_subclass().

◆ Sub_MixDelPrevTest

const struct message Sub_MixDelPrevTest[]
static
Initial value:
= {
{ 3, 1 },
{ 5, 1 },
{ 2, 1 },
{ 1, 1 },
{ 0 }
}

Definition at line 110 of file subclass.c.

Referenced by test_subclass().

◆ Sub_MixNestDelTest

const struct message Sub_MixNestDelTest[]
static
Initial value:
= {
{ 3, 1 },
{ 4, 1 },
{ 3, 2 },
{ 2, 2 },
{ 1, 2 },
{ 2, 1 },
{ 1, 1 },
{ 0 }
}

Definition at line 99 of file subclass.c.

Referenced by test_subclass().

◆ Sub_MixTest

const struct message Sub_MixTest[]
static
Initial value:
= {
{ 3, 1 },
{ 4, 1 },
{ 2, 1 },
{ 1, 1 },
{ 0 }
}

Definition at line 79 of file subclass.c.

Referenced by test_subclass().

◆ Sub_OldAfterNewTest

const struct message Sub_OldAfterNewTest[]
static
Initial value:
= {
{ 3, 1 },
{ 2, 1 },
{ 1, 1 },
{ 3, 2 },
{ 2, 2 },
{ 1, 2 },
{ 0 }
}

Definition at line 69 of file subclass.c.

Referenced by test_subclass().

◆ SUBCLASSPROC

SUBCLASSPROC

Definition at line 34 of file subclass.c.

◆ UINT

Definition at line 36 of file subclass.c.

◆ UINT_PTR

Definition at line 34 of file subclass.c.

◆ WPARAM

Definition at line 36 of file subclass.c.