MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / OnChildDialogInit

Function OnChildDialogInit

src/windows/OptionsDialog.cpp:288–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void 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
308INT_PTR OptionsHandleCommand(HWND hwndParent, HWND hWnd, int pageNum, UINT uMsg, WPARAM wParam, LPARAM lParam)
309{

Callers 1

OptionsChildDialogProcFunction · 0.85

Calls 2

OptionsInitPageFunction · 0.85

Tested by

no test coverage detected