Hi,
I am following tutorial and trying to do following...Use ClassWizard to set up a message handler for WM_TIMER:
I got the screen shot of what I need to do. I have vs 8 running.Only way i know how to access class wizard is if I click on control on my dialog and then right click to add variable or class but I never seen when I invoke class wizard anything like I have on this screen shot. How do I access this class wizard.
Thanks
I am trying to add handler for WM_TIMER that's why I needed this class wizard. I just tried to write OnTimer() method but it didn't work so obviously needs to be added by using class wizard.
Depending on how you define a method. For me OnTimer is not a method, it is a message handler (one of the elements of static function array). It is called by the framework to allow you to handle windows messages.
In VS later than 6, in a class view select class you want to add a message handler and invoke properties.
You will have several buttons at the top of property box
Press button pointed by the arrow and select a message you want to handle.
There are only 10 types of people in the world: Those who understand binary and those who do not.
I am trying to add handler for WM_TIMER that's why I needed this class wizard. I just tried to write OnTimer() method but it didn't work so obviously needs to be added by using class wizard.
No, you can still code it by hand without the class wizard.
No, you can still code it by hand without the class wizard.
Of course, you can. You can also write entire application without MFC or you can manually enter DDX calls. A question is WHY bother, if you have a tools to do it for you, so instead wasting time on reinventing a wheel you can spend time to write robust code.
There are only 10 types of people in the world: Those who understand binary and those who do not.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.