This method enables or disables mouse and keyboard input.
BOOL EnableWindow( BOOL bEnable = TRUE );
CWnd::OnEnable