Solved

I need have property sheet without buttons

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

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…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

717 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