Solved

Adding button to a modeless propertysheet

Posted on 1998-03-17
2
313 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
naveenkohli earned 40 total points
ID: 1183594
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
ID: 1183595
Adjusted points to 40
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

623 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