| | |
VC++ 6.0 : Dialog cannot show..
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2007
Posts: 16
Reputation:
Solved Threads: 0
Hi all,
I have a question here..
I am using microsoft visual C++ 6.0 with SP4 and SP5..
I call a DoModal(), but there was nothing dialog show out..
below are my codes..
CDlgA oDlgA;
oDlgA.DoModal();
but no dialog show out..
then I trace the debug code, found out that under CWnd::CreateDlgIndirect(...) function..
BOOL CWnd::CreateDlgIndirect(LPCDLGTEMPLATE lpDialogTemplate,
CWnd* pParentWnd, HINSTANCE hInst)
{
...
until here, hWnd = NULL and m_nFlags = 16
hWnd = :: CreateDialogIndirect(hInst, lpDialogTemplate,
pParentWnd->GetSafeHwnd(), AfxDlgProc);
after this line, hWnd != NULL and m_nFlags = 256
...
// handle EndDialog calls during OnInitDialog
if (hWnd != NULL && !(m_nFlags & WF_CONTINUEMODAL))
{
:
estroyWindow(hWnd);
hWnd = NULL;
}
...
}
Anything wrong cause that dialog cannot show..??
Actually I show fews dialog..
when 1st dialog's button press, 2nd dialog will show..
but now only 1st dialog is show, 2nd dialog fail to show out after call DoModal()..
Please advise..
Thank you..
shizu
I have a question here..
I am using microsoft visual C++ 6.0 with SP4 and SP5..
I call a DoModal(), but there was nothing dialog show out..
below are my codes..
CDlgA oDlgA;
oDlgA.DoModal();
but no dialog show out..
then I trace the debug code, found out that under CWnd::CreateDlgIndirect(...) function..
BOOL CWnd::CreateDlgIndirect(LPCDLGTEMPLATE lpDialogTemplate,
CWnd* pParentWnd, HINSTANCE hInst)
{
...
until here, hWnd = NULL and m_nFlags = 16
hWnd = :: CreateDialogIndirect(hInst, lpDialogTemplate,
pParentWnd->GetSafeHwnd(), AfxDlgProc);
after this line, hWnd != NULL and m_nFlags = 256
...
// handle EndDialog calls during OnInitDialog
if (hWnd != NULL && !(m_nFlags & WF_CONTINUEMODAL))
{
:
estroyWindow(hWnd);hWnd = NULL;
}
...
}
Anything wrong cause that dialog cannot show..??
Actually I show fews dialog..
when 1st dialog's button press, 2nd dialog will show..
but now only 1st dialog is show, 2nd dialog fail to show out after call DoModal()..
Please advise..
Thank you..
shizu
Last edited by shizu; Sep 3rd, 2009 at 6:29 am. Reason: typing error
•
•
Join Date: Sep 2009
Posts: 2
Reputation:
Solved Threads: 1
HI,
I have two option which one choose me. can you suggest me which one i choose. like DBMS, Web Applications
Kindly suggest me.
I have two option which one choose me. can you suggest me which one i choose. like DBMS, Web Applications
Kindly suggest me.
•
•
Join Date: Aug 2007
Posts: 16
Reputation:
Solved Threads: 0
Hi..
Thanks for reply..
I don't use any Rich Edit..and i put breakpoint under OnInitDialog() before, it not even go in this breakpoint..
means before OnInitDialog() function, It already return out, so that my dialog cannot show out.
And for my dialog, I didn't make any control on it. No static box, edit box control. Nothing in the dialog.
shizu..
Thanks for reply..
I don't use any Rich Edit..and i put breakpoint under OnInitDialog() before, it not even go in this breakpoint..
means before OnInitDialog() function, It already return out, so that my dialog cannot show out.
And for my dialog, I didn't make any control on it. No static box, edit box control. Nothing in the dialog.
shizu..
![]() |
Similar Threads
- Loading data from datagrivview into dialog (C#)
- Dialog Window doesn't show, Designer won't open (Python)
- Common Dialog Control (Visual Basic 4 / 5 / 6)
- How to pass a value from dialog to mainform? (C#)
- Common Dialog (Visual Basic 4 / 5 / 6)
- My Computer C: problem (Windows NT / 2000 / XP)
- Help need with Socket, Thread, and BufferedReader (Java)
- How can I have my program wait for input before continuing? (Java)
- Properties (Java)
Other Threads in the C++ Forum
- Previous Thread: Repeated Error in Code with Header File
- Next Thread: Keyboard Hooking SetWindowsHookEx
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file forms fstream function functions game generator getline givemetehcodez graph homeworkhelper iamthwee ifstream image input int java lazy lib loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





