如果是对话框, 可以在对话框属性上, 选择Border项为Resizing, 则对话框可以通过鼠标拖动边框,改变它的大小.
现在我不用对话框了, 接从CWnd类定制一个弹出窗口, 它也需要Resizing功能, 请问, 怎样设置它的. 我在
virtual BOOL Create( LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
dwStyle并没有 Resizing的window style ?????
现在我不用对话框了, 接从CWnd类定制一个弹出窗口, 它也需要Resizing功能, 请问, 怎样设置它的. 我在
virtual BOOL Create( LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
dwStyle并没有 Resizing的window style ?????
CDialog也是从CWnd派生的 ,不知它是如何实现的.
-----------------------------------------------------------------
window style中并没有 Resizing 这样的风格.
CWnd::Create(...,dyStyle | WS_SIZEBOX, ...);
搜索 windows style 才能看到
以前我做过一个类似的东西。