-
August 12th, 2009, 07:41 PM
#1
Wmessages handler without mfc
What is the equivalent of the construct
ON_MESSAGE(WM_winmessage, EventHandler)
in win32 C++? I mean without using mfcs
-
August 12th, 2009, 08:12 PM
#2
Re: Wmessages handler without mfc
A winproc and a big switch statement.
-
August 13th, 2009, 02:30 AM
#3
Re: Wmessages handler without mfc
-
August 13th, 2009, 04:55 AM
#4
Re: Wmessages handler without mfc
Perfect, exactly what I needed. Thank you both.
Just another doubt: I have to create a wrapper class for a specific protocol, the purpose of this class is to be useful and easy to use for other people to integrate in their C++ projects.
Is it better to design this class using mfcs or not? Not-mfc classes may be incorporate into mfc projects right?
-
August 13th, 2009, 04:57 AM
#5
Re: Wmessages handler without mfc
I was thinking at the "windows.h" thing.. Mfc have some problem with it and always give errors like "windows.h should not be included with mfcs", but if I do not use it what's the solution?
-
August 13th, 2009, 08:13 AM
#6
Re: Wmessages handler without mfc
In an MFC application you should not include windows.h, because it's included from <afx.h>.
Oh the other hand, non-MFC classes can of course be used in MFC applications, but MFC classes cannot be used in non-MFC applications.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|