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!