Original Post
🔒 Locked
Windows ALT-TAB
Advertisement
The solution regarding the screen saver doesn''t work as mentioned:
//: from help file ..
UINT nPreviousState;
// Disables task switching
SystemParametersInfo (SPI_SETSCREENSAVERRUNNING, TRUE, &nPreviousState, 0);
// Enables task switching
SystemParametersInfo (SPI_SETSCREENSAVERRUNNING, FALSE, &nPreviousState, 0);
..at least on my NT 4.0 machine.
However, there is an alternative solution that seems to work just fine:
//: sometime during window creation
RegisterHotKey(hwnd, 0x01, MOD_ALT, VK_TAB);
//: before app exits
UnregisterHotKey(hwnd, 0x01);
-mordell
Well, I am sure there are ways to disable ALT-TABBING, but to tell you the truth, do you really want to? The whole purpose of windows is to allow multiple programs to run simultaneously. What if users need to ALT-TAB out of your app every so often (I know I have done it in the past). One other thing, is that if you ever plan to release a commercial app, wether it be a game or not, you must adhere to certain standards (set by MS and others), or else your app will be marked as incimpatable. You know that ''Designed for Windows x.x'' logo. You won''t get that unless you follow the standards.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement