Add another dialog resource to your project and a handler for the button of your first dialog. In your handler call the second dialog. What is the problem exactly?
[edit]
In your dialog handler:
BOOL OnCommand(HWND hDlg, int nCmdId, HWND hWndCtl, UINT codeNotify )
{
switch (nCmdId)
{
case ID_xxx: DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG2), hDlg, (DLGPROC)Dlg2Handler);
break;
default:
return FALSE;
}
return TRUE; }
LRESULT CALLBACK DlgProc(HWND hDlg, UINT uMessage, WPARAM wParam, LPARAM lParam )
{
switch (uMessage)
{
case WM_INITDIALOG:
return OnInitDialog(hDlg, (HWND)wParam, lParam);
case WM_COMMAND:
return OnCommand(hDlg, LOWORD(wParam), (HWND)lParam, HIWORD(wParam));
case WM_SYSCOMMAND:
return OnSysCommand(hDlg, wParam, LOWORD(lParam), HIWORD(lParam));
}
return FALSE;
}
[/edit]