Buttons on a DialogBar
-
Hi all. I have a DialogBar which I've added to my SDI application. I create the Dialog resource with some text areas and buttons in Resource View and add it to the application, docked at the bottom. All is well. However, the buttons are grayed out as though they're disabled. I can get a handle to the CButton at runtime and it does indeed think its enabeled. Checkboxes, radio buttons, list boxes, etc. all seem to work without looking disabled. What's the deal? Code that adds the dialog bar, in CMainFrame::OnCreate : if (!m_wndTransBar.Create(this, IDD_TRANS_BAR, CBRS_BOTTOM, IDD_TRANS_BAR)) { TRACE0("Failed to create translation bar\n") ; return -1 ; }
-
Hi all. I have a DialogBar which I've added to my SDI application. I create the Dialog resource with some text areas and buttons in Resource View and add it to the application, docked at the bottom. All is well. However, the buttons are grayed out as though they're disabled. I can get a handle to the CButton at runtime and it does indeed think its enabeled. Checkboxes, radio buttons, list boxes, etc. all seem to work without looking disabled. What's the deal? Code that adds the dialog bar, in CMainFrame::OnCreate : if (!m_wndTransBar.Create(this, IDD_TRANS_BAR, CBRS_BOTTOM, IDD_TRANS_BAR)) { TRACE0("Failed to create translation bar\n") ; return -1 ; }
Have you added handlers for your toolbar to the mainframe class ON_COMMAND_RANGE(ID_DYNAMIC_START, ID_DYNAMIC_END, OnDynamicCommand)ON_UPDATE_COMMAND_UI_RANGE(ID_DYNAMIC_START, ID_DYNAMIC_END, OnUpdateDynamicCommand) ??? Brian
-
Have you added handlers for your toolbar to the mainframe class ON_COMMAND_RANGE(ID_DYNAMIC_START, ID_DYNAMIC_END, OnDynamicCommand)ON_UPDATE_COMMAND_UI_RANGE(ID_DYNAMIC_START, ID_DYNAMIC_END, OnUpdateDynamicCommand) ??? Brian