I'm wondering if anyone can help me on this since I've been looking around google and chances are I found it but just don't understand how to do it. Basically what this is the routine I would like to perform. I have button 'a' and button 'b', if button 'a' is pressed then open a messagebox. If button 'b' is pressed then open a new window and display content for that window.
Sorry to be so vague so basically, I have 2 buttons on my application. 1 is labelled 'a' and another 'b'. How do I tell my application to run through some kind of loop to check if those buttons are pressed? If the first button is clicked open a message box, if the second is then open another window class. Then following that how would I add new properties to that window class that is opened in the same application?
I was thinking of taking the WM_COMMAND
approach in the switch statement, but what are the id's of the CASES and how would they correspond to each button? -- Any help I can get on this problem here is very appreciated, a code example would be EVEN more appreciated!
Cheers