Click here to Skip to main content
15,042,336 members
Please Sign up or sign in to vote.
0.00/5 (No votes)

I've recently shifted from VC6 to VC2005. In VC6, I had no problem in adding message handlers. It was easily done with the help of the class wizard. But in VC2005, there's no option for class wizard. How do I add message handlers then? For example: If I've to add WM_GETMINMAXINFO handler, how do I do that?

Ramya Suvarna

1 solution


I got the answer to my question.
The way to add message handler (WM_GETMINMAXINFO in this case) is-->
* Go to class view tab. Right click on the class name to which the message handler has to be added.
* Click on 'properties'. Now u'll get the properties' window on ur right hand side.
*Select the 5th icon on its tab which reads 'messages'( when u hover ur mouse on that icon).
*A list of message handler related to that class appears. When u click on the desired message, it shows a dropdown box next to it. On clicking this dropdown box it will show an option saying 'Add<message selected="">'. click on this and ur message handler is added to ur respective class.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900