开发者

How Do I embed a CFormView into another CFormView

I have several forms that have common sections and I would like to pull them out into their own resource. Basically I am looking for a way to make a CF开发者_开发百科ormView into a windows control that I can insert into another CFormView.


You can create a modaless dialog from the same resource template and create it on a form view. This means you need to refactor your code so the event handlers can be reused between the dialog and your original form view.

CFormView expects it's parent to be a frame. To remove that dependency you need to override all functions that reference the parent frame, which is tedious to do, and each version of MFC may introduce new functions that references the parent frame.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜