Solved

I need have property sheet without buttons

Posted on 2001-09-12
1
251 Views
Last Modified: 2013-11-20
Hi
I have the following problem. I use ClassWizard to create a class derived from CPropertySheet. But there are a standard buttons OK Cancel and Apply. But I do not need this buttons. I found the CTabCtrl class and I suppose that through this class it is possible resolve my problem. Have anybody sample code of using this class (or what is the order of steps to make)?
Thank you.
0
Comment
Question by:mozdik
1 Comment
 
LVL 32

Accepted Solution

by:
jhance earned 100 total points
ID: 6477033
You could always just DISABLE and HIDE the 3 buttons.  They are child controls of the property sheet and have IDs of, IDOK, IDCANCEL, and IDAPPLY.  Something like:

CButton *b = (CButton *)GetDlgItem(IDOK);
b->EnableWindows(FALSE);
b->ShowWindow(SW_HIDE);

b = (CButton *)GetDlgItem(IDCANCEL);
etc....
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error on moodle after upgrade 3 123
Line meaning 9 82
Unix Command -- Challenging  question 7 87
Problem to open Excel file 15 99
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

18 Experts available now in Live!

Get 1:1 Help Now