code_junkie

Switching between visible applications in Windows CE 5, Lang: C++

Nov 12th, 2011
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. HWND hWnd = ::FindWindow( _T("Notepad"), NULL);
  2. ::ShowWindow(hWnd, SW_HIDE);
  3.  
  4. SetWindowPos(windowToHide, 0, 0, 0, 0, 0, SWP_HIDEWINDOW);
  5. SetWindowPos(windowToShowInFullScreen, HWND_TOP, 0, 0, 240, 320, SWP_SHOWWINDOW);
  6. SetForegroundWindow(windowToShow);
Add Comment
Please, Sign In to add comment