Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
From any of the pages, you can get a pointer to the sheet with:

CPropSheet* pSheet = (CPropSheet*) GetParent();

However your code has another bug. You have the font variable on the stack, so as soon as the function returns, font gets destroyed, taking the GDI font object with it. Make the CFont variable a member variable of the sheet so it will be available for the lifetime of the sheet.
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 
Generalimporting default menu items Pin
Ryan Gates5-Jul-00 7:44
Ryan Gates5-Jul-00 7:44 
GeneralRe: importing default menu items Pin
Sam Hobbs5-Jul-00 19:26
Sam Hobbs5-Jul-00 19:26 
GeneralCSliderControl Pin
Member 40325-Jul-00 5:37
Member 40325-Jul-00 5:37 
GeneralRe: CSliderControl Pin
Philip Nicoletti6-Jul-00 9:23
Philip Nicoletti6-Jul-00 9:23 

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.