|
-
March 21st, 2005, 01:11 PM
#1
Handle to an application
CreateWindow function requires an application handle in it's hWndParent paramter. How can i opbtain this handle using some API call?
-
March 21st, 2005, 01:37 PM
#2
Re: Handle to an application
What kind of application?
Take a look at AfxGetInstanceHandle().
-
March 21st, 2005, 01:48 PM
#3
Re: Handle to an application
It's not an MFC app, it's a borland app.
-
March 21st, 2005, 06:17 PM
#4
Re: Handle to an application
The hWndParent parameter should be the handle to the Parent window of the window. If the window has no parent you can enter HWND_DESKTOP.
-
March 21st, 2005, 06:22 PM
#5
Re: Handle to an application
thanks, but I will still like to know if their is a way to get a handle to you application for whatever purpose.
-
March 22nd, 2005, 07:26 AM
#6
Re: Handle to an application
Do you mean the HINSTANCE of your program?
It is a parameter of you winmain function. Just save it to a global variable or somewhere else.
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
|