BOOL EnableWindow( BOOL bEnable = TRUE );
See EnableWindow in the Win32 SDK.
Remarks
Enables or disables input.
CWindow Overview | Class Members
See Also CWindow::IsWindowEnabled