| 286 | } |
| 287 | |
| 288 | void WINAPI OnChildDialogInit(HWND hwndDlg) |
| 289 | { |
| 290 | HWND hwndParent = GetParent(hwndDlg); |
| 291 | DialogHeader* pHdr = (DialogHeader*)GetWindowLongPtr(hwndParent, GWLP_USERDATA); |
| 292 | |
| 293 | SetWindowPos(hwndDlg, NULL, pHdr->rcDisplay.left, |
| 294 | pHdr->rcDisplay.top,//-2, |
| 295 | (pHdr->rcDisplay.right - pHdr->rcDisplay.left), |
| 296 | (pHdr->rcDisplay.bottom - pHdr->rcDisplay.top), |
| 297 | SWP_SHOWWINDOW); |
| 298 | |
| 299 | #ifdef NEW_WINDOWS |
| 300 | XEnableThemeDialogTexture(hwndDlg, ETDT_ENABLETAB); |
| 301 | #endif |
| 302 | |
| 303 | int pageNum = pHdr->pageNum; |
| 304 | |
| 305 | OptionsInitPage(hwndDlg, pageNum); |
| 306 | } |
| 307 | |
| 308 | INT_PTR OptionsHandleCommand(HWND hwndParent, HWND hWnd, int pageNum, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| 309 | { |
no test coverage detected