BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to Obtain window handle..

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language)
View previous topic :: View next topic  
Author Message
Jim Flanagan
Guest





PostPosted: Sun Jul 20, 2003 10:41 pm    Post subject: How to Obtain window handle.. Reply with 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
Maynard Philbrook
Guest





PostPosted: Mon Jul 21, 2003 5:15 pm    Post subject: Re: How to Obtain window handle.. Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.