Switching between applications
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
Hi folks.... How do we switch the focus to another application using its filename in VC++??? heeellllpppp:confused: Pooja
-
Hi folks.... How do we switch the focus to another application using its filename in VC++??? heeellllpppp:confused: Pooja
-
HWND hwnd = ::FindWindow(NULL,"Program name"); ::PostMessage(hwnd,WM_SETFOCUS,0,0); This should do it. ~Michael
Hey thanx...:cool: this code works better: CWnd *pWnd = FindWindow(NULL,”My Application”); pWnd->SetForegroundWindow();