Dynamically resizing CMFCPropertySheet with PropSheetLook_OneNoteTabs style

前端 未结 2 1371
灰色年华
灰色年华 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: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.

提交回复
热议问题