Dynamically resizing CMFCPropertySheet with PropSheetLook_OneNoteTabs style

前端 未结 2 1361
灰色年华
灰色年华 2021-01-25 12:45

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,

相关标签:
2条回答
  • 2021-01-25 13:05

    I found the problem. One needs to get a reference to the different tab control the OneNote version uses via GetTab() and resize it accordingly.

    0 讨论(0)
  • 2021-01-25 13:14

    Just follow the instructions as seen in here. Although the instructions are for CPropertySheet they work for the CMFCPropertySheet as well.

    Some parts of the code is deprecated so you will need to make the following amendments.

    1. Skip the XmnPropSheetCallback and DoModal implementations completely
    2. In OnInitDialog just make a call to CPropertySheet::OnInitDialog(); and then call OnSize instead of doing everything presented in that code.
    0 讨论(0)
提交回复
热议问题