CDockablePane上的动态按钮不可用(Button is disabled on CDockablePane)解决方法

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!

posted on 2010-08-19 22:15  轻轻听  阅读(562)  评论(0编辑  收藏  举报

导航