[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How to put Buttons on a modeless property sheet in MFC?

Posted on 2001-08-20
7
Medium Priority
?
495 Views
Last Modified: 2013-11-20
I am not able to put some buttons on a modeless property shett having 2 property pages. I am trying to add button at the bottom of the modeless property sheet . I have tryied doing GetWindowRect and MoveWindow in OnCreate of the propertysheet as suggested in the help.
0
Comment
Question by:uttamabhyankar
[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
7 Comments
 

Author Comment

by:uttamabhyankar
ID: 6406678
Please give me the answer ASAP.
thanks,
uttam
0
 
LVL 12

Expert Comment

by:migel
ID: 6407085
Hi!
did you look at www.codeguru.com property sheet section?
0
 
LVL 9

Expert Comment

by:ShaunWilde
ID: 6407183
Handle OnInitDialog and


BOOL CMySheet::OnInitDialog()
{
     CPropertySheet::OnInitDialog();
     
     
     
     RECT rc;
     GetWindowRect (&rc);
     
     rc.bottom += 40;
     
     MoveWindow (rc.left, rc.top, rc.right-rc.left, rc.bottom-rc.top);
     
     ScreenToClient (&rc);
     
     m_button.Create ("Press me",
          WS_CHILD | WS_VISIBLE | WS_TABSTOP,
          CRect (5, rc.bottom-35, 80, rc.bottom-10),
          this, 1000);
     
     return TRUE;  // return TRUE unless you set the focus to a control
     // EXCEPTION: OCX Property Pages should return FALSE
}

0
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 
LVL 9

Accepted Solution

by:
ShaunWilde earned 400 total points
ID: 6407184
you may need to move the message filter for your property sheet class to dialog
0
 

Expert Comment

by:thebigone
ID: 6409218
You can also embed the propsheet in a frame (I asked for that 2 weeks ago ...)

Refer to :


http://support.microsoft.com/support/kb/articles/Q234/5/45.ASP
0
 
LVL 1

Expert Comment

by:Tim_Musschoot
ID: 6409503
There is an example of adding buttons to a modeless Dialog at the microsoft MSDN (look online(!) for CWaitDialog).  The method is equal for a property sheet.

Tim Musschoot
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 9521280
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: ShaunWilde

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Roshan Davis
EE Cleanup Volunteer
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

656 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