blagrang
April 14th, 2003, 10:51 AM
Hello
I need some help.
I have a main window which must create at some right-click event a small popup window :
hRclk = CreateDialog(hInstance,MAKEINTRESOURCE(IDD_RCLK_DIALOG2),hwnd,(DLGPROC) rclkDlgProc);
this works correctly.
Inside this window I want two create another small child window using CreateDialog :
BOOL CALLBACK rclkDlgProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam)
{
switch(message)
{
case WM_CREATE:
HWND OpenButton, ViewButton;
OpenButton = CreateDialog(hInstance,MAKEINTRESOURCE(IDD_OpenFile_DIALOG),hRclk,(DLGPROC) OpenFileDlgProc);
);
}
return FALSE;
}
Here is the problem : this window does not appear inside the parent window.
Would anyone knows why and explains me the reasons.
Thank you very much in advance.
Benoit
I need some help.
I have a main window which must create at some right-click event a small popup window :
hRclk = CreateDialog(hInstance,MAKEINTRESOURCE(IDD_RCLK_DIALOG2),hwnd,(DLGPROC) rclkDlgProc);
this works correctly.
Inside this window I want two create another small child window using CreateDialog :
BOOL CALLBACK rclkDlgProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam)
{
switch(message)
{
case WM_CREATE:
HWND OpenButton, ViewButton;
OpenButton = CreateDialog(hInstance,MAKEINTRESOURCE(IDD_OpenFile_DIALOG),hRclk,(DLGPROC) OpenFileDlgProc);
);
}
return FALSE;
}
Here is the problem : this window does not appear inside the parent window.
Would anyone knows why and explains me the reasons.
Thank you very much in advance.
Benoit