Click here to Skip to main content
16,010,290 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What do you put in stdafx.h ? Pin
Daniel Turini4-Oct-02 4:59
Daniel Turini4-Oct-02 4:59 
AnswerRe: What do you put in stdafx.h ? Pin
Michael P Butler4-Oct-02 5:03
Michael P Butler4-Oct-02 5:03 
Generalrecognize classes Pin
Zizilamoroso4-Oct-02 4:17
Zizilamoroso4-Oct-02 4:17 
GeneralRe: recognize classes Pin
Daniel Turini4-Oct-02 4:26
Daniel Turini4-Oct-02 4:26 
GeneralQuery Com Ports. Pin
Anthony98874-Oct-02 3:47
Anthony98874-Oct-02 3:47 
GeneralRe: Query Com Ports. Pin
Scott H. Settlemier4-Oct-02 4:20
Scott H. Settlemier4-Oct-02 4:20 
GeneralHWND list Pin
The_Server4-Oct-02 2:23
The_Server4-Oct-02 2:23 
GeneralRe: HWND list Pin
Tomasz Sowinski4-Oct-02 3:04
Tomasz Sowinski4-Oct-02 3:04 
You can enumerate all toplevel windows with EnumWindows and check window class with a call to GetClassName for each HWND you get. You'd have to check Explorer windows class name in Spy++. I'm not sure this name remains unchanged between Win9x/NT/2K/XP.

Your other option is searching for process started by explorer.exe, getting its PID and checking the PID for each HWND with GetWindowThreadProcessId. The problem with this approach is that there's no single process enumeration API working across all 32 bit Windows platforms.

Tomasz Sowinski -- http://www.shooltz.com

*** Si fractum non sit, noli id reficere. ***

GeneralRe: HWND list Pin
User 66584-Oct-02 3:11
User 66584-Oct-02 3:11 
GeneralRe: HWND list Pin
Tomasz Sowinski4-Oct-02 3:14
Tomasz Sowinski4-Oct-02 3:14 
GeneralRe: HWND list Pin
User 66584-Oct-02 3:19
User 66584-Oct-02 3:19 
GeneralRe: HWND list Pin
Andreas Saurwein4-Oct-02 5:38
Andreas Saurwein4-Oct-02 5:38 
GeneralRe: HWND list Pin
User 66584-Oct-02 10:06
User 66584-Oct-02 10:06 
GeneralRe: HWND list Pin
Daniel Ferguson4-Oct-02 6:22
Daniel Ferguson4-Oct-02 6:22 
GeneralThanks Pin
The_Server4-Oct-02 14:27
The_Server4-Oct-02 14:27 
GeneralVisual c++ and continue statement Pin
Sas284-Oct-02 1:14
Sas284-Oct-02 1:14 
GeneralRe: Visual c++ and continue statement Pin
Jon Hulatt4-Oct-02 1:14
Jon Hulatt4-Oct-02 1:14 
GeneralRe: Visual c++ and continue statement Pin
jmkhael4-Oct-02 2:57
jmkhael4-Oct-02 2:57 
GeneralRe: Visual c++ and continue statement Pin
Daniel Turini4-Oct-02 5:01
Daniel Turini4-Oct-02 5:01 
GeneralRe: Visual c++ and continue statement Pin
Joe Woodbury7-Oct-02 21:30
professionalJoe Woodbury7-Oct-02 21:30 
GeneralStill inheritance... Pin
Bertrand Boichon3-Oct-02 23:32
Bertrand Boichon3-Oct-02 23:32 
GeneralRe: Still inheritance... Pin
Tomasz Sowinski4-Oct-02 0:01
Tomasz Sowinski4-Oct-02 0:01 
GeneralRe: Still inheritance... Pin
Ranjan Banerji4-Oct-02 3:21
Ranjan Banerji4-Oct-02 3:21 
GeneralRe: Still inheritance... Pin
Tomasz Sowinski4-Oct-02 3:30
Tomasz Sowinski4-Oct-02 3:30 
GeneralRe: Still inheritance... Pin
Ranjan Banerji4-Oct-02 5:09
Ranjan Banerji4-Oct-02 5:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.