Changeset 2383 for trunk/src/user32/win32wbase.h
- Timestamp:
- Jan 9, 2000, 3:38:30 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.h
r2371 r2383 1 /* $Id: win32wbase.h,v 1.6 7 2000-01-08 14:15:09sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.68 2000-01-09 14:37:12 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 84 84 ULONG MsgEraseBackGround(HDC hdc); 85 85 ULONG MsgInitMenu(MSG *msg); 86 ULONG MsgHitTest( MSG *msg);86 ULONG MsgHitTest(ULONG x, ULONG y); 87 87 ULONG MsgNCPaint(); 88 88 ULONG DispatchMsgA(MSG *msg); … … 110 110 HWND getOS2FrameWindowHandle() { return OS2HwndFrame; }; 111 111 Win32WndClass *getWindowClass() { return windowClass; }; 112 113 BOOL getIgnoreHitTest() { return fIgnoreHitTest; }114 VOID setIgnoreHitTest(BOOL ignore) { fIgnoreHitTest = ignore; }115 112 116 113 BOOL getDefWndProcCalled() { return fDefWndProcCalled; }; … … 139 136 PRECT getClientRect() { return &rectClient; }; 140 137 void setClientRect(PRECT rect) { rectClient = *rect; }; 141 PRECT getWindowRect() { return &rectWindow; };142 138 void setClientRect(LONG left, LONG top, LONG right, LONG bottom) 143 139 { … … 145 141 rectClient.right = right; rectClient.bottom = bottom; 146 142 }; 147 void setWindowRect(LONG left, LONG top, LONG right, LONG bottom) 148 { 149 rectWindow.left = left; rectWindow.top = top; 150 rectWindow.right = right; rectWindow.bottom = bottom; 151 }; 152 void setWindowRect(PRECT rect) { rectWindow = *rect; }; 143 PRECT getWindowRect(); 144 void setWindowRect(LONG left, LONG top, LONG right, LONG bottom); 145 void setWindowRect(PRECT rect); 146 void setWindowRectChanged(); 147 153 148 DWORD getFlags() { return flags; }; 154 149 void setFlags(DWORD newflags) { flags = newflags; }; … … 196 191 BOOL IsWindowUnicode(); 197 192 198 BOOL GetWindowRect(PRECT pRect);199 193 int GetWindowTextLength(); 200 194 int GetWindowTextA(LPSTR lpsz, int cch); … … 304 298 DWORD contextHelpId; 305 299 LONG lastHitTestVal; //Last value returned by WM_NCHITTEST handler 306 BOOL fIgnoreHitTest; //Use WinWindowFromPoint during WM_HITTEST 307 308 BOOL isIcon; 309 BOOL fFirstShow; 310 BOOL fIsDialog; 311 BOOL fIsModalDialog; 312 BOOL fIsModalDialogOwner; 300 313 301 HWND OS2HwndModalDialog; 314 BOOL fInternalMsg; //Used to distinguish between messages 315 //sent by PM and those sent by apps 316 BOOL fNoSizeMsg; 317 BOOL fIsDestroyed; 318 BOOL fDestroyWindowCalled; //DestroyWindow was called for this window 319 BOOL fCreated; 320 BOOL fTaskList; //should be listed in PM tasklist or not 321 BOOL fParentDC; 322 323 BOOL fDefWndProcCalled; //set when DefWndProc called; used in PM window handlers to determine what to do next 302 303 ULONG isIcon :1, 304 fFirstShow :1, 305 fIsDialog :1, 306 fIsModalDialog :1, 307 fIsModalDialogOwner :1, 308 fInternalMsg :1, //Used to distinguish between messages 309 //sent by PM and those sent by apps 310 fNoSizeMsg :1, 311 fIsDestroyed :1, 312 fDestroyWindowCalled :1, //DestroyWindow was called for this window 313 fCreated :1, 314 fTaskList :1, //should be listed in PM tasklist or not 315 fParentDC :1, 316 fIsSubclassedOS2Wnd :1, //subclassed OS/2 window: Netscape plug-in/scrollbar 317 fDefWndProcCalled :1, //set when DefWndProc called; used in PM window handlers to determine what to do next 318 fWindowRectChanged :1; //Set when parent window has been moved; cleared when window rect is updated 324 319 325 320 HRGN hWindowRegion; … … 334 329 335 330 PVOID pOldWndProc; 336 BOOL fIsSubclassedOS2Wnd; //subclassed OS/2 window: Netscape plug-in/scrollbar337 331 338 332 Win32BaseWindow *owner; … … 365 359 void GetMinMaxInfo(POINT *maxSize, POINT *maxPos, POINT *minTrack, POINT *maxTrack ); 366 360 LONG HandleWindowPosChanging(WINDOWPOS *winpos); 367 LONG HandleNCLButtonDown(WPARAM wParam,LPARAM lParam);368 LONG HandleNCLButtonUp(WPARAM wParam,LPARAM lParam);369 LONG HandleNCLButtonDblClk(WPARAM wParam,LPARAM lParam);370 361 LONG HandleSysCommand(WPARAM wParam, POINT *pt32); 371 362 … … 386 377 friend BOOL OS2ToWinMsgTranslate(void *pThdb, QMSG *os2Msg, MSG *winMsg, BOOL isUnicode, BOOL fTranslateExtraMsgs); 387 378 #endif 379 380 //painting & non-client methods 381 BOOL DrawSysButton(HDC hdc,BOOL down); 382 BOOL DrawGrayButton(HDC hdc,int x,int y); 383 VOID DrawCloseButton(HDC hdc,BOOL down,BOOL bGrayed); 384 VOID DrawMaxButton(HDC hdc,BOOL down,BOOL bGrayed); 385 VOID DrawMinButton(HDC hdc,BOOL down,BOOL bGrayed); 386 VOID DrawCaption(HDC hdc,RECT *rect,BOOL active); 387 VOID DrawFrame(HDC hdc,RECT *rect,BOOL dlgFrame,BOOL active); 388 389 VOID GetInsideRect(RECT *rect); 390 391 VOID TrackMinMaxBox(WORD wParam); 392 VOID TrackCloseButton(WORD wParam); 393 394 VOID HandleNCPaint(HRGN clip,BOOL suppress_menupaint); 395 LONG HandleNCHitTest(POINT pt); 396 LONG HandleNCActivate(WPARAM wParam); 397 LONG HandleNCLButtonDown(WPARAM wParam,LPARAM lParam); 398 LONG HandleNCLButtonUp(WPARAM wParam,LPARAM lParam); 399 LONG HandleNCLButtonDblClk(WPARAM wParam,LPARAM lParam); 388 400 389 401 public:
Note:
See TracChangeset
for help on using the changeset viewer.