Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRetrieving main thread handle or ID Pin
9-Nov-01 7:40
suss9-Nov-01 7:40 
GeneralRe: Retrieving main thread handle or ID Pin
Joel Lucsy9-Nov-01 7:47
Joel Lucsy9-Nov-01 7:47 
GeneralRe: Retrieving main thread handle or ID Pin
9-Nov-01 8:19
suss9-Nov-01 8:19 
GeneralRe: Retrieving main thread handle or ID Pin
Tim Deveaux10-Nov-01 3:39
Tim Deveaux10-Nov-01 3:39 
GeneralRe: Retrieving main thread handle or ID Pin
10-Nov-01 5:46
suss10-Nov-01 5:46 
GeneralRe: Retrieving main thread handle or ID Pin
Tim Smith10-Nov-01 6:13
Tim Smith10-Nov-01 6:13 
GeneralRe: Retrieving main thread handle or ID Pin
Tim Deveaux10-Nov-01 7:54
Tim Deveaux10-Nov-01 7:54 
GeneralRe: Retrieving main thread handle or ID Pin
10-Nov-01 10:53
suss10-Nov-01 10:53 
First, thank you for your help so far.

Here's some more information about my problem:
I want to fill a list (box) with processes (represented through window titles) to terminate. To perform this task I'm using EnumWindows(). In the EnumWindowsProc I filter out invisible windows, windows without a title, certain window classes (tooltips etc.) and windows that don't return NULL for GetWindow(hWnd, GW_OWNER)...
This works fine if there's only one (top-level) window-owning thread per process. Otherwise more than one window per process passes my EnumWindowsProc. To avoid this I want to filter out all windows created by secondary threads...

Does anybody here know a solution?
GeneralPass array or single HWND into function Pin
9-Nov-01 7:16
suss9-Nov-01 7:16 
GeneralRe: Pass array or single HWND into function Pin
Tim Smith9-Nov-01 7:44
Tim Smith9-Nov-01 7:44 
GeneralRe: Pass array or single HWND into function Pin
9-Nov-01 7:50
suss9-Nov-01 7:50 
GeneralRe: Pass array or single HWND into function Pin
Carlos Antollini9-Nov-01 7:57
Carlos Antollini9-Nov-01 7:57 
GeneralRe: Pass array or single HWND into function Pin
9-Nov-01 7:58
suss9-Nov-01 7:58 
GeneralRe: Pass array or single HWND into function Pin
Tim Smith9-Nov-01 8:10
Tim Smith9-Nov-01 8:10 
GeneralThanks!!! Pin
9-Nov-01 8:18
suss9-Nov-01 8:18 
GeneralDestroying / closing windows Pin
ParaSwarm9-Nov-01 6:59
ParaSwarm9-Nov-01 6:59 
GeneralRe: Destroying / closing windows Pin
Carlos Antollini9-Nov-01 7:21
Carlos Antollini9-Nov-01 7:21 
GeneralRe: Destroying / closing windows Pin
Nish Nishant9-Nov-01 8:05
sitebuilderNish Nishant9-Nov-01 8:05 
GeneralRegistry Pin
Deian9-Nov-01 6:44
Deian9-Nov-01 6:44 
GeneralRe: Registry Pin
Carlos Antollini9-Nov-01 7:02
Carlos Antollini9-Nov-01 7:02 
QuestionIs it possible to custom draw the scroll bar in CListCtrl? Pin
RobJones9-Nov-01 3:58
RobJones9-Nov-01 3:58 
GeneralDisable Help button on the "Customize Toolbar" dialog box Pin
9-Nov-01 3:45
suss9-Nov-01 3:45 
GeneralHelp.... Pin
sardinka9-Nov-01 3:42
sardinka9-Nov-01 3:42 
GeneralRe: Help.... Pin
Michael P Butler9-Nov-01 4:06
Michael P Butler9-Nov-01 4:06 
GeneralRe: Help.... Pin
sardinka9-Nov-01 5:21
sardinka9-Nov-01 5:21 

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.