B, I, U
-
Hi, A very simple problem yet I didn't find the solution. How can I make some buttons of the toolbar to remain pressed after the first click and came back up at the second click? Like the B (bold), I (italic) and U (underline) in Outlook, Word, etc. Thanks ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.
-
Hi, A very simple problem yet I didn't find the solution. How can I make some buttons of the toolbar to remain pressed after the first click and came back up at the second click? Like the B (bold), I (italic) and U (underline) in Outlook, Word, etc. Thanks ----- We are what we repeatedly do. Excellence, then, is not an act, but a habit.
Implement the UPDATE_COMMAND_UI handler for the button, and then use pCmdUI->SetCheck ( 1 ) for keeping the button pressed, and with parameter 0 for releasing it. "A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."