| 215 | } |
| 216 | |
| 217 | void 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 | } |
no test coverage detected