Fullscreen minimized game - context menu problem.
Blitz3D Forums/Blitz3D Programming/Fullscreen minimized game - context menu problem.
| ||
Hi! Please help me! When game runs in fullscreen mode, I hit ALT+TAB. Game minimized to taskbar, and when I right click on it for closing, there are no right click context menu, as on the other applications! My publisher want to add this menu. I think it's right, but i dont have any idea, how to create this? Maybe WinAPI or else... Sorry for english :) But I need help! |
| ||
In window context menu available... And I see it happens in all B3D applications... |
| ||
It's called System Menu. http://en.wikipedia.org/wiki/Common_menus_in_Microsoft_Windows It should be available for all windows programs by default, so it must have been consciously disabled for B3D. Maybe you can re-enable it using Windows API. |
| ||
Ok! Thanks - we will try! |
| ||
Solution: code: Const GWL_STYLE% = -16 Const WS_SYSMENU% = 524288 window = SystemProperty("AppHWND") SetWindowLong(window, GWL_STYLE, GetWindowLong(window, GWL_STYLE) Or WS_SYSMENU) user32.decls code: .lib "user32.dll" SetWindowLong%(window%, long%, value%):"SetWindowLongA" GetWindowLong%(window%, long%):"GetWindowLongA" |