trodas
Posts: 27 +0
How do I specify the "tabed" button?
I encountered a very simple problem. With some hacking inside desk.cpl I stumbled upon this little requester, asking user to cancel or keep the resolution changes made to Windows:
The code for the popup window is extremly easy:
The problem. I did change easily, using the DEFPUSHBUTTON the default action as to YES (Ano) when I just hit enter, however the tab-selection "selected" remaing on the NO (Ne) choice and I, even looking as hard as I can, can't seems to be able to figure out how to move it to the YES (Ano) choice.
I even tried just change the lines order, placing the NO choice first, but it did not have any impact.
Anyone who can help, anyone who know?
I must admit I would rather completely remove the window in question, but I also did not know how...
I encountered a very simple problem. With some hacking inside desk.cpl I stumbled upon this little requester, asking user to cancel or keep the resolution changes made to Windows:
The code for the popup window is extremly easy:
158 DIALOGEX 20, 30, 220, 57
STYLE DS_FIXEDSYS | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Nastavení monitoru"
LANGUAGE LANG_CZECH, 0x1
FONT 8, "MS Shell Dlg"
{
CONTROL "&Ano", 6, BUTTON, BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 166, 39, 50, 14
CONTROL "&Ne", 7, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 112, 39, 50, 14
CONTROL "Přemrdal jsi rozlišení. Vidíš eště něco? Ano? Pak je to asi ok, že?", -1, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 33, 7, 181, 21
CONTROL "", 1002, STATIC, SS_ICON | WS_CHILD | WS_VISIBLE, 7, 7, 18, 20
CONTROL "", 1217, STATIC, SS_LEFT | WS_CHILD | WS_VISIBLE | WS_GROUP, 7, 34, 100, 20
}
The problem. I did change easily, using the DEFPUSHBUTTON the default action as to YES (Ano) when I just hit enter, however the tab-selection "selected" remaing on the NO (Ne) choice and I, even looking as hard as I can, can't seems to be able to figure out how to move it to the YES (Ano) choice.
I even tried just change the lines order, placing the NO choice first, but it did not have any impact.
Anyone who can help, anyone who know?
I must admit I would rather completely remove the window in question, but I also did not know how...