Any buttons styles to get a CButton to look like a toolbar button?
-
I have a CDialogBar which has a few CButton objects in it. Each CButton object contains an icon (no text) and I'd like them to appear like the buttons in a CToolBar do (flat, not raised, until the mouse hovers over the button). I used Spy++ to look at the button styles of the buttons in the tool bar, but only the tool bar has a hwnd - none of the buttons do, so it looks like the tool bar might be owner-drawing the buttons itself. Is there a known set of button styles/window styles that one can set a CButton to and get it to appear like a button within a CToolBar does? I can always look and see if someone has built an owner drawn CButton class which emulates a CToolBar button, but if this functionality is already built into the system then I'd rather use what's already here. Thanks, Jeff
-
I have a CDialogBar which has a few CButton objects in it. Each CButton object contains an icon (no text) and I'd like them to appear like the buttons in a CToolBar do (flat, not raised, until the mouse hovers over the button). I used Spy++ to look at the button styles of the buttons in the tool bar, but only the tool bar has a hwnd - none of the buttons do, so it looks like the tool bar might be owner-drawing the buttons itself. Is there a known set of button styles/window styles that one can set a CButton to and get it to appear like a button within a CToolBar does? I can always look and see if someone has built an owner drawn CButton class which emulates a CToolBar button, but if this functionality is already built into the system then I'd rather use what's already here. Thanks, Jeff