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

Last change on this file since 9807 was 9598, checked in by sandervl, 23 years ago

Merged Rewind menu control

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