Condividi tramite


CWindow::LockWindowUpdate

Disables or enables drawing in the window by calling the LockWindowUpdate Win32 function.

BOOL LockWindowUpdate(
   BOOL bLock = TRUE 
) throw();

Parameters

  • bLock
    [in] If TRUE (the default value), the window will be locked. Otherwise, it will be unlocked.

Return Value

TRUE if the window is successfully locked; otherwise, FALSE.

Remarks

If bLock is TRUE, this method passes m_hWnd to the Win32 function; otherwise, it passes NULL.

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

Other Resources

CWindow Members