HWND hWndDesktop = GetDesktopWindow();
SetForegroundWindow((HWND)(((ULONG) hWndDesktop) | 0x01) );
The first line of code retrieves the "desktop" window handle (the Today screen) and in the second you set it to the foreground. Easy.
Thoughts on native mobile development on Microsoft platforms
HWND hWndDesktop = GetDesktopWindow();
SetForegroundWindow((HWND)(((ULONG) hWndDesktop) | 0x01) );
No comments:
Post a Comment