- Give your CFormView the WS_CHILD style
- Create it as a MODELESS dialog with the app window as the parent window
- resize it to fit the parent s client area, or resize the parent to fit it.
The WS_CHILD style is not a default style for a dialog template, but you can add it.
this will cause the dialog to show up inside the client area of the main frame window you when create it.
您也不妨在电传泵上添加“密码”的内容。 这需要TAB钥匙在诊断中处理。
Edit ----
I m not an MFC programmer, so I can only guess how you would go about this in MFC.
Presumably you still have dialog templates, so you would go into your .RC file
and remove the WS_POPUP and add the WS_CHILD style to your template declaration. like this:
IDD_WHATEVER DIALOG DISCARDABLE 0, 0, 275, 217
STYLE DS_MODALFRAME | DS_3DLOOK | WS_CHILD | WS_VISIBLE
CAPTION "General"
FONT 8, "MS Sans Serif"
BEGIN
// etc
END
Modeless dialogs are created in Win32 by using CreateDialog
rather than DialogBox
, in
MFC by using Create()
rather than DoModal()
.