Board index » cppbuilder » DirectX Exclusive Mode and Alt-Tab Switching

DirectX Exclusive Mode and Alt-Tab Switching

My app ignores Alt-Tab when I set exclusive mode. The DirectX docs say
Alt-Tab should still work. I imagine it has something to do with the
Application window setup by C++ Builder.

Anybody know what's up?

Cheers,
Scott J. Miles
Primitive Itch
http://www.primitiveitch.com

 

Re:DirectX Exclusive Mode and Alt-Tab Switching


Scott,

You need to tell the DirectDraw interface to allow the alt-tab switching by
setting the DDSCL_ALLOWREBOOT flag using SetCooperativeLevel().

EX:
  lpDD->SetCooperativeLevel (Handle, DDSCL_FULLSCREEN | DDSCL_EXCLUSIVE |
DDSCL_ALLOWREBOOT);

Hope this helps.

Ralph

___________________________________________
Ralph Allan Rice
Computer Science
University of Akron
rr...@uakron.edu
___________________________________________
Check out Ralph's C++ Builder DirectX Site
http://web.raex.com/~rrice

Quote
Scott J. Miles wrote in message <6kr5o2$ov...@pollux.dnai.com>...
>My app ignores Alt-Tab when I set exclusive mode. The DirectX docs say
>Alt-Tab should still work. I imagine it has something to do with the
>Application window setup by C++ Builder.

>Anybody know what's up?

>Cheers,
>Scott J. Miles
>Primitive Itch
>http://www.primitiveitch.com

Other Threads