| View previous topic :: View next topic |
| Author |
Message |
Danila Vershinin Guest
|
Posted: Thu May 05, 2005 3:17 pm Post subject: FindWindow question |
|
|
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
|
Posted: Thu May 05, 2005 4:25 pm Post subject: Re: FindWindow question |
|
|
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
|
Posted: Thu May 05, 2005 5:10 pm Post subject: Re: FindWindow question |
|
|
"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 |
|
 |
|