Solved

I need have property sheet without buttons

Posted on 2001-09-12
1
252 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to determine file rename from EventLog ? 2 49
sum13 challenge 24 107
Annoying "thing" blocks my view 4 100
Increment column based of a FK 8 23
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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…
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.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

777 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