i have a button that is a rectangle how would i put words in it i want to make so ican click the word and it starts the progrma i know ShellExecute the style is BS_GROUPBOX
+1
A:
If you have more than one program you want to start, you need a button per program you want to start.
To start you external progrma, in the button parent window, you need to process the WM_COMMAND
message with the BN_CLICKED
notification.
To set the text of the button, you need to send WM_SETTEXT
message to the button with the text you want shown.
Btw, BS_GROUPBOX
is used for creating the rectangle around radio buttons. This style is not going to work for your scenario.
If you want an alternative to using multiple Button controls, you can use a Toolbar. In fact, it seems to me that a toolbar would be a better control for you. You can read more about creating a toolbar.
Franci Penov
2009-02-22 02:59:46