Click here to Skip to main content
15,891,657 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DOS from mfc -- anyone help me please i need it now Pin
Stephen Hewitt5-Mar-07 19:55
Stephen Hewitt5-Mar-07 19:55 
GeneralRe: DOS from mfc -- anyone help me please i need it now Pin
Stephen Hewitt5-Mar-07 20:09
Stephen Hewitt5-Mar-07 20:09 
Questionnetsh vc++ Pin
prathuraj5-Mar-07 3:48
prathuraj5-Mar-07 3:48 
AnswerRe: netsh vc++ Pin
prasad_som5-Mar-07 4:23
prasad_som5-Mar-07 4:23 
GeneralRe: netsh vc++ [modified] -- help me very urgent Pin
prathuraj5-Mar-07 4:36
prathuraj5-Mar-07 4:36 
AnswerRe: netsh vc++ Pin
Michael Dunn5-Mar-07 12:19
sitebuilderMichael Dunn5-Mar-07 12:19 
QuestionBluetooth stack Pin
TVS Deepak5-Mar-07 3:47
TVS Deepak5-Mar-07 3:47 
QuestionCPropertySheet with vertical pages Pin
demask5-Mar-07 3:12
demask5-Mar-07 3:12 
Hello,

How can I properly create and use a CPropertySheet object with vertically arranged pages?

Here I've uploaded a demo project with source code included. It's just a simple SDI application which has main view class CVerticalPropSheetView (derived from CView) containing property sheet CPropSheetDemo (derived from CPropertySheet) with 3 property pages:

http://forum.codenet.ru/attachment....=1&d=1173007311
http://www.rsdn.ru:80/File/35531/VerticalPropSheet.rar

I tried to follow the advice from one of topics at CodeGuru forum (http://www.codeguru.com/forum/archi...p/t-331500.html) however, I've discovered the following issues related to resizing of the property sheet's window in CVerticalPropSheetView::OnSize():

1) When changing size of CPropSheetDemo window so that its width is less than its height, the tabs of the bottom property pages are not properly drawn. It looks like only rectangle part of property sheet (width x width) is being drawn properly.

2) When changing height of CPropertySheet window so that it can't display all tabs, the spin control is displayed. However, it doesn't work (I can't choose tab using spin control).

Does anyone know how to resolve these issues? All above appears only when property pages are arranged vertically - e.g. until I comment the following lines of code in CPropSheetDemo::OnInitDialog():


// create the new font for property pages' titles
CreateNewFont(&m_Font,14,_T("Microsoft Sans Serif"));

// make our property sheet vertical-oriented
CWnd* pctrlTab=GetDlgItem(AFX_IDC_TAB_CONTROL);
if (pctrlTab!=NULL) {
pctrlTab->ModifyStyle(TCS_FOCUSONBUTTONDOWN,TCS_VERTICAL,0);
pctrlTab->SetFont(&m_Font);
}


Many thanks in advance!



dp
QuestionCopy constructor Example Pin
sawerr5-Mar-07 2:51
sawerr5-Mar-07 2:51 
AnswerRe: Copy constructor Example Pin
Cedric Moonen5-Mar-07 3:07
Cedric Moonen5-Mar-07 3:07 
GeneralRe: Copy constructor Example Pin
sawerr5-Mar-07 3:16
sawerr5-Mar-07 3:16 
AnswerRe: Copy constructor Example Pin
bpenz5-Mar-07 3:17
bpenz5-Mar-07 3:17 
Questionmaking exe for an application Pin
prithaa5-Mar-07 2:33
prithaa5-Mar-07 2:33 
AnswerRe: making exe for an application Pin
Rajesh R Subramanian5-Mar-07 2:39
professionalRajesh R Subramanian5-Mar-07 2:39 
AnswerRe: making exe for an application Pin
Hamid_RT5-Mar-07 5:41
Hamid_RT5-Mar-07 5:41 
AnswerRe: making exe for an application Pin
Mark Salsbery5-Mar-07 6:36
Mark Salsbery5-Mar-07 6:36 
QuestionSOS Dialog is limit Pin
Member 19429425-Mar-07 2:08
Member 19429425-Mar-07 2:08 
AnswerRe: SOS Dialog is limit (I'm not sure if this will help) Pin
Joan M5-Mar-07 5:19
professionalJoan M5-Mar-07 5:19 
QuestionBitmap Class Pin
priyank_ldce5-Mar-07 1:40
priyank_ldce5-Mar-07 1:40 
AnswerRe: Bitmap Class Pin
Hamid_RT5-Mar-07 5:42
Hamid_RT5-Mar-07 5:42 
AnswerRe: Bitmap Class Pin
PJ Arends5-Mar-07 6:21
professionalPJ Arends5-Mar-07 6:21 
QuestionRe: Bitmap Class Pin
Mark Salsbery5-Mar-07 6:37
Mark Salsbery5-Mar-07 6:37 
QuestionHow to convert DRM protected audio files to unprotected audio files Pin
Balakrish5-Mar-07 1:30
Balakrish5-Mar-07 1:30 
AnswerRe: How to convert DRM protected audio files to unprotected audio files Pin
baerten5-Mar-07 1:43
baerten5-Mar-07 1:43 
GeneralRe: How to convert DRM protected audio files to unprotected audio files Pin
Balakrish5-Mar-07 1:58
Balakrish5-Mar-07 1:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.