共用方式為


CWindow::IsWindowEnabled

決定 視窗是否為輸入啟用。

BOOL IsWindowEnabled( ) const throw();

備註

請參閱在 Windows SDK的 IsWindowEnabled

範例

//The following example attaches an HWND to the CWindow object and 
//calls CWindow::IsWindowEnabled() to verify if the window is enabled 
//for receiving input

CWindow myWindow;
myWindow.Attach(hWnd);
BOOL bEnabled = myWindow.IsWindowEnabled();

需求

Header: atlwin.h

請參閱

參考

CWindow 類別

CWindow::EnableWindow

CWindow::IsWindowVisible

CWindow::IsWindowUnicode