source: trunk/src/user32/win32wbase.h@ 6762

Last change on this file since 6762 was 6762, checked in by sandervl, 24 years ago

ported the Wine MDI control + some menu fixes

File size: 20.6 KB
Line 
1/* $Id: win32wbase.h,v 1.125 2001-09-19 15:39:50 sandervl Exp $ */
2/*
3 * Win32 Window Base Class for OS/2
4 *
5 *
6 * Copyright 1998-1999 Sander van Leeuwen (sandervl@xs4all.nl)
7 * Copyright 1999 Daniela Engert (dani@ngrt.de)
8 *
9 *
10 * Project Odin Software License can be found in LICENSE.TXT
11 *
12 */
13#ifndef __WIN32WNDBASE_H__
14#define __WIN32WNDBASE_H__
15
16#ifdef __cplusplus
17
18#include <win32class.h>
19#include "open32wbase.h"
20#include <gen_object.h>
21#include <win32wndchild.h>
22#include <winres.h>
23#include <scroll.h>
24
25class Win32BaseWindow;
26
27#define OFFSET_RESERVED 0 //reserved for odin apps (such as Opera)
28#define OFFSET_WIN32WNDPTR 4
29#define OFFSET_WIN32PM_MAGIC 8
30#define OFFSET_WIN32FLAGS 12
31#define NROF_WIN32WNDBYTES 16
32
33#define WINDOWFLAG_ACTIVE 1
34
35#define WIN32PM_MAGIC 0x12345678
36#define CheckMagicDword(a) (a==WIN32PM_MAGIC)
37
38#ifdef DEBUG
39#define RELEASE_WNDOBJ(a) { a->release(__FUNCTION__, __LINE__); a = NULL; }
40#else
41#define RELEASE_WNDOBJ(a) { a->release(); a = NULL; }
42#endif
43
44typedef struct {
45 USHORT cb;
46 Win32BaseWindow *win32wnd;
47 ULONG win32CreateStruct; //or dialog create dword
48} CUSTOMWNDDATA;
49
50typedef struct tagPROPERTY
51{
52 struct tagPROPERTY *next; /* Next property in window list */
53 HANDLE handle; /* User's data */
54 LPSTR string; /* Property string (or atom) */
55} PROPERTY;
56
57//PostThreadMessage is done through Open32; which means the message id will be translated
58//(0xc00 added)
59#define OPEN32_MSGDIFF 0xC00
60#define WIN32APP_POSTMSG (0x1000+OPEN32_MSGDIFF)
61
62//PM doesn't allow SetFocus during WM_SETFOCUS message processing; must delay
63//this by posting a message
64//NOTE Must be smaller than WIN32APP_POSTMSG!
65#define WIN32APP_SETFOCUSMSG (WIN32APP_POSTMSG-1)
66
67#define WIN32MSG_MAGICA 0x12345678
68#define WIN32MSG_MAGICW 0x12345679
69
70typedef struct
71{
72 ULONG wParam;
73 ULONG lParam;
74} POSTMSG_PACKET;
75
76#define BROADCAST_SEND 0
77#define BROADCAST_POST 1
78
79#define HAS_DLGFRAME(style,exStyle) \
80 (((exStyle) & WS_EX_DLGMODALFRAME) || \
81 (((style) & WS_DLGFRAME) && !((style) & WS_THICKFRAME)))
82
83#define HAS_THICKFRAME(style,exStyle) \
84 (((style) & WS_THICKFRAME) && \
85 !(((style) & (WS_DLGFRAME|WS_BORDER)) == WS_DLGFRAME))
86#if 0
87 (((style) & WS_THICKFRAME) && \
88 !((exStyle) & WS_EX_DLGMODALFRAME) && \
89 !((style) & WS_CHILD))
90#endif
91
92#define HAS_THINFRAME(style) \
93 (((style) & WS_BORDER) || !((style) & (WS_CHILD | WS_POPUP)))
94
95#define HAS_BIGFRAME(style,exStyle) \
96 (((style) & (WS_THICKFRAME | WS_DLGFRAME)) || \
97 ((exStyle) & WS_EX_DLGMODALFRAME))
98
99#define HAS_ANYFRAME(style,exStyle) \
100 (((style) & (WS_THICKFRAME | WS_DLGFRAME | WS_BORDER)) || \
101 ((exStyle) & WS_EX_DLGMODALFRAME) || \
102 !((style) & (WS_CHILD | WS_POPUP)))
103
104#define HAS_3DFRAME(exStyle) \
105 ((exStyle & WS_EX_CLIENTEDGE) || (exStyle & WS_EX_STATICEDGE) || (exStyle & WS_EX_WINDOWEDGE))
106
107#define HAS_BORDER(style, exStyle) \
108 ((style & WS_BORDER) || HAS_THICKFRAME(style) || HAS_DLGFRAME(style,exStyle))
109
110#define IS_OVERLAPPED(style) \
111 !(style & (WS_CHILD | WS_POPUP))
112
113#define HAS_MENU() (!(getStyle() & WS_CHILD) && (GetMenu() != 0))
114
115#define STATE_INIT 0 //initial state
116#define STATE_PRE_WMNCCREATE 1 //before WM_NCCREATE
117#define STATE_POST_WMNCCREATE 2 //after WM_NCCREATE
118#define STATE_PRE_WMCREATE 3 //before WM_CREATE
119#define STATE_POST_WMCREATE 4 //after WM_CREATE
120#define STATE_CREATED 5 //after successful return of WinCreateWindow
121#define STATE_DESTROYED 6 //DestroyWindow called for window
122
123
124class Win32BaseWindow : public GenericObject, public ChildWindow
125{
126public:
127 Win32BaseWindow();
128 Win32BaseWindow(CREATESTRUCTA *lpCreateStructA, ATOM classAtom, BOOL isUnicode);
129 Win32BaseWindow(HWND hwndOS2, ULONG reserved);
130
131virtual ~Win32BaseWindow();
132
133virtual ULONG MsgCreate(HWND hwndOS2);
134 ULONG MsgQuit();
135 ULONG MsgClose();
136 ULONG MsgDestroy();
137virtual ULONG MsgEnable(BOOL fEnable);
138 ULONG MsgShow(BOOL fShow);
139 ULONG MsgPosChanging(LPARAM lp);
140 ULONG MsgPosChanged(LPARAM lp);
141 ULONG MsgActivate(BOOL fActivate, BOOL fMinimized, HWND hwnd, HWND hwndOS2Win);
142 ULONG MsgSetFocus(HWND hwnd);
143 ULONG MsgKillFocus(HWND hwnd);
144 ULONG MsgScroll(ULONG msg, ULONG scrollCode, ULONG scrollPos);
145 ULONG MsgButton(MSG *msg);
146 ULONG MsgMouseMove(MSG *msg);
147 ULONG MsgChar(MSG *msg);
148 ULONG MsgPaint(ULONG tmp1, BOOL select = TRUE);
149 ULONG MsgEraseBackGround(HDC hdc);
150 ULONG MsgNCPaint(PRECT pUpdateRect);
151 ULONG MsgFormatFrame(WINDOWPOS *lpWndPos);
152 ULONG DispatchMsgA(MSG *msg);
153 ULONG DispatchMsgW(MSG *msg);
154
155 ULONG MsgSetText(LPSTR lpsz, LONG cch);
156 ULONG MsgGetTextLength();
157 void MsgGetText(char *wndtext, ULONG textlength);
158 VOID updateWindowStyle(DWORD oldExStyle,DWORD oldStyle);
159
160virtual LONG SetWindowLongA(int index, ULONG value, BOOL fUnicode = FALSE);
161virtual ULONG GetWindowLongA(int index, BOOL fUnicode = FALSE);
162virtual WORD SetWindowWord(int index, WORD value);
163virtual WORD GetWindowWord(int index);
164
165 DWORD getStyle() { return dwStyle; };
166 DWORD getOldStyle() { return dwOldStyle; };
167 void setStyle(DWORD newstyle) { dwStyle = newstyle; };
168 DWORD getExStyle() { return dwExStyle; };
169 void setExStyle(DWORD newexstyle) { dwExStyle = newexstyle; };
170 ULONG getInstance() { return hInstance; };
171 void setInstance(ULONG newinstance) { hInstance = newinstance; };
172 HWND getWindowHandle() { return Win32Hwnd; };
173 HWND getOS2WindowHandle() { return OS2Hwnd; };
174 HWND getOS2FrameWindowHandle() { return OS2HwndFrame; };
175
176 Win32WndClass *getWindowClass() { return windowClass; };
177
178 LONG getLastHitTestVal() { return lastHitTestVal; }
179
180 DWORD getWindowContextHelpId() { return contextHelpId; };
181 void setWindowContextHelpId(DWORD id){ contextHelpId = id; };
182
183 BOOL isFrameWindow();
184virtual BOOL isMDIClient();
185virtual BOOL isMDIChild();
186virtual BOOL isDesktopWindow();
187
188 BOOL fHasParentDC() { return fParentDC; };
189
190Win32BaseWindow *getParent();
191 void setParent(Win32BaseWindow *pwindow) { setParentOfChild((ChildWindow *)pwindow); };
192 WNDPROC getWindowProc() { return win32wndproc; };
193 void setWindowProc(WNDPROC newproc) { win32wndproc = newproc; };
194 DWORD getWindowId() { return dwIDMenu; };
195 void setWindowId(DWORD id);
196 ULONG getWindowHeight() { return rectWindow.bottom - rectWindow.top; };
197 ULONG getWindowWidth() { return rectWindow.right - rectWindow.left; };
198 ULONG getClientHeight() { return rectClient.bottom - rectClient.top; };
199 ULONG getClientWidth() { return rectClient.right - rectClient.left; };
200 BOOL isChild();
201 PRECT getClientRectPtr() { return &rectClient; };
202 void getClientRect(PRECT rect)
203 {
204 *rect = rectClient;
205 rect->right -= rect->left;
206 rect->bottom -= rect->top;
207 rect->left = rect->top = 0;
208 }
209 void setClientRect(PRECT rect) { rectClient = *rect; };
210 PRECT getWindowRect() { return &rectWindow; };
211 void setClientRect(LONG left, LONG top, LONG right, LONG bottom)
212 {
213 rectClient.left = left; rectClient.top = top;
214 rectClient.right = right; rectClient.bottom = bottom;
215 };
216 void setWindowRect(LONG left, LONG top, LONG right, LONG bottom)
217 {
218 rectWindow.left = left; rectWindow.top = top;
219 rectWindow.right = right; rectWindow.bottom = bottom;
220 };
221 void setWindowRect(PRECT rect) { rectWindow = *rect; };
222 DWORD getFlags() { return flags; };
223 void setFlags(DWORD newflags) { flags = newflags; };
224
225 DWORD getCBExtra() { return cbExtra; };
226 PVOID getExtraPtr() { return pExtra; };
227
228 HMENU GetMenu() { return dwIDMenu; };
229 VOID SetMenu(HMENU newMenu) { dwIDMenu = newMenu; };
230 void SetSysMenu(HMENU hSystemMenu) { hSysMenu = hSystemMenu; };
231 HMENU GetSysMenu() { return hSysMenu; }
232
233 HICON IconForWindow(WPARAM fType);
234
235 void SetWindowRegion(HRGN hRegion) { hWindowRegion = hRegion; };
236 HRGN GetWindowRegion() { return hWindowRegion; };
237
238 //Save old clip region for CS_OWNDC windows (in BeginPaint)
239 HRGN GetClipRegion() { return hClipRegion; };
240 void SetClipRegion(HRGN hRegion) { hClipRegion = hRegion; };
241
242 BOOL ShowWindow(ULONG nCmdShow);
243 BOOL SetWindowPos(HWND hwndInsertAfter, int x, int y, int cx, int cy, UINT fuFlags);
244 BOOL SetWindowPlacement(WINDOWPLACEMENT *winpos);
245 BOOL GetWindowPlacement(LPWINDOWPLACEMENT winpos);
246 BOOL ScrollWindow(int dx, int dy);
247virtual BOOL DestroyWindow();
248 HWND SetActiveWindow();
249 BOOL DeactivateChildWindow();
250 HWND GetParent();
251 HWND SetParent(HWND hwndNewParent);
252
253 BOOL IsChild(HWND hwndParent);
254
255 HWND GetTopWindow();
256 HWND GetTopParent();
257
258 HWND GetWindow(UINT uCmd);
259 virtual BOOL EnableWindow(BOOL fEnable);
260 BOOL CloseWindow();
261 static HWND GetActiveWindow();
262 //Window handle has already been verified, so just return true
263 BOOL IsWindow() { return TRUE; };
264 BOOL IsDialog() { return fIsDialog; };
265 BOOL IsModalDialog() { return fIsModalDialog; };
266 BOOL IsModalDialogOwner() { return fIsModalDialogOwner; };
267 VOID setModalDialogOwner(BOOL fMDO) { fIsModalDialogOwner = fMDO; };
268 VOID setOS2HwndModalDialog(HWND aHwnd) { OS2HwndModalDialog = aHwnd; };
269 HWND getOS2HwndModalDialog() { return OS2HwndModalDialog; };
270 BOOL CanReceiveSizeMsgs() { return state >= STATE_PRE_WMCREATE; };
271 BOOL IsParentChanging() { return fParentChange; };
272 BOOL IsWindowCreated() { return state >= STATE_PRE_WMNCCREATE; }
273 BOOL IsWindowDestroyed() { return state >= STATE_DESTROYED; };
274 BOOL IsWindowIconic();
275 //Window procedure type
276 BOOL IsWindowUnicode();
277 BOOL IsMixMaxStateChanging() { return fMinMaxChange; };
278
279 void SetVisibleRegionChanged(BOOL changed) { fVisibleRegionChanged = changed; };
280 BOOL IsVisibleRegionChanged() { return fVisibleRegionChanged; };
281
282 int GetWindowTextLength(BOOL fUnicode);
283 int GetWindowTextLengthA() { return GetWindowTextLength(FALSE); };
284 int GetWindowTextLengthW() { return GetWindowTextLength(TRUE); };
285
286 int GetWindowTextA(LPSTR lpsz, int cch);
287 int GetWindowTextW(LPWSTR lpsz, int cch);
288 BOOL SetWindowTextA(LPSTR lpsz);
289 BOOL SetWindowTextW(LPWSTR lpsz);
290 BOOL hasWindowName(LPSTR wndname, BOOL fUnicode = 0);
291 CHAR *getWindowNamePtrA();
292 WCHAR *getWindowNamePtrW();
293 VOID freeWindowNamePtr(PVOID namePtr);
294 CHAR *getWindowNameA() { return windowNameA; }; //only for MDI windows!
295 WCHAR *getWindowNameW() { return windowNameW; }; //only for MDI windows!
296Win32WndClass *getClass() { return windowClass; };
297Win32BaseWindow *getOwner() { return owner; };
298 void setOwner(Win32BaseWindow *newOwner) { owner = newOwner; };
299
300 SCROLLBAR_INFO *getScrollInfo(int nBar);
301
302 LRESULT SendMessageA(ULONG msg, WPARAM wParam, LPARAM lParam);
303 LRESULT SendMessageW(ULONG msg, WPARAM wParam, LPARAM lParam);
304static LRESULT BroadcastMessageA(int type, UINT msg, WPARAM wParam, LPARAM lParam);
305static LRESULT BroadcastMessageW(int type, UINT msg, WPARAM wParam, LPARAM lParam);
306 void CallWindowHookProc(ULONG hooktype, ULONG Msg, WPARAM wParam, LPARAM lParam, BOOL fUnicode = FALSE);
307
308 LRESULT DefWindowProcA(UINT Msg, WPARAM wParam, LPARAM lParam);
309 LRESULT DefWindowProcW(UINT msg, WPARAM wParam, LPARAM lParam);
310
311 LRESULT DefWndControlColor(UINT ctlType, HDC hdc);
312 LRESULT DefWndPrint(HDC hdc,ULONG uFlags);
313
314 void NotifyParent(UINT Msg, WPARAM wParam, LPARAM lParam);
315
316 HWND FindWindowById(int id);
317
318 static HWND FindWindowEx(HWND hwndParent, HWND hwndChildAfter, ATOM atom, LPSTR lpszWindow);
319
320 BOOL EnumChildWindows(WNDENUMPROC lpfn, LPARAM lParam);
321 BOOL EnumThreadWindows(DWORD dwThreadId, WNDENUMPROC lpfn, LPARAM lParam);
322 BOOL EnumWindows(WNDENUMPROC lpfn, LPARAM lParam);
323
324 HWND getNextDlgGroupItem(HWND hwndCtrl, BOOL fPrevious);
325
326 BOOL isComingToTop() { return fComingToTop; };
327 void setComingToTop(BOOL fTop) { fComingToTop = fTop; };
328 BOOL isInTasklist() { return fTaskList; };
329
330 //window property methods
331 HANDLE getProp(LPCSTR str);
332 BOOL setProp(LPCSTR str, HANDLE handle);
333 HANDLE removeProp(LPCSTR str);
334 INT enumPropsExA(PROPENUMPROCEXA func, LPARAM lParam);
335 INT enumPropsExW(PROPENUMPROCEXW func, LPARAM lParam);
336
337#ifdef DEBUG
338 LONG addRef();
339 LONG release(char *function = __FUNCTION__, int line = __LINE__ );
340#endif
341
342//Locates window in linked list and increases reference count (if found)
343//Window object must be unreferenced after usage
344static Win32BaseWindow *GetWindowFromHandle(HWND hwnd);
345static Win32BaseWindow *GetWindowFromOS2Handle(HWND hwnd);
346static Win32BaseWindow *GetWindowFromOS2FrameHandle(HWND hwnd);
347
348 static void DestroyAll();
349
350protected:
351#ifndef OS2_INCLUDED
352 BOOL CreateWindowExA(CREATESTRUCTA *lpCreateStruct, ATOM classAtom);
353#endif
354 LRESULT SendInternalMessageA(ULONG msg, WPARAM wParam, LPARAM lParam);
355 LRESULT SendInternalMessageW(ULONG msg, WPARAM wParam, LPARAM lParam);
356 void Init();
357
358 void NotifyFrameChanged(WINDOWPOS *wpos, RECT *oldClientRect);
359
360 //called in destructor to remove all (if any) window properties
361 void removeWindowProps();
362 PROPERTY *findWindowProperty(LPCSTR str);
363
364 HWND OS2Hwnd, OS2HwndFrame;
365 HMENU hSysMenu;
366 HWND Win32Hwnd;
367
368 int posx, posy, width, height;
369
370 // values normally contained in the standard window words
371 ULONG dwExStyle; //GWL_EXSTYLE
372 ULONG dwStyle; //GWL_STYLE
373 ULONG dwOldStyle; //Used to determine which frame control buttons to change (OS/2 mode)
374 WNDPROC win32wndproc; //GWL_WNDPROC
375 ULONG hInstance; //GWL_HINSTANCE
376//Moved in ChildWindow class
377///// Win32BaseWindow *parent; //GWL_HWNDPARENT
378 ULONG dwIDMenu; //GWL_ID
379 ULONG userData; //GWL_USERDATA
380
381 ULONG cbExtra;
382 PVOID pExtra;
383
384 HWND hwndLinkAfter;
385 DWORD flags;
386 DWORD contextHelpId;
387 DWORD hotkey;
388 LONG lastHitTestVal; //Last value returned by WM_NCHITTEST handler
389
390 HWND OS2HwndModalDialog;
391
392 ULONG fFirstShow:1,
393 fIsDialog:1,
394 fIsModalDialog:1,
395 fIsModalDialogOwner:1,
396 fInternalMsg:1, //Used to distinguish between messages
397 //sent by PM and those sent by apps
398 fParentChange:1,
399 fDestroyWindowCalled:1, //DestroyWindow was called for this window
400 fTaskList:1, //should be listed in PM tasklist or not
401 fXDefault:1,
402 fCXDefault:1,
403 fParentDC:1,
404 fComingToTop:1,
405 isUnicode:1,
406 fMinMaxChange:1, //set when switching between min/max/restored state
407 fVisibleRegionChanged:1, //set when visible region has changed -> erase background must be sent during next BeginPaint
408 fEraseBkgndFlag:1;
409
410 ULONG state;
411 HRGN hWindowRegion;
412 HRGN hClipRegion;
413
414 DWORD dwThreadId; //id of thread that created this window
415 DWORD dwProcessId; //id of process that created this window
416
417 Win32BaseWindow *owner;
418 HICON hIcon,hIconSm;
419
420 char *windowNameA;
421 WCHAR *windowNameW;
422
423 char *userWindowBytes;
424 ULONG nrUserWindowBytes;
425
426 RECT rectWindow; //relative to parent
427 RECT rectClient; //relative to frame
428WINDOWPLACEMENT windowpos;
429
430 PROPERTY *propertyList;
431
432 HANDLE hTaskList; //PM specific (switchentry handle)
433
434CREATESTRUCTA *tmpcs; //temporary pointer to CREATESTRUCT used in CreateWindowEx
435 ULONG sw; //set in CreateWindowExA, used in MsgCreate method
436
437SCROLLBAR_INFO *vertScrollInfo;
438SCROLLBAR_INFO *horzScrollInfo;
439
440Win32WndClass *windowClass;
441
442static GenericObject *windows;
443static CRITICAL_SECTION critsect;
444
445private:
446#ifndef OS2_INCLUDED
447 void GetMinMaxInfo(POINT *maxSize, POINT *maxPos, POINT *minTrack, POINT *maxTrack );
448 UINT MinMaximize(UINT cmd, LPRECT lpRect);
449 LONG HandleWindowPosChanging(WINDOWPOS *winpos);
450 LONG HandleNCActivate(WPARAM wParam);
451 VOID TrackMinMaxHelpBox(WORD wParam);
452 VOID TrackCloseButton(WORD wParam);
453 VOID TrackScrollBar(WPARAM wParam,POINT pt);
454 LONG HandleNCLButtonDown(WPARAM wParam,LPARAM lParam);
455 LONG HandleNCLButtonDblClk(WPARAM wParam,LPARAM lParam);
456 LONG HandleNCRButtonUp(WPARAM wParam,LPARAM lParam);
457 VOID AdjustRectOuter(LPRECT rect,BOOL menu);
458 VOID AdjustRectInner(LPRECT rect);
459 LONG HandleNCCalcSize(BOOL calcValidRects,RECT *winRect);
460 VOID GetInsideRect(RECT *rect);
461 VOID DrawFrame(HDC hdc,RECT *rect,BOOL dlgFrame,BOOL active);
462public:
463 LONG HandleNCHitTest(POINT pt);
464 BOOL GetSysPopupPos(RECT* rect);
465private:
466 BOOL DrawSysButton(HDC hdc,RECT *rect);
467 BOOL DrawGrayButton(HDC hdc,int x,int y);
468 VOID DrawCloseButton(HDC hdc,RECT *rect,BOOL down,BOOL bGrayed);
469 VOID DrawMaxButton(HDC hdc,RECT *rect,BOOL down,BOOL bGrayed);
470 VOID DrawMinButton(HDC hdc,RECT *rect,BOOL down,BOOL bGrayed);
471 VOID DrawContextHelpButton(HDC hdc,RECT *rect,BOOL down,BOOL bGrayed);
472 VOID DrawCaption(HDC hdc,RECT *rect,BOOL active);
473 VOID DoNCPaint(HRGN clip,BOOL suppress_menupaint);
474 LONG HandleNCPaint(HRGN clip);
475 LONG HandleSysCommand(WPARAM wParam, POINT *pt32);
476
477 LONG SendNCCalcSize(BOOL calcValidRect,
478 RECT *newWindowRect, RECT *oldWindowRect,
479 RECT *oldClientRect, WINDOWPOS *winpos,
480 RECT *newClientRect );
481
482#else
483friend BOOL OS2ToWinMsgTranslate(void *pThdb, QMSG *os2Msg, MSG *winMsg, BOOL isUnicode, BOOL fTranslateExtraMsgs);
484#endif
485
486public:
487 void SetFakeOpen32() { WinSetDAXData (OS2Hwnd, &fakeWinBase); }
488 void RemoveFakeOpen32() { WinSetDAXData (OS2Hwnd, NULL); }
489
490 fakeOpen32WinBaseClass fakeWinBase;
491
492 VOID AdjustMaximizedRect(LPRECT rect);
493 VOID AdjustTrackInfo(PPOINT minTrackSize,PPOINT maxTrackSize);
494
495 //Temporary hack for CS_CLASSDC style (do the same as for CS_OWNDC)
496#ifndef OS2_INCLUDED
497 BOOL isOwnDC() { return (windowClass && windowClass->getStyle() & (CS_OWNDC|CS_CLASSDC)); }
498#else
499 BOOL isOwnDC() { return (windowClass && windowClass->getStyle() & (CS_OWNDC_W|CS_CLASSDC_W)); }
500#endif
501
502 HDC getOwnDC() { return ownDC; }
503 void setOwnDC(HDC hdc) { ownDC = hdc; }
504protected:
505 HDC ownDC;
506
507public:
508 VOID setEraseBkgnd (BOOL erase) { fEraseBkgndFlag = erase; }
509 BOOL needsEraseBkgnd() { return fEraseBkgndFlag; }
510};
511
512#endif //__cplusplus
513
514#endif //__WIN32WNDBASE_H__
Note: See TracBrowser for help on using the repository browser.