CDockablePane上的动态按钮不可用(Button is disabled on CDockablePane)解决方法
时间:2010-08-19 来源:轻轻听
It looks like you haven't created a command UI handler for it yet...
BEGIN_MESSAGE_MAP(CMyDialogBar, CDialogBar)
ON_MESSAGE(WM_INITDIALOG, OnInitDialog)
ON_BN_CLICKED(IDC_BUTTON, OnClickButton)
ON_UPDATE_COMMAND_UI(IDC_BUTTON, OnUpdateClickMyButton)
END_MESSAGE_MAP()
void CMyDialogBar::OnUpdateClickMyButton(CCmdUI* pCmdUI)
{ pCmdUI->Enable(); }
Hope that helps!
相关阅读 更多 +