Here a trick that should work :)
1 - create a fullscreen windows (GAPI is doing it perfectly;
2 - create a bitmap with an [X] And draw it in the
top of the screen (emulate the bar)
3 - When this zone is hit, just exit your program.
It's not really what you want, but it should work ^_^