modeless-dialog

Block ESC and Enter keys in modeless dialog box (Win32, non-MFC)

ε祈祈猫儿з 提交于 2021-02-10 14:34:11
问题 There're some articles written on this subject, but none of them worked in my case. I'm writing the following using Win32 (no MFC). The goal is to prevent ESC or ENTER keys from closing the modeless dialog box. Here's the dialog template: IDD_DIALOG_1 DIALOGEX 0, 0, 345, 179 STYLE DS_SETFONT | DS_FIXEDSYS | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME CAPTION "" FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN CONTROL "New Pt",IDC_CHECK_NEW_PT,"Button",BS_AUTOCHECKBOX | BS

Block ESC and Enter keys in modeless dialog box (Win32, non-MFC)

风格不统一 提交于 2021-02-10 14:32:44
问题 There're some articles written on this subject, but none of them worked in my case. I'm writing the following using Win32 (no MFC). The goal is to prevent ESC or ENTER keys from closing the modeless dialog box. Here's the dialog template: IDD_DIALOG_1 DIALOGEX 0, 0, 345, 179 STYLE DS_SETFONT | DS_FIXEDSYS | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME CAPTION "" FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN CONTROL "New Pt",IDC_CHECK_NEW_PT,"Button",BS_AUTOCHECKBOX | BS

Is there a built-in shortcut key for selecting the owner of the currently active form?

拟墨画扇 提交于 2019-12-08 05:06:42
问题 I have a main form with two child modeless forms, e.g. all of the forms can be active simultaneously: class MainForm : Form { Form child1; Form child2; public MainForm() { Text = "MainForm"; child1 = new Form { Text = "Child1" }; child2 = new Form { Text = "Child2" }; child1.Show(this); child2.Show(this); } } I would like to allow the user to Alt+Tab into all of them, but surprisingly, I found that if any of the child forms is active, the owner form cannot be selected from the Alt+Tab menu.

Is there a built-in shortcut key for selecting the owner of the currently active form?

萝らか妹 提交于 2019-12-06 16:25:12
I have a main form with two child modeless forms, e.g. all of the forms can be active simultaneously: class MainForm : Form { Form child1; Form child2; public MainForm() { Text = "MainForm"; child1 = new Form { Text = "Child1" }; child2 = new Form { Text = "Child2" }; child1.Show(this); child2.Show(this); } } I would like to allow the user to Alt+Tab into all of them, but surprisingly, I found that if any of the child forms is active, the owner form cannot be selected from the Alt+Tab menu. All three forms show up in the list, but apparently when you select the owner window and there is an