Solved

Adding button to a modeless propertysheet

Posted on 1998-03-17
2
298 Views
Last Modified: 2010-05-18

After recieving help I now manage to open my modeless propertysheet (thank you), so my next question is how can I add buttons i.e CLOSE and CANCEL to the sheet that stays visible while changing propertypages?

Of course I can put two extra buttons in each propertypage with the name CLOSE and CANCEL, but I thought about using an extra modeless window added inside my CMiniFrameWindow.

Present idea:

1)Construct a CMiniFrameWnd from the CMainFrame.
2)In the CMiniFrameWnd I construct a Propertysheet ( new CSetUpSheet)

3)Create my modeless dialog with the two buttons CLOSE and CANCEL.
4) Append it

Around point (3) the problem starts, since I'm a novice in using and UNDERSTANDING MFC I change the pointers by random until it works (not always though...). If someone knows the philosophy behind how to use the constructor of the dialog and the Create (where to use which pointer...) and how to add the dialog in my case so it gets modeless I would be very happy.

Thank you in advance.
0
Comment
Question by:parmesan
2 Comments
 
LVL 23

Accepted Solution

by:
naveenkohli earned 40 total points
Comment Utility
What i would suggest is that u create ur property sheet inside a modeless dialog box. In the dialog box u can have your buttons. To hold your propert sheet make use of picture control. You can assign the ID of that picture control to your CPropertySheet. And then follow the normal procedure of adding the propety pages to this sheet. If you want, i can send you example code for this.
0
 

Author Comment

by:parmesan
Comment Utility
Adjusted points to 40
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now