Dynamically resizing CMFCPropertySheet with PropSheetLook_OneNoteTabs style
Posted
by Ryan
on Stack Overflow
See other posts from Stack Overflow
or by Ryan
Published on 2008-12-18T16:31:16Z
Indexed on
2010/04/17
2:03 UTC
Read the original article
Hit count: 627
mfc-feature-pack
|mfc
Hi everybody, I'm trying to resize dynamically a CMFCPropertySheet to add a custom control at the bottom of each page. As all Property Pages are not of the same height, I have a mechanism to increase the size if necessary. For this, I have overridden the OnActivatePage method and by using SetWindowPos, I can resize the sheet, first, then the tab control, then the page and finally I can move the OK/Cancel/Help buttons. It works fine with PropSheetLook_OutlookBar and PropSheetLook_Tabs styles but not with PropSheetLook_OneNoteTabs style. The page (or the tab) is not correctly resized (the lighter grey color of the page does not fill the sheet.
OneNote style
Outlook style
Any idea? A MFC Feature Pack bug?
© Stack Overflow or respective owner