如何在 屬性頁中使某一頁中的某一控件如 Check1 去 禁用 另一頁中的部分控件!EnableWindow 這個 我知道,可是在涉及到上面問題的時候,我不知道該把EnableWindow 放哪個地方。直接放在 CHECK1的 響應函數 肯定是不行的! 有什么問題要注意的?
2 回答

Qyouu
TA貢獻1786條經驗 獲得超11個贊
另一屬性頁 指針 pPropety(假設)
另一屬性頁 控件 ID nIDCtl(假設)
pPropety->GetDlgItem(nIDCtl)->EnableWindow(FALSE);//禁用
pPropety->GetDlgItem(nIDCtl)->EnableWindow(TRUE);//啟用

呼如林
TA貢獻1798條經驗 獲得超3個贊
BOOL EnableWindow( HWND hWnd,
BOOL bEnable
);
Parameters
hWnd
[in] Handle to the window to be enabled or disabled.
bEnable
[in] Specifies whether to enable or disable the window. If this parameter is TRUE, the window is enabled. If the parameter is FALSE, the window is disabled.
- 2 回答
- 0 關注
- 236 瀏覽
添加回答
舉報
0/150
提交
取消