Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Just a matter of style.. Pin
David Crow4-Oct-07 9:46
David Crow4-Oct-07 9:46 
AnswerRe: Just a matter of style.. Pin
Michael Dunn4-Oct-07 11:03
sitebuilderMichael Dunn4-Oct-07 11:03 
GeneralRe: Just a matter of style.. Pin
bigdenny2004-Oct-07 11:06
bigdenny2004-Oct-07 11:06 
AnswerRe: Just a matter of style.. Pin
John R. Shaw4-Oct-07 11:28
John R. Shaw4-Oct-07 11:28 
AnswerRe: Just a matter of style.. Pin
DQNOK15-Oct-07 11:27
professionalDQNOK15-Oct-07 11:27 
QuestionGetting the handle of active window in other thread Pin
dudedotnet4-Oct-07 8:07
dudedotnet4-Oct-07 8:07 
AnswerRe: Getting the handle of active window in other thread Pin
Mark Salsbery4-Oct-07 8:47
Mark Salsbery4-Oct-07 8:47 
GeneralRe: Getting the handle of active window in other thread Pin
dudedotnet8-Oct-07 1:38
dudedotnet8-Oct-07 1:38 
Thankx a lot Mark... that worked for a bit...

The prob with ForGr..() is tht if we open any other window while this is code is running...then screenshot is changed cos it takes the picture of the window with which the user is interacting at that moment...

I'll explain my scenario a bit...
Im opening an application from my code...then that application is run and tht app will create a dialog...until the dialog is destroyed the control doesnt return to the next line of code...so im creating another thread and taking the screen shot...

GetActiveWindow() returns the handle of the window of the present thread but i want the handle to the window of another thread...

i got a start in this dir...
i used GetWindowThreadProcessId() to get the threadID and used GetGUIThreadInfo() to get the handle for the window...
but i got got stuck here...its throwing a external link error...

can u guide me in this...

Inder... Wink | ;) Smile | :)
QuestionRe: Getting the handle of active window in other thread Pin
Mark Salsbery8-Oct-07 6:47
Mark Salsbery8-Oct-07 6:47 
AnswerRe: Getting the handle of active window in other thread Pin
dudedotnet9-Oct-07 1:38
dudedotnet9-Oct-07 1:38 
GeneralRe: Getting the handle of active window in other thread Pin
Mark Salsbery9-Oct-07 5:52
Mark Salsbery9-Oct-07 5:52 
GeneralRe: Getting the handle of active window in other thread Pin
dudedotnet9-Oct-07 23:55
dudedotnet9-Oct-07 23:55 
QuestionInserting an ActiveX control based TreeView into a CAD program Pin
larsgregersen4-Oct-07 6:03
larsgregersen4-Oct-07 6:03 
QuestionIs there a way to switch focus?? Pin
Kiran Satish4-Oct-07 5:42
Kiran Satish4-Oct-07 5:42 
AnswerRe: Is there a way to switch focus?? Pin
Mark Salsbery4-Oct-07 5:51
Mark Salsbery4-Oct-07 5:51 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish4-Oct-07 7:11
Kiran Satish4-Oct-07 7:11 
GeneralRe: Is there a way to switch focus?? Pin
Mark Salsbery4-Oct-07 7:30
Mark Salsbery4-Oct-07 7:30 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish4-Oct-07 11:30
Kiran Satish4-Oct-07 11:30 
GeneralRe: Is there a way to switch focus?? Pin
Mark Salsbery4-Oct-07 11:43
Mark Salsbery4-Oct-07 11:43 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish4-Oct-07 13:00
Kiran Satish4-Oct-07 13:00 
GeneralRe: Is there a way to switch focus?? Pin
Mark Salsbery4-Oct-07 13:09
Mark Salsbery4-Oct-07 13:09 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish5-Oct-07 7:33
Kiran Satish5-Oct-07 7:33 
GeneralRe: Is there a way to switch focus?? Pin
Mark Salsbery5-Oct-07 7:38
Mark Salsbery5-Oct-07 7:38 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish5-Oct-07 9:36
Kiran Satish5-Oct-07 9:36 
GeneralRe: Is there a way to switch focus?? Pin
Mark Salsbery5-Oct-07 9:42
Mark Salsbery5-Oct-07 9:42 

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.