How to get hwnd of the window. Thanks for advance.
It's can be obtained if you call CreateWindow. What if i dont call this function. What can i do?
with due respect. sulacco
If I understand correctly, you want to get the handle to a window that is already created, rather than creating a new window with CreateWindow.
If the window is a top-level window, you can find it using EnumWindows. If you have the handle for a child of the window, you can call GetParent to get it.
You have no window - why do you need hWnd? Most API calls have parameter hWnd, but it could be NULL, I think. What API calls do you use namelly?
Use NULL or hWnd of the desktop - HWND_DESKTOP. Or may be create dummy invisible window using CreateWindow?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.