|
-
June 22nd, 1999, 05:03 AM
#1
getting a HWND for a window
what is the best way to get a HWND for a window when inside another window.
i have to get a HWND instead of a CWnd, because im using a callback function
(TimerProc) which reguires a HWND.
or
a way to get a CWnd and them get a HWND from that
thanks
Paul
-
June 22nd, 1999, 05:19 AM
#2
Re: getting a HWND for a window
-
June 22nd, 1999, 05:36 AM
#3
Re: getting a HWND for a window
If you mean you want to get the HWND of a chirldren window for the parent window.
you can use FindWindowEx.
Hope i didn't get you wrong..
Hello World!!!
-
June 22nd, 1999, 05:42 AM
#4
Re: getting a HWND for a window
i want to get the HWND of a parent from a child
-
June 22nd, 1999, 05:47 AM
#5
Re: getting a HWND for a window
From Visual C++ help
"The GetParent function retrieves the handle of the specified child window’s parent window."
HWND GetParent(
HWND hWnd // handle of child window
);
This is want you want????
Hello World!!!
-
June 23rd, 1999, 12:12 AM
#6
Re: getting a HWND for a window
You can first use GetParent()Member function inorder to get a CWnd object of
the parent.Then using that ...you can find HWND by using GetSafeHwnd()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|