Dialog bar buttons disabled state.
-
I created dialog bar in CHtmlView SDI application by clicking rebar application. But whatever buttons I placed on that bar remain disabled. Even if I tried using only style WM_VISIBLE in precreate window. Or m_dialogbar.EnableWindow(true); or GetDlgItem->(IDC_BUTTON1)->EnableWindow(true); . The buttons remain disabled. How to use it. I just want editbox URL to be navigated on button click,and simple back ,front buttons.
|| ART OF LIVING ||
-
I created dialog bar in CHtmlView SDI application by clicking rebar application. But whatever buttons I placed on that bar remain disabled. Even if I tried using only style WM_VISIBLE in precreate window. Or m_dialogbar.EnableWindow(true); or GetDlgItem->(IDC_BUTTON1)->EnableWindow(true); . The buttons remain disabled. How to use it. I just want editbox URL to be navigated on button click,and simple back ,front buttons.
|| ART OF LIVING ||
I think that you need to add
ON_UPDATE_COMMAND_UI
and/orON_COMMAND
message map entries for the command IDs for the controls on the dialog bar, same as you would normally do for a toolbar or for menu items. See if adding anON_COMMMAND
entry forIDC_BUTTON1
helps. Peace!-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles -
I think that you need to add
ON_UPDATE_COMMAND_UI
and/orON_COMMAND
message map entries for the command IDs for the controls on the dialog bar, same as you would normally do for a toolbar or for menu items. See if adding anON_COMMMAND
entry forIDC_BUTTON1
helps. Peace!-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles