|
-
March 30th, 1999, 11:36 PM
#1
EnumWindows,EnumWindowsProc and MFC
Hi;
I know how to use EnumWindows and EnumWindowsProc in cpp,
but i don;t know how to define the prototype of th EnumWindowsProc
in MFC dialog base application,
anyone can give me a sample code?
Thanks
-
March 31st, 1999, 10:15 AM
#2
Re: EnumWindows,EnumWindowsProc and MFC
I don't see the problem, AFAIAA the prototype for EnumWindowsProc is no different using MFC than in plain Windows SDK.
What problems do you get?
Dave
-
March 31st, 1999, 09:49 PM
#3
Re: EnumWindows,EnumWindowsProc and MFC
thanks for you reply,
but i still wonder how shall i do..
1. Where shall i put the EnumWindowsProc function? A new class? View class?
or as a global?
2. How shall i define the EnumWindowsProc? as BOOL CALLBACK?
Thanks
-
April 1st, 1999, 05:32 AM
#4
Re: EnumWindows,EnumWindowsProc and MFC
You can put it wherever you like. If you make it a class member, you must make it static.
It is declared as:
BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam);
Of course, you don't have to call it EnumWindowsProc!
Dave
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
|