| 30 | } |
| 31 | |
| 32 | INT_PTR SettingsDialog::dlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) |
| 33 | { |
| 34 | switch(message) |
| 35 | { |
| 36 | case WM_INITDIALOG: |
| 37 | ::SetWindowLongPtr(hWnd, GWLP_USERDATA, lParam); |
| 38 | return reinterpret_cast<SettingsDialog*>(lParam)->run_dlgProc(hWnd, message, wParam, lParam); |
| 39 | |
| 40 | default: |
| 41 | { |
| 42 | SettingsDialog* dlg = reinterpret_cast<SettingsDialog*>(::GetWindowLongPtr(hWnd, GWLP_USERDATA)); |
| 43 | if (dlg) |
| 44 | return dlg->run_dlgProc(hWnd, message, wParam, lParam); |
| 45 | else |
| 46 | return FALSE; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | } |
| 51 | |
| 52 | |
| 53 |
nothing calls this directly
no test coverage detected