Dialog Problem
-
case WM_CREATE: phDlg = new HWND[3]; phDlg[0] = CreateDialog(((LPCREATESTRUCT)lParam)->hInstance, MAKEINTRESOURCE(IDD_MENU), hWnd, MenuProc); phDlg[1] = CreateDialog(((LPCREATESTRUCT)lParam)->hInstance, MAKEINTRESOURCE(IDD_INFORMATION), hWnd, 0); phDlg[2] = CreateDialog(((LPCREATESTRUCT)lParam)->hInstance, MAKEINTRESOURCE(IDD_KEYLOGGER), hWnd, 0); ShowWindow(phDlg[0], SW_SHOW); ShowWindow(phDlg[1], SW_SHOW); ShowWindow(phDlg[2], SW_SHOW); BringWindowToTop(phDlg[0]); BringWindowToTop(phDlg[2]); BringWindowToTop(phDlg[3]); SetWindowLongPtr(hWnd, GWLP_USERDATA, (LONG_PTR)phDlg); return (0); case WM_SIZE: phDlg = (HWND*)GetWindowLongPtr(hWnd, GWLP_USERDATA); SetWindowPos(phDlg[0], 0, ListPosX, ListPosY, PropertyPagesPosX,500, SWP_NOZORDER); SetWindowPos(phDlg[1], 0, PropertyPagesPosX, PropertyPagesPosY, 500,500, SWP_NOZORDER); SetWindowPos(phDlg[2], 0, 600, 600, 500,500, SWP_NOZORDER); return (0);Die 3 Dialoge werden korrekt angezeigt nur... ich kann nichts auf ihnen klicken als ob sie deaktiviert waeren. Hab aber geguckt und sie nicht deaktiviert. Woran kann das liegen ?
EDIT : Tut mir leid hat sich erledigt....