Originally posted by: standardc++
I want to creat property pages in class drived from CView!
who can help me?
I need help.
Thank you!
Originally posted by: Benu
Thanks,
I am getting some compile errors.
Originally posted by: fmoore
I am having problems forcing a tab change programmatically. The problem is when you perform the SetCurSel() function of CTabControl does not call the underlying OnSelChanging or OnSelChanged member functions like what happens when a button is clicked or an arrow pressed. If anyone could help me it would be much appreciated.
TIA,
fmoore
ReplyOriginally posted by: Dominic
My job requires me to modify an existing
program using dialog boxes into property pages.
The problem is the dialog boxes are declared under
CDialog base class and not CPropertyPage base class.
How can I implement a property
pages with CDialog as base class??
Thank you very much.
Dominic
Originally posted by: Rich
I used your code and made a few modifications and works great. Its good to see programmers contributing their hard work to the public domain. Thanks.
ReplyOriginally posted by: Moultipass
I have a solution to this problem of renaming the tabs in run time.
I don't know if it is the perfect solution for everybody, but it works for me and what I need to do.
1.
I have followed exactly the steps described in the tutorial by Asaf Levy except that on the first step, I have inserted a Tab Control in my Form View and not a Picture Control.
2.
I have added the virtual function "OnInitDialog" to the class CMyPropSheet (that is the class derived from CPropertySheet on the step 2 of the tutorial).
In this function, I have added the following code:
CString sCaption = _T("New Caption");
TC_ITEM tcItem;
tcItem.mask = TCIF_TEXT;
tcItem.pszText = (LPTSTR)((LPCTSTR)sCaption);
GetTabControl()->SetItem(0, &tcItem );
Which rename my first tab "New Caption".
To rename tab number two, use
GetTabControl()->SetItem(1, &tcItem );
Etc.
I hope it will help you...
Originally posted by: rick.z
i followed ur steps and it does work, thank u.
ReplyOriginally posted by: ysscu
I have tow question:
1)How to change the property page's title and
2)how to get the value from the form view's viariable?
Thanks for reply!
ReplyOriginally posted by: Siva
Can some one put the complete code for this please..
May be zip all the files
Originally posted by: Andreas
Can anyone give me an Sample or a sample project because I get some errors when compileing?
Reply