Click to See Complete Forum and Search --> : Window handle


ely_g
December 6th, 2004, 09:16 AM
Hi there,
I have to use in my code the function PostMessage to send a message from a thread to the window in which the thread is launched.

How can I retreive a handle to this window? I tried with AfxGetMainWnd but nothing happens, so is there a method useful to solve my problem?

Thank you in advance

Andreas Masur
December 6th, 2004, 09:18 AM
Take a look at the following FAQ (http://www.codeguru.com/forum/showthread.php?t=312454)....

Andreas Masur
December 6th, 2004, 09:18 AM
[ Moved thread ]

ely_g
December 6th, 2004, 09:36 AM
Very helpful. Thank you!!

Andreas Masur
December 6th, 2004, 10:16 AM
You are welcome...