General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 30th, 2003, 02:49 AM
patricksky patricksky is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 3 patricksky User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Program hang when creating a CDialog

I am using Visual C++ to create an application, once i want to create a popup dialog box after click the option in the popup menu. So i write the following code:

void CGroupchatDlg::OnPopupCreategroup()
{
CDialog createDialog(IDD_CREATEGROUP,&dialog);
createDialog.DoModal();
}

The IDD_CREATEGROUP is the dialog box that i created in the resource editor.And the variable dialog is represent the dialog box of main window, so i set the parent window of the createDialog is dialog. When the test the program, after clicking the popup menu that when to show this model dialog box, the program will hang, but the CDialog createDialog can show in the screen. And i cannot take a cursor to anyone of the control in the createDialog. Thx for help.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Program hang when creating a CDialog


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT