Click here to Skip to main content
15,914,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Smooth Text? Pin
Mark Salsbery5-Mar-07 11:27
Mark Salsbery5-Mar-07 11:27 
AnswerRe: Smooth Text? Pin
Michael Dunn5-Mar-07 12:16
sitebuilderMichael Dunn5-Mar-07 12:16 
Questionbatch file from mfc Pin
prathuraj5-Mar-07 5:24
prathuraj5-Mar-07 5:24 
AnswerRe: batch file from mfc Pin
Hamid_RT5-Mar-07 5:40
Hamid_RT5-Mar-07 5:40 
AnswerRe: batch file from mfc Pin
Newbie005-Mar-07 7:05
Newbie005-Mar-07 7:05 
AnswerRe: batch file from mfc Pin
Stephen Hewitt6-Mar-07 0:22
Stephen Hewitt6-Mar-07 0:22 
QuestionDOS from mfc Pin
prathuraj5-Mar-07 5:12
prathuraj5-Mar-07 5:12 
AnswerRe: DOS from mfc Pin
Joan M5-Mar-07 5:16
professionalJoan M5-Mar-07 5:16 
AnswerRe: DOS from mfc Pin
James R. Twine5-Mar-07 5:22
James R. Twine5-Mar-07 5:22 
AnswerRe: DOS from mfc Pin
Stephen Hewitt5-Mar-07 11:39
Stephen Hewitt5-Mar-07 11:39 
GeneralRe: DOS from mfc -- help me Pin
prathuraj5-Mar-07 16:30
prathuraj5-Mar-07 16:30 
GeneralRe: DOS from mfc -- help me Pin
Stephen Hewitt5-Mar-07 16:35
Stephen Hewitt5-Mar-07 16:35 
GeneralRe: DOS from mfc -- help me Pin
prathuraj5-Mar-07 16:50
prathuraj5-Mar-07 16:50 
GeneralRe: DOS from mfc -- help me Pin
Stephen Hewitt5-Mar-07 16:55
Stephen Hewitt5-Mar-07 16:55 
GeneralRe: DOS from mfc -- anyone help me please i need it now Pin
prathuraj5-Mar-07 17:13
prathuraj5-Mar-07 17:13 
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 

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.