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 

FindWindow question

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
Danila Vershinin
Guest





PostPosted: Thu May 05, 2005 3:17 pm    Post subject: FindWindow question Reply with quote



knowing window's class or caption it is easy to get its handle.
and the best use of FindWindow function is when you know the class name of a
window. not caption...
I use WinSight32 to know class names but .....
"#32770:Dialog" in the class name field for a window.... what do I do with
it? and is it possible to FindWindow ( ClassName, NULL) for such windows?



Back to top
Ed Mulroy [TeamB]
Guest





PostPosted: Thu May 05, 2005 4:25 pm    Post subject: Re: FindWindow question Reply with quote



Try including windows.h and using a class name of :
WC_DIALOG

or you could use:
MAKEINTRESOURCE(32770)

.. Ed

Quote:
Danila Vershinin wrote in message
news:427a3b9e (AT) newsgroups (DOT) borland.com...

knowing window's class or caption it is easy to get its handle.
and the best use of FindWindow function is when you know the class
name of a window. not caption...
I use WinSight32 to know class names but .....
"#32770:Dialog" in the class name field for a window.... what do I
do with it? and is it possible to FindWindow ( ClassName, NULL) for
such windows?



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu May 05, 2005 5:10 pm    Post subject: Re: FindWindow question Reply with quote




"Danila Vershinin" <danprep (AT) yahoo (DOT) com> wrote


Quote:
is it possible to FindWindow ( ClassName, NULL) for such windows?

Yes. However, do note that 32770 is a generic dialog, and many applications
use that same dialog class. So depending on what you are trying to
accomplish to begin with, you will probably have to perform extra tasks to
make sure that the dialog window you find is really the one that you
actually wanted to find.


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) 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.