Window title and Complete applicaiton Path
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
If I have handle to the window (HWND), how can I get the window title and the application's path using the win32 API functions.
-
If I have handle to the window (HWND), how can I get the window title and the application's path using the win32 API functions.
-
If I have handle to the window (HWND), how can I get the window title and the application's path using the win32 API functions.
And for the window title, you can use this:
char Buffer[255]; CWnd* pNewWnd = YourWindow->FromHandle(YourHandle) pNewXnd->GetWindowText(Buffer,254);
YourWindow is a CWnd (doesn't matter wich one). FromHandle returns the CWnd* attached to the Handle 'YourHandle'!