Changeset 9953 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Mar 29, 2003, 5:38:01 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r9941 r9953 1 /* $Id: win32wbase.cpp,v 1.36 4 2003-03-27 10:42:41sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.365 2003-03-29 16:38:00 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 120 120 fIsDragDropActive= FALSE; 121 121 fDirtyUpdateRegion = FALSE; 122 fWindowLocked = FALSE; 122 123 123 124 state = STATE_INIT; … … 4009 4010 SetLastError(ERROR_INVALID_INDEX); //verified in NT4, SP6 4010 4011 return 0; 4012 } 4013 //****************************************************************************** 4014 // Win32BaseWindow::setVisibleRgnNotifyProc 4015 // 4016 // Sets the visible region change notification handler. Called when 4017 // the window receives a WM_VRNDISABLED or WM_VRNENABLED message (PM). 4018 // 4019 // Parameters: 4020 // VISRGN_NOTIFY_PROC lpNotifyProc - notification handler 4021 // DWORD dwUserData - caller supplied parameter for handler invocations 4022 // 4023 // Returns: 4024 // TRUE - Success 4025 // FALSE - Failure 4026 // 4027 //****************************************************************************** 4028 BOOL Win32BaseWindow::setVisibleRgnNotifyProc(VISRGN_NOTIFY_PROC lpNotifyProc, DWORD dwUserData) 4029 { 4030 lpVisRgnNotifyProc = lpNotifyProc; 4031 dwVisRgnNotifyParam = dwUserData; 4032 return TRUE; 4033 } 4034 //****************************************************************************** 4035 // Win32BaseWindow::callVisibleRgnNotifyProc 4036 // 4037 // Call the visible region change notification handler. Called when 4038 // the window receives a WM_VRNDISABLED or WM_VRNENABLED message (PM). 4039 // 4040 // Parameters: 4041 // BOOL fDrawingAllowed - drawing is allowed or not 4042 // 4043 // Returns: 4044 // TRUE - Success 4045 // FALSE - Failure 4046 // 4047 //****************************************************************************** 4048 void Win32BaseWindow::callVisibleRgnNotifyProc(BOOL fDrawingAllowed) 4049 { 4050 if(fDrawingAllowed) { 4051 fWindowLocked = TRUE; 4052 } 4053 else { 4054 fWindowLocked = FALSE; 4055 } 4056 if(lpVisRgnNotifyProc) { 4057 lpVisRgnNotifyProc(getWindowHandle(), fDrawingAllowed, dwVisRgnNotifyParam); 4058 } 4011 4059 } 4012 4060 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.