-
November 3rd, 1999, 11:54 AM
#1
How to obtain HINSTANCE using HWND?
is there a way to obtain HINSTANCE handle using only windows HWND? I am at a loss here...
--maciej
-
November 3rd, 1999, 12:02 PM
#2
Re: How to obtain HINSTANCE using HWND?
GetWindowLong(hWnd, GWL_HINSTANCE)
should return you the app instance associated with the window.
-
November 9th, 1999, 10:12 PM
#3
Re: How to obtain HINSTANCE using HWND?
Is it MFC app?
if it is simple: AfxGetInstanceHandle will do.
Powodzenia
-
November 10th, 1999, 03:37 PM
#4
Re: How to obtain HINSTANCE using HWND?
Dzieki za odpowiedz, but AfxGetInstanceHandle() only works with the current window and I only have other windows hwnd.
GetWindowLong() does it. Thanks Rajeev!
Na razie!
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
|