venAdder
March 21st, 2005, 12:11 PM
CreateWindow function requires an application handle in it's hWndParent paramter. How can i opbtain this handle using some API call?
|
Click to See Complete Forum and Search --> : Handle to an application venAdder March 21st, 2005, 12:11 PM CreateWindow function requires an application handle in it's hWndParent paramter. How can i opbtain this handle using some API call? cilu March 21st, 2005, 12:37 PM What kind of application? Take a look at AfxGetInstanceHandle(). venAdder March 21st, 2005, 12:48 PM It's not an MFC app, it's a borland app. GaboonViper March 21st, 2005, 05:17 PM 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. venAdder March 21st, 2005, 05:22 PM thanks, but I will still like to know if their is a way to get a handle to you application for whatever purpose. Marc G March 22nd, 2005, 06:26 AM 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. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |