다음을 통해 공유


CWindow::EnableWindow

입력을 사용할 수 있거나.

BOOL EnableWindow( 
   BOOL bEnable = TRUE  
) throw();

설명

참조 EnableWindow 에 있는 Windows SDK.

예제

//The following example attaches an HWND to the CWindow object and  
//calls CWindow::EnableWindow() to enable and disable the window 
//wrapped by the CWindow object

CWindow myWindow;
myWindow.Attach(hWnd);

//The following call enables the window  
//CWindow::EnableWindow() takes TRUE as the default parameter

myWindow.EnableWindow();

if(myWindow.IsWindowEnabled())
{
   //Do something now that the window is enabled 

   //Now it's time to disable the window again
   myWindow.EnableWindow(FALSE);
}

요구 사항

헤더: atlwin.h

참고 항목

참조

CWindow Class

CWindow::IsWindowEnabled