| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
VC++ help
|
Original Message
|
Name: TLOZ
Date: March 6, 2005 at 02:09:25 Pacific
Subject: VC++ helpOS: Windows XP Pro SP2CPU/Ram: P4 2.40 GHZ 2.39 GHZ 256 |
Comment: hi everyone, i'm new to vc++ and i'm having trouble getting use to the IDE. this may sound overly "newbie like" but here goes anyway. how can i link a button to another ona form to make another sub window appear? thanx TLOZ
Report Offensive Message For Removal
|
|
Response Number 1
|
Name: secrets
Date: March 7, 2005 at 05:04:41 Pacific
|
Reply: (edit)by making its that child forms object.. as childclass c; c.showmodal check it i forgot its DoshowModal. i think. and you have to code this on the button click event.
Report Offensive Follow Up For Removal
|
|
Response Number 2
|
Name: sen (by santanusen_82)
Date: March 7, 2005 at 21:14:26 Pacific
|
Reply: (edit)Hi TLOZ, It's been long since I last used VC++. Still I'm trying my best to recall things. STEP 1: Design the sub window first and relate it to a class-name say CSubDialog through class wizard. STEP 2: Add a variable of class CSubDialog to your main dialog class. Something like CSubDialog sdSubDlg. STEP 3: Edit the function to be invoked (say OnOK()) on clicking the button through which you wanna invoke the sub-window. Add the fllowing code sdSubDlg.DoModal(); Best of luck. Santanu Sen National Institute of Technology Durgapur India
Report Offensive Follow Up For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Programming Forum Home