Back to Blog
Dosbox alttab out return fullscreen6/9/2023 ![]() Add any other context or screenshots about the feature request here. I also play some text adventures and text-only programs that benefit from full-screen. Press SAVE and then EXIT to return to the main screen. Simply press an unused key to bind it to this. Then press ADD to bind backslash to another key. Press the DELETE button that will show up on your screen. I'd like to be rid of it once and for all, but I prefer it's maximized full-screen for a handful of games. Workaround using DosBox Keymapper Press CTRL-F1 to enter the keymapper and select the backslash with your mouse. Keep fullscreen as an option and add filled screen or something as an alternative? Describe alternatives you've considered If you set it to (fullscreen) and (aspect = false) you get a filled screen type of full screen. Whatever DOSBox-X does to make the whole screen filled with the emulation view, having no black bars at all. No bars at all is best for quite a few games. ![]() But, the only reason I still keep DOSBox-X around is for certain games that I like to play with the maximized full-screen. No response Is your feature request related to a problem? Please describe. No response What Operating System are you using? I have checked releases and am using the latest release.Of course, you can also just use EnumChildWindows to get all "ALT+TAB windows", as long as the callback function has all the necessary filters to filter the different windows.Are you using the latest Dosbox-Staging Version? Do what you want with the window handle Get the value of the first cell of the selected row Private void dataGridView1_Click(object sender, EventArgs e) GetWindowText(hWnd, windowText, windowText.Capacity) ĭ(new string ) StringBuilder windowText = new StringBuilder(1024) Private void AddWindowToGrid(IntPtr hWnd) The window must not have the extended style WS_EX_NOACTIVATE The window must have the extended style WS_EX_TOPMOST Private bool IsFullScreenUWPWindows(IntPtr hWnd) Uint style = GetWindowLong(hWnd, GWL_EXSTYLE) The window must not have the extended style WS_EX_TOOLWINDOW The window must not be cloaked by the shellĭwmGetWindowAttribute(hWnd, DWMWA_CLOAKED, out uint cloaked, sizeof(uint)) If (GetAncestor(hWnd, GA_ROOTOWNER) != hWnd) IntPtr rootOwner = GetAncestor(hWnd, GA_ROOTOWNER) If (className.ToString() != "ApplicationFrameInputSinkWindow") GetClassName(hWnd, className, className.Capacity) StringBuilder className = new StringBuilder(1024) Check only the windows whose class name is ApplicationFrameInputSinkWindow ![]() Private bool GetFullScreenUWPWindows(IntPtr hWnd, IntPtr lparam) Private bool GetAltTabWindows(IntPtr hWnd, IntPtr lparam) Private void Form1_Load(object sender, EventArgs e)ĭataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect ĭataGridView1.Click += dataGridView1_Click ĮnumWindows(GetAltTabWindows, IntPtr.Zero) ĮnumChildWindows(GetDesktopWindow(), GetFullScreenUWPWindows, IntPtr.Zero) const int GWL_EXSTYLE = -20 Ĭonst uint DWM_CLOAKED_SHELL = 0x00000002 Ĭonst uint WS_EX_TOOLWINDOW = 0x00000080 Ĭonst uint WS_EX_NOACTIVATE = 0x08000000 These are listed in a Form with a two-column DataGridView and the window handle corresponding to the row the user clicks on is retrieved. ![]() This sample shows how to use both EnumWindows and EnumChildWindows to enumerate all "ALT+TAB windows", even full-screen UWP windows.
0 Comments
Read More
Leave a Reply. |