Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Q] How can I get HANDLE of

0 views
Skip to first unread message

Oh jae-hoon

unread,
Aug 7, 1993, 12:16:07 AM8/7/93
to
I am a novice windows programmer.
I need you help.

I want to get a HANLDE of ANY windows regardless of focused window.
for example , TOOLBOOK.

I found FindWindow function needs specific class name.
but Not I need.

thanx in advance for your kind help.

Oh jae-hoon

unread,
Aug 7, 1993, 12:21:02 AM8/7/93
to
I am a novice windows programmer.
I want to get the HANLDE of any windows
regardless of the focues windows.
For example, File Manager's HANDLE.

But I had found FindWindow() funtions
needs specific Class.

How can I know without knowing Class?
or is there other tool to find Class?

thanx in advance.

email-address : pa...@141.223.91.1

Brett Smillie

unread,
Aug 7, 1993, 1:19:28 PM8/7/93
to
jae...@honeydew.postech.ac.kr (Oh jae-hoon) writes:

You can use GetWindow() to traverse the window list
(e.g. GetWindow(...,GW_HWNDFIRST) to get the first
window, then GetWindow(...,GW_HWNDNEXT) until it
returns NULL), or EnumWindows(), which traverses
the list for you, and calls a callback function
you define for each window. Check out the SDK
docs on these functions: they're pretty straight-
forward. Incidently, if you _want_ to use
FindWindow(), you can find out the class name
for any window by using SPY.
--
Brett Smillie
smil...@world.std.com

"forsan et haec olim meminisse iuabit" -- Vergil, _Aeneid_

0 new messages