Click here to Skip to main content
15,902,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiontree view control Pin
deeps_cute31-Mar-07 1:32
deeps_cute31-Mar-07 1:32 
AnswerRe: tree view control Pin
CPallini31-Mar-07 5:17
mveCPallini31-Mar-07 5:17 
GeneralRe: tree view control Pin
deeps_cute31-Mar-07 20:42
deeps_cute31-Mar-07 20:42 
GeneralRe: tree view control Pin
cp987631-Mar-07 21:02
cp987631-Mar-07 21:02 
Generalsorry Pin
deeps_cute31-Mar-07 21:47
deeps_cute31-Mar-07 21:47 
GeneralRe: tree view control Pin
ThatsAlok1-Apr-07 21:13
ThatsAlok1-Apr-07 21:13 
AnswerRe: tree view control Pin
ThatsAlok1-Apr-07 21:12
ThatsAlok1-Apr-07 21:12 
QuestionCPropertySheet with vertical pages Pin
demask31-Mar-07 0:42
demask31-Mar-07 0:42 
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

Questionregarding activex control Pin
tns_ranjith30-Mar-07 22:50
tns_ranjith30-Mar-07 22:50 
AnswerRe: regarding activex control Pin
ThatsAlok1-Apr-07 21:09
ThatsAlok1-Apr-07 21:09 
Questionregards avtivex control Pin
tns_ranjith30-Mar-07 21:32
tns_ranjith30-Mar-07 21:32 
AnswerRe: regards avtivex control Pin
ThatsAlok1-Apr-07 21:11
ThatsAlok1-Apr-07 21:11 
QuestionDyanmic tab Pin
deeps_cute30-Mar-07 18:18
deeps_cute30-Mar-07 18:18 
AnswerRe: Dyanmic tab Pin
Naveen30-Mar-07 18:45
Naveen30-Mar-07 18:45 
GeneralRe: Dyanmic tab Pin
deeps_cute30-Mar-07 22:46
deeps_cute30-Mar-07 22:46 
GeneralRe: Dyanmic tab Pin
Naveen30-Mar-07 22:50
Naveen30-Mar-07 22:50 
GeneralRe: Dyanmic tab Pin
prathuraj31-Mar-07 1:54
prathuraj31-Mar-07 1:54 
GeneralRe: Dyanmic tab Pin
Naveen1-Apr-07 17:09
Naveen1-Apr-07 17:09 
QuestionProblem with Pointers Pin
CoffeeAddict1930-Mar-07 13:35
CoffeeAddict1930-Mar-07 13:35 
AnswerRe: Problem with Pointers Pin
cp987630-Mar-07 13:49
cp987630-Mar-07 13:49 
GeneralRe: Problem with Pointers Pin
CoffeeAddict1931-Mar-07 19:17
CoffeeAddict1931-Mar-07 19:17 
GeneralRe: Problem with Pointers Pin
cp987631-Mar-07 20:42
cp987631-Mar-07 20:42 
QuestionDoes VS 2005 Standard Edition support services Pin
dburns30-Mar-07 10:36
dburns30-Mar-07 10:36 
AnswerRe: Does VS 2005 Standard Edition support services Pin
George L. Jackson30-Mar-07 11:26
George L. Jackson30-Mar-07 11:26 
GeneralRe: Does VS 2005 Standard Edition support services Pin
dburns30-Mar-07 11:55
dburns30-Mar-07 11:55 

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.