Hi!
Does anybody know how can I create dialogbox which can be moved. Im
using CreateDialog function. Also, System icon menu and "Close" button don't
respond to mouse actions. Style I defined in resource: WS_OVERLAPPED |
WS_SYSMENU | WS_CAPTION | WS_THICKFRAME
One more problem: how can I call (create and show) dialog box from
another dialog box? Now, when I do that, program (dialog box) receives
messages (at least mouse messages) but can't set focus to dialog box and
buttons don't respond to mouse clicks (like they're disabled but they look
like enabled).
I must not use MFC. At the end is part of my code for calling another
dialog box.
Thank you in advance!
int CALLBACK _export Dialog1Proc(HWND hwndDlg, UINT uMsg, WPARAM wParam,
LPARAM lParam)
{
switch (uMsg)
{
case WM_COMMAND:
switch (GET_WM_COMMAND_ID(wParam, lParam))
{
case IDC_PUSHBUTTONADD:
r1= DialogBox(hInst, MAKEINTRESOURCE(1004), hwndDlg,
(DLGPROC)DialogAddEditProc);
break;
case WM_CLOSE:
DestroyWindow(hwndDlg);
break;
default:
return(DefWindowProc(hwndDlg, uMsg, wParam, lParam));
}
return(0);
}