MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / RestoreDialogPosition

Method RestoreDialogPosition

Explorer++/Helper/DialogSettings.cpp:217–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217void DialogSettings::RestoreDialogPosition(HWND hDlg, bool bRestoreSize)
218{
219 if (m_bStateSaved)
220 {
221 if (bRestoreSize)
222 {
223 SetWindowPos(hDlg, NULL, m_ptDialog.x, m_ptDialog.y, m_iWidth, m_iHeight, SWP_NOZORDER);
224 }
225 else
226 {
227 SetWindowPos(hDlg, NULL, m_ptDialog.x, m_ptDialog.y, 0, 0, SWP_NOSIZE | SWP_NOZORDER);
228 }
229 }
230 else
231 {
232 CenterWindow(GetParent(hDlg), hDlg);
233 }
234}

Callers 15

OnInitDialogMethod · 0.80
OnInitDialogMethod · 0.80
OnInitDialogMethod · 0.80
OnInitDialogMethod · 0.80
OnInitDialogMethod · 0.80
OnInitDialogMethod · 0.80
OnInitDialogMethod · 0.80
OnInitDialogMethod · 0.80
OnInitDialogMethod · 0.80
OnInitDialogMethod · 0.80
OnInitDialogMethod · 0.80
OnInitDialogMethod · 0.80

Calls 1

CenterWindowFunction · 0.85

Tested by

no test coverage detected