📄 wpw_mfc_mdi_95.html
字号:
<HTML>
<HR><A NAME=MFC_MDI_TABBED>
Return to <a href="wpw_mfc_index.html#TOC">Table of Contents for this chapter</a><br>
<H4>Subject: Tabbed MDI Windows</H4><PRE>
In article <3rqepb$e7c@clarknet.clark.net>, billmcfa@clark.net says...
>
>Does anyone know of an easy way to create a tabbed MDI child window (Much
like
>the ones used in Quattro Pro and Excel)? MFC 3.0 has support for tabbed
>DIALOG boxes but not tabbed MDI child windows.
>
I am attempting to do much tha same thing at the moment. I am using Visual
C++ version 2.1 (subscription) to get the 16 bit versions of the
CPropertySheet and CPropertyPage classes - MFC version 3.1 I think.
What I have done is to have a modeless property sheet as a child of the view
window. I have subclassed the CPropertySheet class to allow me to
re-implement various member functions.
The first problem I came across was that the CPropertySheet::OnCreate()
method expects the window to have a system menu. The
CPropertySheet::OnCreate() does not have a system menu; the MDI child window
(the view) has the system menu so this needed to be fixed.
You must remember to create the CPropertySheet as a modeless sheet with the
WS_CHILD and not WS_POPUP style.
It is probably desireable to resize the property sheet to fit the view -
OnSize().
I foun that you needed a PreTranslateMessage() method to allow the frame
window accelerators to work - see viewform.c /
CFormView::PreTranslateMessage().
Hope this helps.
If you have any thoughts on how to create buttons ouside each property page,
but within the sheet I would be interested to hear.
John.
</PRE>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -