source: trunk/src/user32/new/pmwindow.cpp@ 2291

Last change on this file since 2291 was 2291, checked in by cbratschi, 26 years ago

first few changes

File size: 18.0 KB
Line 
1/* $Id: pmwindow.cpp,v 1.32 2000-01-01 17:07:42 cbratschi Exp $ */
2/*
3 * Win32 Window Managment Code for OS/2
4 *
5 * Copyright 1998-1999 Sander van Leeuwen (sandervl@xs4all.nl)
6 * Copyright 1999 Daniela Engert (dani@ngrt.de)
7 *
8 *
9 * Project Odin Software License can be found in LICENSE.TXT
10 *
11 */
12#define INCL_WIN
13#define INCL_GPI
14#define INCL_DEV /* Device Function definitions */
15#define INCL_GPICONTROL /* GPI control Functions */
16#define INCL_DOSPROCESS
17
18#include <os2wrap.h>
19#include <stdlib.h>
20#include <string.h>
21#include "win32type.h"
22#include <winconst.h>
23#include <wprocess.h>
24#include <misc.h>
25#include <win32wbase.h>
26#include <win32dlg.h>
27#include "win32wdesktop.h"
28#include "pmwindow.h"
29#include "oslibwin.h"
30#include "oslibutil.h"
31#include "oslibgdi.h"
32#include "oslibmsg.h"
33#include "dc.h"
34#include <thread.h>
35#include <wprocess.h>
36#include "caret.h"
37#include "timer.h"
38#include <codepage.h>
39
40HMQ hmq = 0; /* Message queue handle */
41HAB hab = 0;
42
43RECTL desktopRectl = {0};
44ULONG ScreenWidth = 0;
45ULONG ScreenHeight = 0;
46ULONG ScreenBitsPerPel = 0;
47
48
49MRESULT EXPENTRY Win32WindowProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
50
51//******************************************************************************
52//Initialize PM; create hab, message queue and register special Win32 window classes
53//******************************************************************************
54BOOL InitPM()
55{
56 hab = WinInitialize(0);
57 dprintf(("Winitialize returned %x", hab));
58 hmq = WinCreateMsgQueue(hab, 0);
59
60 if(!hab || !hmq)
61 {
62 UINT error;
63 //CB: only fail on real error
64 error = WinGetLastError(hab) & 0xFFFF; //error code
65 if (!hab || (error != PMERR_MSG_QUEUE_ALREADY_EXISTS))
66 {
67 dprintf(("WinInitialize or WinCreateMsgQueue failed %x %x", hab, hmq));
68 dprintf((" Error = %x",error));
69 return(FALSE);
70 }
71 else
72 {
73 if(!hab) {
74 hab = WinQueryAnchorBlock(HWND_DESKTOP);
75 dprintf(("WinQueryAnchorBlock returned %x", hab));
76 }
77 if(!hmq) {
78 hmq = HMQ_CURRENT;
79 }
80 }
81 }
82 SetThreadHAB(hab);
83 dprintf(("InitPM: hmq = %x", hmq));
84 SetThreadMessageQueue(hmq);
85
86 BOOL rc = WinSetCp(hmq, GetDisplayCodepage());
87 dprintf(("InitPM: WinSetCP was %sOK", rc ? "" : "not "));
88
89 if(!WinRegisterClass( /* Register window class */
90 hab, /* Anchor block handle */
91 (PSZ)WIN32_STDCLASS, /* Window class name */
92 (PFNWP)Win32WindowProc, /* Address of window procedure */
93 CS_HITTEST,
94 NROF_WIN32WNDBYTES)) {
95 dprintf(("WinRegisterClass Win32BaseWindow failed"));
96 return(FALSE);
97 }
98 if(!WinRegisterClass( /* Register window class */
99 hab, /* Anchor block handle */
100 (PSZ)WIN32_STDCLASS2, /* Window class name */
101 (PFNWP)Win32WindowProc, /* Address of window procedure */
102 CS_HITTEST | CS_SAVEBITS,
103 NROF_WIN32WNDBYTES)) {
104 dprintf(("WinRegisterClass Win32BaseWindow failed"));
105 return(FALSE);
106 }
107/* //CB: perhaps reuse it for own frame
108 if (!WinQueryClassInfo (hab, WC_FRAME, &FrameClassInfo)) {
109 dprintf (("WinQueryClassInfo WC_FRAME failed"));
110 return (FALSE);
111 }
112 FrameClassInfo.flClassStyle &= ~(CS_PUBLIC | CS_CLIPSIBLINGS);
113 if (!WinRegisterClass (hab,
114 WIN32_INNERFRAME,
115 FrameClassInfo.pfnWindowProc,
116 FrameClassInfo.flClassStyle,
117 FrameClassInfo.cbWindowData)) {
118 dprintf (("WinRegisterClass Win32InnerFrame failed"));
119 return (FALSE);
120 }
121*/
122 WinQueryWindowRect(HWND_DESKTOP, &desktopRectl);
123 ScreenWidth = desktopRectl.xRight;
124 ScreenHeight = desktopRectl.yTop;
125
126
127 HDC hdc; /* Device-context handle */
128 /* context data structure */
129 DEVOPENSTRUC dop = {NULL, "DISPLAY", NULL, NULL, NULL, NULL,
130 NULL, NULL, NULL};
131
132 /* create memory device context */
133 hdc = DevOpenDC(hab, OD_MEMORY, "*", 5L, (PDEVOPENDATA)&dop, NULLHANDLE);
134 DevQueryCaps(hdc, CAPS_COLOR_BITCOUNT, 1, (PLONG)&ScreenBitsPerPel);
135 DevCloseDC(hdc);
136
137 dprintf(("InitPM: Desktop (%d,%d)", ScreenWidth, ScreenHeight));
138 return OSLibInitMsgQueue();
139} /* End of main */
140//******************************************************************************
141//Win32 window message handler
142//******************************************************************************
143MRESULT EXPENTRY Win32WindowProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
144{
145 POSTMSG_PACKET *postmsg;
146 OSLIBPOINT point, ClientPoint;
147 Win32BaseWindow *win32wnd;
148 THDB *thdb;
149 APIRET rc = 0;
150 MSG winMsg, *pWinMsg;
151
152 //Restore our FS selector
153 SetWin32TIB();
154
155 thdb = GetThreadTHDB();
156 win32wnd = Win32BaseWindow::GetWindowFromOS2Handle(hwnd);
157
158 if(!thdb || (msg != WM_CREATE && win32wnd == NULL)) {
159 dprintf(("Invalid win32wnd pointer for window %x msg %x", hwnd, msg));
160 goto RunDefWndProc;
161 }
162
163 if((thdb->msgstate & 1) == 0)
164 {//message that was sent directly to our window proc handler; translate it here
165 QMSG qmsg;
166
167 qmsg.msg = msg;
168 qmsg.hwnd = hwnd;
169 qmsg.mp1 = mp1;
170 qmsg.mp2 = mp2;
171 qmsg.time = WinQueryMsgTime(thdb->hab);
172 WinQueryMsgPos(thdb->hab, &qmsg.ptl);
173 qmsg.reserved = 0;
174
175 if(OS2ToWinMsgTranslate((PVOID)thdb, &qmsg, &winMsg, FALSE, MSG_REMOVE) == FALSE)
176 {//message was not translated
177 memset(&winMsg, 0, sizeof(MSG));
178 }
179 pWinMsg = &winMsg;
180 }
181 else {
182 pWinMsg = &thdb->msg;
183 thdb->msgstate++;
184 }
185
186 if(msg == WIN32APP_POSTMSG) {
187 //probably win32 app user message
188 if((ULONG)mp1 == WIN32MSG_MAGICA) {
189 return (MRESULT)win32wnd->DispatchMsgA(pWinMsg);
190 }
191 else
192 if((ULONG)mp1 == WIN32MSG_MAGICW) {
193 return (MRESULT)win32wnd->DispatchMsgW(pWinMsg);
194 }
195 }
196 switch( msg )
197 {
198 //OS/2 msgs
199 case WM_CREATE:
200 {
201
202 if(thdb->newWindow == 0)
203 goto createfail;
204
205 //Processing is done in after WinCreateWindow returns
206 dprintf(("OS2: WM_CREATE %x", hwnd));
207 win32wnd = (Win32BaseWindow *)thdb->newWindow;
208 thdb->newWindow = 0;
209
210 if(win32wnd->MsgCreate(WinQueryWindow(hwnd, QW_PARENT), hwnd) == FALSE)
211 {
212 RestoreOS2TIB();
213 return (MRESULT)TRUE; //discontinue window creation
214 }
215 createfail:
216 RestoreOS2TIB();
217 return (MRESULT)FALSE;
218 }
219
220 case WM_QUIT:
221 dprintf(("OS2: WM_QUIT %x", hwnd));
222 win32wnd->MsgQuit();
223 break;
224
225 case WM_CLOSE:
226 dprintf(("OS2: WM_CLOSE %x", hwnd));
227 win32wnd->MsgClose();
228 break;
229
230 case WM_DESTROY:
231 dprintf(("OS2: WM_DESTROY %x", hwnd));
232 win32wnd->MsgDestroy();
233 break;
234
235 case WM_ENABLE:
236 dprintf(("OS2: WM_ENABLE %x", hwnd));
237 win32wnd->MsgEnable(SHORT1FROMMP(mp1));
238 break;
239
240 case WM_SHOW:
241 dprintf(("OS2: WM_SHOW %x %d", hwnd, mp1));
242 win32wnd->MsgShow((ULONG)mp1);
243 break;
244
245#if 1
246 case WM_ADJUSTWINDOWPOS:
247 {
248// PSWP pswp = (PSWP)mp1;
249
250// dprintf(("OS2: WM_ADJUSTWINDOWPOS %x %x %x (%d,%d) (%d,%d)", hwnd, pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
251 goto RunDefWndProc;
252 }
253#else
254 case WM_ADJUSTWINDOWPOS:
255 {
256 PSWP pswp = (PSWP)mp1;
257 SWP swpOld, swpNew;
258 WINDOWPOS wp;
259 ULONG parentHeight = 0;
260 HWND hParent = NULLHANDLE, hFrame = NULLHANDLE, hwndAfter;
261
262 dprintf(("OS2: WM_ADJUSTWINDOWPOS %x %x %x (%d,%d) (%d,%d)", hwnd, pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
263
264 if ((pswp->fl & (SWP_SIZE | SWP_MOVE | SWP_ZORDER)) == 0) goto RunDefWndProc;;
265
266 //SvL: TODO: Workaround. Why is this happening?
267 // When this flag is set the coordinates are 0, even though SWP_SIZE & SWP_MOVE are set.
268// if ((pswp->fl & SWP_NOADJUST)) goto RunDefWndProc;
269
270 if(!win32wnd->CanReceiveSizeMsgs()) goto RunDefWndProc;;
271
272 WinQueryWindowPos(hwnd, &swpOld);
273
274 if(pswp->fl & (SWP_MOVE | SWP_SIZE)) {
275 if (win32wnd->isChild()) {
276 if(win32wnd->getParent()) {
277 hParent = win32wnd->getParent()->getOS2WindowHandle();
278 }
279 else goto RunDefWndProc;;
280 }
281 }
282 hwndAfter = pswp->hwndInsertBehind;
283 hFrame = win32wnd->getOS2FrameWindowHandle();
284 OSLibMapSWPtoWINDOWPOS(pswp, &wp, &swpOld, hParent, hFrame);
285
286 wp.hwnd = win32wnd->getWindowHandle();
287 if ((pswp->fl & SWP_ZORDER) && (pswp->hwndInsertBehind > HWND_BOTTOM))
288 {
289 Win32BaseWindow *wndAfter = Win32BaseWindow::GetWindowFromOS2Handle(pswp->hwndInsertBehind);
290 if(wndAfter) wp.hwndInsertAfter = wndAfter->getWindowHandle();
291 }
292 if(win32wnd->MsgPosChanging((LPARAM)&wp) == 0)
293 {//app or default window handler changed wp
294 dprintf(("OS2: WM_ADJUSTWINDOWPOS, app changed windowpos struct"));
295 dprintf(("%x (%d,%d), (%d,%d)", pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
296 OSLibMapWINDOWPOStoSWP(&wp, &swpNew, &swpOld, hParent, hFrame);
297 dprintf(("%x (%d,%d), (%d,%d)", swpNew.fl, swpNew.x, swpNew.y, swpNew.cx, swpNew.cy));
298 swpNew.fl |= SWP_NOADJUST;
299 swpNew.hwndInsertBehind = hwndAfter;
300 swpNew.hwnd = hFrame;
301
302 WinSetMultWindowPos(GetThreadHAB(), &swpNew, 1);
303 return (MRESULT)0;
304 }
305 break;
306 }
307#endif
308
309 case WM_WINDOWPOSCHANGED:
310 {
311 win32wnd->MsgPosChanged((LPARAM)&thdb->wp);
312 goto RunDefWndProc;
313 }
314
315 case WM_ACTIVATE:
316 {
317 HWND hwndActivate = (HWND)mp2;
318 BOOL fMinimized = FALSE;
319
320 dprintf(("OS2: WM_ACTIVATE %x %x", hwnd, hwndActivate));
321 if(WinQueryWindowULong(hwndActivate, OFFSET_WIN32PM_MAGIC) != WIN32PM_MAGIC) {
322 //another (non-win32) application's window
323 //set to NULL (allowed according to win32 SDK) to avoid problems
324 hwndActivate = NULL;
325 }
326 if(WinQueryWindowULong(hwnd, QWL_STYLE) & WS_MINIMIZED)
327 {
328 fMinimized = TRUE;
329 }
330
331 win32wnd->MsgActivate(SHORT1FROMMP(mp1), fMinimized, Win32BaseWindow::OS2ToWin32Handle(hwndActivate));
332 break;
333 }
334
335 case WM_SIZE:
336 {
337 dprintf(("OS2: WM_SIZE (%d,%d) (%d,%d)", SHORT1FROMMP(mp2), SHORT2FROMMP(mp2), SHORT1FROMMP(mp1), SHORT2FROMMP(mp2)));
338 break;
339 }
340
341 case WM_MINMAXFRAME:
342 {
343 dprintf(("OS2: WM_MINMAXFRAME"));
344 break;
345 }
346
347 case WM_OWNERPOSCHANGE:
348 {
349 dprintf(("OS2: WM_OWNERPOSCHANGE"));
350 goto RunDefWndProc;
351 }
352
353 case WM_CALCVALIDRECTS:
354 {
355 dprintf(("OS2: WM_CALCVALIDRECTS"));
356 goto RunDefWndProc;
357 }
358
359 case WM_SETFOCUS:
360 {
361 HWND hwndFocus = (HWND)mp1;
362
363 dprintf(("OS2: WM_SETFOCUS %x %x %d", win32wnd->getWindowHandle(), mp1, mp2));
364 if(WinQueryWindowULong(hwndFocus, OFFSET_WIN32PM_MAGIC) != WIN32PM_MAGIC) {
365 //another (non-win32) application's window
366 //set to NULL (allowed according to win32 SDK) to avoid problems
367 hwndFocus = NULL;
368 }
369 if((ULONG)mp2 == TRUE) {
370 HWND hwndFocusWin32 = Win32BaseWindow::OS2ToWin32Handle(hwndFocus);
371 recreateCaret (hwndFocusWin32);
372 win32wnd->MsgSetFocus(hwndFocusWin32);
373 }
374 else win32wnd->MsgKillFocus(Win32BaseWindow::OS2ToWin32Handle(hwndFocus));
375 break;
376 }
377
378 //**************************************************************************
379 //Mouse messages (OS/2 Window coordinates -> Win32 coordinates relative to screen
380 //**************************************************************************
381 case WM_BUTTON1DOWN:
382 case WM_BUTTON1UP:
383 case WM_BUTTON1DBLCLK:
384 case WM_BUTTON2DOWN:
385 case WM_BUTTON2UP:
386 case WM_BUTTON2DBLCLK:
387 case WM_BUTTON3DOWN:
388 case WM_BUTTON3UP:
389 case WM_BUTTON3DBLCLK:
390 win32wnd->MsgButton(pWinMsg);
391 rc = TRUE;
392 break;
393
394 case WM_BUTTON2MOTIONSTART:
395 case WM_BUTTON2MOTIONEND:
396 case WM_BUTTON2CLICK:
397 case WM_BUTTON1MOTIONSTART:
398 case WM_BUTTON1MOTIONEND:
399 case WM_BUTTON1CLICK:
400 case WM_BUTTON3MOTIONSTART:
401 case WM_BUTTON3MOTIONEND:
402 case WM_BUTTON3CLICK:
403 goto RunDefWndProc;
404
405 case WM_MOUSEMOVE:
406 {
407 //OS/2 Window coordinates -> Win32 Window coordinates
408 win32wnd->MsgMouseMove(pWinMsg);
409 break;
410 }
411
412 case WM_CONTROL:
413 goto RunDefWndProc;
414
415 case WM_COMMAND:
416 dprintf(("OS2: WM_COMMAND %x %x %x", hwnd, mp1, mp2));
417 win32wnd->DispatchMsgA(pWinMsg);
418 break;
419
420 case WM_SYSCOMMAND:
421 win32wnd->DispatchMsgA(pWinMsg);
422 break;
423
424 case WM_CHAR:
425 win32wnd->DispatchMsgA(pWinMsg);
426 break;
427
428 case WM_INITMENU:
429 win32wnd->MsgInitMenu(pWinMsg);
430 break;
431
432 case WM_TIMER:
433 win32wnd->DispatchMsgA(pWinMsg);
434 goto RunDefWndProc;
435
436 case WM_MENUSELECT:
437 case WM_MENUEND:
438 case WM_NEXTMENU:
439 goto RunDefWndProc;
440
441 case WM_SETWINDOWPARAMS:
442 {
443 WNDPARAMS *wndParams = (WNDPARAMS *)mp1;
444
445 dprintf(("OS2: WM_SETWINDOWPARAMS %x", hwnd));
446 if(wndParams->fsStatus & WPM_TEXT) {
447 win32wnd->MsgSetText(wndParams->pszText, wndParams->cchText);
448 }
449 goto RunDefWndProc;
450 }
451
452 case WM_QUERYWINDOWPARAMS:
453 {
454 PWNDPARAMS wndpars = (PWNDPARAMS)mp1;
455 ULONG textlen;
456 PSZ wintext;
457
458 if(wndpars->fsStatus & (WPM_CCHTEXT | WPM_TEXT))
459 {
460 if(wndpars->fsStatus & WPM_CCHTEXT)
461 wndpars->cchText = win32wnd->MsgGetTextLength();
462 if(wndpars->fsStatus & WPM_TEXT)
463 wndpars->pszText = win32wnd->MsgGetText();
464
465 wndpars->fsStatus = 0;
466 wndpars->cbCtlData = 0;
467 wndpars->cbPresParams = 0;
468 RestoreOS2TIB();
469 return (MRESULT)TRUE;
470 }
471 goto RunDefWndProc;
472 }
473
474 case WM_PAINT:
475 win32wnd->DispatchMsgA(pWinMsg);
476 goto RunDefWndProc;
477
478 case WM_HITTEST:
479 {
480 DWORD res;
481
482 // Only send this message if the window is enabled
483 if (!WinIsWindowEnabled(hwnd))
484 res = HT_ERROR;
485 else if (win32wnd->getIgnoreHitTest())
486 res = HT_NORMAL;
487 else
488 {
489 dprintf(("USER32: WM_HITTEST %x (%d,%d)",hwnd,(*(POINTS *)&mp1).x,(*(POINTS *)&mp1).y));
490
491 //CB: WinWindowFromPoint: PM sends WM_HITTEST -> loop -> stack overflow
492 win32wnd->setIgnoreHitTest(TRUE);
493 res = win32wnd->MsgHitTest(pWinMsg);
494 win32wnd->setIgnoreHitTest(FALSE);
495 }
496 RestoreOS2TIB();
497 return (MRESULT)res;
498 }
499
500 case WM_CONTEXTMENU:
501 {
502 win32wnd->DispatchMsgA(pWinMsg);
503
504 RestoreOS2TIB();
505 return (MRESULT)TRUE;
506 }
507
508 case WM_ERASEBACKGROUND:
509 {
510 dprintf(("OS2: WM_ERASEBACKGROUND %x", win32wnd->getWindowHandle()));
511 break;
512 }
513
514 case WM_FOCUSCHANGE:
515 dprintf(("OS2: WM_FOCUSCHANGE %x", win32wnd->getWindowHandle()));
516 goto RunDefWndProc;
517
518 case WM_SYSCOLORCHANGE:
519 case WM_SYSVALUECHANGED:
520 case WM_SETSELECTION:
521 case WM_PPAINT:
522 case WM_PSETFOCUS:
523 case WM_PSYSCOLORCHANGE:
524 case WM_PSIZE:
525 case WM_PACTIVATE:
526 case WM_PCONTROL:
527 case WM_HELP:
528 case WM_APPTERMINATENOTIFY:
529 case WM_PRESPARAMCHANGED:
530 case WM_DRAWITEM:
531 case WM_MEASUREITEM:
532 case WM_CONTROLPOINTER:
533 case WM_QUERYDLGCODE:
534 case WM_SUBSTITUTESTRING:
535 case WM_MATCHMNEMONIC:
536 case WM_SAVEAPPLICATION:
537 case WM_SEMANTICEVENT:
538 default:
539 //dprintf(("OS2: RunDefWndProc msg %x for %x", msg, hwnd));
540 RestoreOS2TIB();
541 return WinDefWindowProc( hwnd, msg, mp1, mp2 );
542 }
543 RestoreOS2TIB();
544 return (MRESULT)rc;
545
546RunDefWndProc:
547// dprintf(("OS2: RunDefWndProc msg %x for %x", msg, hwnd));
548 RestoreOS2TIB();
549
550 return WinDefWindowProc( hwnd, msg, mp1, mp2 );
551} /* End of Win32WindowProc */
552//******************************************************************************
553//******************************************************************************
554MRESULT EXPENTRY Win32SubclassWindowProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
555{
556 Win32BaseWindow* win32wnd;
557
558 //Restore our FS selector
559 SetWin32TIB();
560
561 win32wnd = Win32BaseWindow::GetWindowFromOS2Handle(hwnd);
562
563 if (!win32wnd)
564 {
565 dprintf(("Invalid win32wnd pointer for subclassed window %x!!", hwnd));
566 goto RunDefWndProc;
567 }
568
569 switch (msg)
570 {
571 case WM_WINDOWPOSCHANGED:
572 {
573 PSWP pswp = (PSWP)mp1;
574 SWP swpOld = *(pswp + 1);
575 WINDOWPOS wp;
576 HWND hParent = NULLHANDLE, hFrame = NULLHANDLE;
577
578 dprintf(("OS2Subclass: WM_WINDOWPOSCHANGED %x %x (%d,%d) (%d,%d)", hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy));
579 if ((pswp->fl & (SWP_SIZE | SWP_MOVE | SWP_ZORDER)) == 0) break;
580
581 hParent = hFrame = WinQueryWindow(hwnd, QW_PARENT);
582
583 OSLibMapSWPtoWINDOWPOS(pswp,&wp, &swpOld,hParent,hFrame);
584
585 win32wnd->setWindowRect(swpOld.x, swpOld.y, swpOld.x + swpOld.cx, swpOld.y + swpOld.cy);
586 win32wnd->setClientRect(swpOld.x, swpOld.y, swpOld.x + swpOld.cx, swpOld.y + swpOld.cy);
587 wp.x = swpOld.x;
588 wp.y = swpOld.y;
589 wp.cx = swpOld.cx;
590 wp.cy = swpOld.cy;
591
592 wp.hwnd = win32wnd->getWindowHandle();
593
594 win32wnd->MsgPosChanged((LPARAM)&wp);
595
596 goto RunOldWndProc;
597 }
598
599 default:
600 goto RunDefHandler;
601 }
602
603RunDefWndProc:
604 RestoreOS2TIB();
605 return WinDefWindowProc(hwnd,msg,mp1,mp2);
606
607RunOldWndProc:
608 RestoreOS2TIB();
609 return ((PFNWP)win32wnd->getOldWndProc())(hwnd,msg,mp1,mp2);
610
611RunDefHandler:
612 RestoreOS2TIB();
613 return Win32WindowProc(hwnd,msg,mp1,mp2);
614}
615
616PVOID SubclassWithDefHandler(HWND hwnd)
617{
618 return WinSubclassWindow(hwnd,Win32SubclassWindowProc);
619}
Note: See TracBrowser for help on using the repository browser.