| View previous topic :: View next topic |
| Author |
Message |
Jim Flanagan Guest
|
Posted: Sun Jul 20, 2003 10:41 pm Post subject: How to Obtain window handle.. |
|
|
Hello..
I am writing a DLL which needs to determine what the window handle
(HWND) is of the calling application. MFC has something like
AfxGetWindow (I think) which supposedly will do this. Is there something
similar in BCB that will do this? Your help would be appreciated..
Thanks..
Jim
|
|
| Back to top |
|
 |
Maynard Philbrook Guest
|
Posted: Mon Jul 21, 2003 5:15 pm Post subject: Re: How to Obtain window handle.. |
|
|
That is a hard Nut to crack since different languages may treat what is
cosidered the
main window of that process differently.
it would be better to force the coder to supply the window handle via a call
to your dll.
you can use things like EnumThreadWindows, EnumWIndows to find main
windows that belong to the current process..
Jim Flanagan wrote:
| Quote: | Hello..
I am writing a DLL which needs to determine what the window handle
(HWND) is of the calling application. MFC has something like
AfxGetWindow (I think) which supposedly will do this. Is there something
similar in BCB that will do this? Your help would be appreciated..
Thanks..
Jim
|
|
|
| Back to top |
|
 |
|