MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / DlgOK

Method DlgOK

source/Configuration/PageInput.cpp:176–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void CPageInput::DlgOK(HWND hWnd)
177{
178 // This GetConfigNew() has already been set:
179 // . m_joystickType[]
180
181 m_PropertySheetHelper.GetConfigNew().m_pdlXTrim = (short)SendDlgItemMessage(hWnd, IDC_SPIN_XTRIM, UDM_GETPOS, 0, 0);
182 m_PropertySheetHelper.GetConfigNew().m_pdlYTrim = (short)SendDlgItemMessage(hWnd, IDC_SPIN_YTRIM, UDM_GETPOS, 0, 0);
183
184 m_PropertySheetHelper.GetConfigNew().m_cursorControl = IsDlgButtonChecked(hWnd, IDC_CURSORCONTROL) ? 1 : 0;
185 m_PropertySheetHelper.GetConfigNew().m_autofire = IsDlgButtonChecked(hWnd, IDC_AUTOFIRE) ? 7 : 0; // bitmap of 3 bits
186 m_PropertySheetHelper.GetConfigNew().m_swapButtons0and1 = IsDlgButtonChecked(hWnd, IDC_SWAPBUTTONS0AND1) ? true : false;
187 m_PropertySheetHelper.GetConfigNew().m_centeringControl = IsDlgButtonChecked(hWnd, IDC_CENTERINGCONTROL) ? 1 : 0;
188
189 m_PropertySheetHelper.PostMsgAfterClose(hWnd, m_Page);
190}
191
192void CPageInput::ApplyConfigAfterClose()
193{

Callers

nothing calls this directly

Calls 1

PostMsgAfterCloseMethod · 0.80

Tested by

no test coverage detected