Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Access a dialog.listbox from a member class Pin
Tony9-Jul-00 17:56
Tony9-Jul-00 17:56 
GeneralDDE to IPC or an new way Pin
bulent8-Jul-00 12:04
bulent8-Jul-00 12:04 
GeneralRe: DDE to IPC or an new way Pin
Sam Hobbs8-Jul-00 15:16
Sam Hobbs8-Jul-00 15:16 
QuestionHow do you print a CRichEditView ??? Pin
Mike Newberry8-Jul-00 5:12
sussMike Newberry8-Jul-00 5:12 
GeneralHOWTO : Get a CPropertySheet pointer from a CPropertyPage !?!?!?! Pin
Luc Bergeron6-Jul-00 5:33
Luc Bergeron6-Jul-00 5:33 
GeneralRe: HOWTO : Get a CPropertySheet pointer from a CPropertyPage !?!?!?! Pin
Paolo Messina6-Jul-00 7:07
professionalPaolo Messina6-Jul-00 7:07 
GeneralRe: HOWTO : Get a CPropertySheet pointer from a CPropertyPage? Pin
Mike Dunn6-Jul-00 9:27
Mike Dunn6-Jul-00 9:27 
GeneralRe: HOWTO : Get a CPropertySheet pointer from a CPropertyPage !?!?!?! Pin
Steve Driessens7-Jul-00 18:19
Steve Driessens7-Jul-00 18:19 
G'day Luc,

Something that I do quite frequently when dealing with property sheets is to create a base class for the property pages - say CBasePropertyPage - and add member functions to access the parent property sheet.

I.e

CMyPropertySheet* CBasePropertyPage::GetPropSheet()
{
return (CMyPropertySheet*)GetParent();
}

I also add member functions to access data that is stored or managed by the property sheet.

I.e.

CMyDataClass* CBasePropertyPage::GetDataPtr()
{
return GetPropSheet()->m_pDataPtr;
}

I then derive my property pages from this class.
This gives *all* of the property pages easy access to the parent property sheet and any data that it maintains.

Hope this helps.
Steve


GeneralRe: HOWTO : Get a CPropertySheet pointer from a CPropertyPage !?!?!?! Pin
Luc Bergeron10-Jul-00 5:00
Luc Bergeron10-Jul-00 5:00 
QuestionDo u know? Pin
atif6-Jul-00 5:13
atif6-Jul-00 5:13 
QuestionHow To: Bold the Text on the Property Page Tab when the page is active Pin
Lori6-Jul-00 4:47
Lori6-Jul-00 4:47 
AnswerRe: How To: Bold the Text on the Property Page Tab when the page is active Pin
Mike Dunn6-Jul-00 9:32
Mike Dunn6-Jul-00 9:32 
GeneralBackStyle (ATL) Pin
Chris6-Jul-00 4:31
Chris6-Jul-00 4:31 
GeneralAbout CHttpFile Pin
Tenacious6-Jul-00 0:17
Tenacious6-Jul-00 0:17 
GeneralExchanging DLLs Pin
Thomas Freudenberg5-Jul-00 23:36
Thomas Freudenberg5-Jul-00 23:36 
GeneralRe: Exchanging DLLs Pin
Alvaro Mendez6-Jul-00 4:44
Alvaro Mendez6-Jul-00 4:44 
GeneralRe: Exchanging DLLs Pin
Mike Dunn6-Jul-00 9:37
Mike Dunn6-Jul-00 9:37 
QuestionWebbrowser repaint?? Pin
dooly5-Jul-00 20:51
dooly5-Jul-00 20:51 
AnswerRe: Webbrowser repaint?? Pin
pba_5-Jul-00 23:35
pba_5-Jul-00 23:35 
GeneralRe: Webbrowser repaint?? Pin
dooly6-Jul-00 16:19
dooly6-Jul-00 16:19 
GeneralRe: Webbrowser repaint?? Pin
pba_6-Jul-00 22:42
pba_6-Jul-00 22:42 
GeneralAutoBld Add-In Pin
GeVanCo5-Jul-00 20:12
GeVanCo5-Jul-00 20:12 
GeneralRe: AutoBld Add-In Pin
Mike Melnikov4-Aug-00 3:37
Mike Melnikov4-Aug-00 3:37 
GeneralSTL Pin
Member 43215-Jul-00 7:52
Member 43215-Jul-00 7:52 
GeneralRe: STL Pin
pba_5-Jul-00 23:39
pba_5-Jul-00 23:39 

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.