Ignore:
Timestamp:
Mar 29, 2003, 5:38:01 PM (22 years ago)
Author:
sandervl
Message:

some minor updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/win32wbase.cpp

    r9941 r9953  
    1 /* $Id: win32wbase.cpp,v 1.364 2003-03-27 10:42:41 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.365 2003-03-29 16:38:00 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    120120  fIsDragDropActive= FALSE;
    121121  fDirtyUpdateRegion = FALSE;
     122  fWindowLocked    = FALSE;
    122123
    123124  state            = STATE_INIT;
     
    40094010    SetLastError(ERROR_INVALID_INDEX);  //verified in NT4, SP6
    40104011    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//******************************************************************************
     4028BOOL 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//******************************************************************************
     4048void 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    }
    40114059}
    40124060//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.