Problem in creating a property sheet and property pages
-
Dear all, Currently i am working in creating a property sheet inside a dialog and i am also working in creating a property sheet inside a property page. There is no problem in creating such a sheet and property pages inside a dialog. But the problem comes in positioning the property sheet tab controls in right side of the dailog and in vertical positions and to add some images in tab control. I have used this code to set icons in the tab controls.But it is not working. CImageList m_imageTab; m_imageTab.Create(16,16,0,3,3); m_imageTab.Add(AfxGetApp()->LoadIcon(IDI_ICON1)); m_imageTab.Add(AfxGetApp()->LoadIcon(IDI_ICON2)); m_imageTab.Add(AfxGetApp()->LoadIcon(IDI_ICON3)); CTabCtrl *pTab = internal_sheet.GetTabControl(); pTab->SetImageList(&m_imageTab); TC_ITEM tcItem; tcItem.mask = TCIF_IMAGE; for(int i = 0; i < 3; i++ ) { tcItem.iImage = i; pTab->SetItem( i, &tcItem ); } // I used this member function to set the tab control vertical and i aslo tried the differnt combination of styles.but in vain internal_sheet.GetTabControl()->ModifyStyle(0,TCS_VERTICAL); Please some body help me to short out this problem. :->
Manjunath S GESL Bangalore