User created WM_COMMAND message
-
Is there way to create a WM_COMMAND message from within my code? In constructing a menu under SDI or MDI, one can: 1. Create a menu item. 2. Assign an ID to the menu item 3. Use Wizard to assign the ID to function in a class. I want to create my own WM_MESSAGE in my own code, assign an ID to it, and use Wizard to assign that ID to a particular function in a class. Is there a way to do this? Is there a way to do something similar to this? Thanks.
-
Is there way to create a WM_COMMAND message from within my code? In constructing a menu under SDI or MDI, one can: 1. Create a menu item. 2. Assign an ID to the menu item 3. Use Wizard to assign the ID to function in a class. I want to create my own WM_MESSAGE in my own code, assign an ID to it, and use Wizard to assign that ID to a particular function in a class. Is there a way to do this? Is there a way to do something similar to this? Thanks.
Are you looking for
RegisterWindowsMessage()
?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Is there way to create a WM_COMMAND message from within my code? In constructing a menu under SDI or MDI, one can: 1. Create a menu item. 2. Assign an ID to the menu item 3. Use Wizard to assign the ID to function in a class. I want to create my own WM_MESSAGE in my own code, assign an ID to it, and use Wizard to assign that ID to a particular function in a class. Is there a way to do this? Is there a way to do something similar to this? Thanks.
Oliver123 wrote:
I want to create my own WM_MESSAGE in my own code, assign an ID to it, and use Wizard to assign that ID to a particular function in a class.
look at WM_APP and WM_USER in your local copy of MSDN or you could refer this article[^] by Mr Joseph M. Newcomer
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You