我想创建一个(cview、CDoc、CMframe)的子窗体,其实就是弄一个Dialog在一个窗体里面。
用这样的方法就行了,m_Dialog.Create(IDC_DIALOG,this),而且要修改属性使其为
style是child。
但是形成的只是一个对话框,不能形成一个有最大化、最小化的子窗体。
用这样的方法就行了,m_Dialog.Create(IDC_DIALOG,this),而且要修改属性使其为
style是child。
但是形成的只是一个对话框,不能形成一个有最大化、最小化的子窗体。
解决方案 »
- 64位win7与32位xp未初始化变量的问题
- 初学VC,我想问一下,ApplicationEvents控件在哪里加
- strtok使用出现问题
- LPCSTR --- LPCTSTR ---- CString --- char* ----char[] ---- CHAR ---- ???????????????????
- 请问VC与Access95连接和与Access2000连接之间有什么区别?
- 在用套接字通讯的时候是用CSocket类好还是直接用SOCKET 及API函数好呢?
- 如何显示状态栏的内容?请大虾帮忙!
- 使用什么命令可以注册ocx控件
- 有没有大虾做过xml报文的?
- 怎么用VeCad在MFC中创建cad窗口
- C++ Users Journal十年合订本和MSDN Magazine2002合订本共享
- 请问如何删除FlexGrid中的一行数据
WS_BORDER Creates a window that has a border.
WS_CAPTION Creates a window that has a title bar (implies the WS_BORDER style). Cannot be used with the WS_DLGFRAME style.
WS_CHILD Creates a child window. Cannot be used with the WS_POPUP style.
WS_CLIPCHILDREN Excludes the area occupied by child windows when you draw within the parent window. Used when you create the parent window.
WS_CLIPSIBLINGS Clips child windows relative to each other; that is, when a particular child window receives a paint message, the WS_CLIPSIBLINGS style clips all other overlapped child windows out of the region of the child window to be updated. (If WS_CLIPSIBLINGS is not given and child windows overlap, when you draw within the client area of a child window, it is possible to draw within the client area of a neighboring child window.) For use with the WS_CHILD style only.
WS_DISABLED Creates a window that is initially disabled.
WS_DLGFRAME Creates a window with a double border but no title.
WS_GROUP Specifies the first control of a group of controls in which the user can move from one control to the next with the arrow keys. All controls defined with the WS_GROUP style FALSE after the first control belong to the same group. The next control with the WS_GROUP style starts the next group (that is, one group ends where the next begins).
WS_HSCROLL Creates a window that has a horizontal scroll bar.
WS_MAXIMIZE Creates a window of maximum size.
WS_MAXIMIZEBOX Creates a window that has a Maximize button.
WS_MINIMIZE Creates a window that is initially minimized. For use with the WS_OVERLAPPED style only.
WS_MINIMIZEBOX Creates a window that has a Minimize button.
WS_OVERLAPPED Creates an overlapped window. An overlapped window usually has a caption and a border.
WS_OVERLAPPEDWINDOW Creates an overlapped window with the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX styles.
WS_POPUP Creates a pop-up window. Cannot be used with the WS_CHILD style.
WS_POPUPWINDOW Creates a pop-up window with the WS_BORDER, WS_POPUP, and WS_SYSMENU styles. The WS_CAPTION style must be combined with the WS_POPUPWINDOW style to make the Control menu visible.
WS_SYSMENU Creates a window that has a Control-menu box in its title bar. Used only for windows with title bars.
WS_TABSTOP Specifies one of any number of controls through which the user can move by using the TAB key. The TAB key moves the user to the next control specified by the WS_TABSTOP style.
WS_THICKFRAME Creates a window with a thick frame that can be used to size the window.
WS_VISIBLE Creates a window that is initially visible.
WS_VSCROLL Creates a window that has a vertical scroll bar.
See Also CWnd::Create, CWnd::CreateEx
WS_MINIMIZEBOX WS_MAXIMIZEBOX
楼主可以用CFormView来实现吗!
CFormView和对话框的处理差不多,也很容易!
呵呵……希望对你有所帮助!
除非设计为POPUPWINDOW之类