Changeset 5685 for trunk/src/user32/win32wbase.h
- Timestamp:
- May 11, 2001, 10:39:46 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.h
r5606 r5685 1 /* $Id: win32wbase.h,v 1.11 5 2001-04-27 17:36:39sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.116 2001-05-11 08:39:45 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 134 134 ULONG MsgPaint(ULONG tmp1, BOOL select = TRUE); 135 135 ULONG MsgEraseBackGround(HDC hdc); 136 #ifndef ODIN_HITTEST 137 ULONG MsgHitTest(MSG *msg); 138 #endif 139 ULONG MsgNCPaint(); 136 ULONG MsgNCPaint(PRECT pUpdateRect); 140 137 ULONG MsgFormatFrame(WINDOWPOS *lpWndPos); 141 138 ULONG DispatchMsgA(MSG *msg); … … 160 157 HWND getWindowHandle() { return Win32Hwnd; }; 161 158 HWND getOS2WindowHandle() { return OS2Hwnd; }; 159 HWND getOS2FrameWindowHandle() { return OS2HwndFrame; }; 162 160 163 161 Win32WndClass *getWindowClass() { return windowClass; }; … … 260 258 BOOL IsMixMaxStateChanging() { return fMinMaxChange; }; 261 259 260 void SetVisibleRegionChanged(BOOL changed) { fVisibleRegionChanged = changed; }; 261 BOOL IsVisibleRegionChanged() { return fVisibleRegionChanged; }; 262 262 263 int GetWindowTextLength(BOOL fUnicode); 263 264 int GetWindowTextLengthA() { return GetWindowTextLength(FALSE); }; … … 317 318 static Win32BaseWindow *GetWindowFromHandle(HWND hwnd); 318 319 static Win32BaseWindow *GetWindowFromOS2Handle(HWND hwnd); 320 static Win32BaseWindow *GetWindowFromOS2FrameHandle(HWND hwnd); 319 321 320 322 static void DestroyAll(); … … 334 336 PROPERTY *findWindowProperty(LPCSTR str); 335 337 336 HWND OS2Hwnd ;338 HWND OS2Hwnd, OS2HwndFrame; 337 339 HMENU hSysMenu; 338 340 HWND Win32Hwnd; … … 358 360 HWND OS2HwndModalDialog; 359 361 360 unsigned fFirstShow:1;361 unsigned fIsDialog:1;362 unsigned fIsModalDialog:1;363 unsigned fIsModalDialogOwner:1;364 unsigned fInternalMsg:1;//Used to distinguish between messages362 ULONG fFirstShow:1, 363 fIsDialog:1, 364 fIsModalDialog:1, 365 fIsModalDialogOwner:1, 366 fInternalMsg:1, //Used to distinguish between messages 365 367 //sent by PM and those sent by apps 366 unsigned fNoSizeMsg:1;367 unsigned fIsDestroyed:1;368 unsigned fDestroyWindowCalled:1;//DestroyWindow was called for this window369 unsigned fCreated:1;370 unsigned fCreationFinished:1;//True when window or dialog has been created successfully368 fNoSizeMsg:1, 369 fIsDestroyed:1, 370 fDestroyWindowCalled:1, //DestroyWindow was called for this window 371 fCreated:1, 372 fCreationFinished:1, //True when window or dialog has been created successfully 371 373 //Needed to prevent DestroyWindow from deleting the window 372 374 //object during construction 373 unsigned fTaskList:1; //should be listed in PM tasklist or not 374 unsigned fXDefault:1; 375 unsigned fCXDefault:1; 376 unsigned fParentDC:1; 377 unsigned fComingToTop:1; 378 unsigned fCreateSetWindowPos:1; //FALSE -> SetWindowPos in Win32BaseWindow::MsgCreate not yet called 379 unsigned isUnicode:1; 380 unsigned fMinMaxChange:1; //set when switching between min/max/restored state 381 unsigned fOwnDCDirty:1; //set when selectClientArea must reset the origin + visible region 375 fTaskList:1, //should be listed in PM tasklist or not 376 fXDefault:1, 377 fCXDefault:1, 378 fParentDC:1, 379 fComingToTop:1, 380 fCreateSetWindowPos:1, //FALSE -> SetWindowPos in Win32BaseWindow::MsgCreate not yet called 381 isUnicode:1, 382 fMinMaxChange:1, //set when switching between min/max/restored state 383 fVisibleRegionChanged:1, //set when visible region has changed -> erase background must be sent during next BeginPaint 384 fEraseBkgndFlag:1; 382 385 383 386 HRGN hWindowRegion; … … 469 472 BOOL isOwnDC() { return (windowClass && windowClass->getStyle() & CS_OWNDC_W); } 470 473 #endif 471 void invalidateOwnDC() { fOwnDCDirty = TRUE; };472 void validateOwnDC() { fOwnDCDirty = FALSE; };473 BOOL isOwnDCDirty() { return fOwnDCDirty; };474 474 475 475 HDC getOwnDC() { return ownDC; } … … 478 478 HDC ownDC; 479 479 480 ULONG EraseBkgndFlag:1,481 filler:31;482 480 public: 483 VOID setEraseBkgnd (BOOL erase) { EraseBkgndFlag = erase; }484 BOOL needsEraseBkgnd() { return EraseBkgndFlag; }481 VOID setEraseBkgnd (BOOL erase) { fEraseBkgndFlag = erase; } 482 BOOL needsEraseBkgnd() { return fEraseBkgndFlag; } 485 483 }; 486 484
Note:
See TracChangeset
for help on using the changeset viewer.