ModifyStyle( WS_CAPTION, WS_MINIMIZEBOX, SWP_DRAWFRAME );//设置图标WS_MINIMIZEBOX用modifystyle去修改. CWnd::ModifyStyle BOOL ModifyStyle( DWORD dwRemove, DWORD dwAdd, UINT nFlags = 0 );Return ValueNonzero if style was successfully modified; otherwise, 0.ParametersdwRemoveSpecifies window styles to be removed during style modification.dwAddSpecifies window styles to be added during style modification.nFlagsFlags to be passed to SetWindowPos, or zero if SetWindowPos should not be called. The default is zero. See the Res section for a list of preset flags. 把标题栏去掉后,自己画一个,并贴上图标,实现相应的功能就可以了
To yuantao(cfan):谢谢,已经实现了没有外框的功能了,但是还向知道画上自己的title条后怎样实现拖动和最小化,关闭
你可以在
http://www.codeguru.com/advancedui/CustomCaptions.shtml和http://www.codeguru.com/dialog/custom_dialog_caption.shtml
找到相关实现的例子。
CWnd::ModifyStyle
BOOL ModifyStyle( DWORD dwRemove, DWORD dwAdd, UINT nFlags = 0 );Return ValueNonzero if style was successfully modified; otherwise, 0.ParametersdwRemoveSpecifies window styles to be removed during style modification.dwAddSpecifies window styles to be added during style modification.nFlagsFlags to be passed to SetWindowPos, or zero if SetWindowPos should not be called. The default is zero. See the Res section for a list of preset flags.
把标题栏去掉后,自己画一个,并贴上图标,实现相应的功能就可以了
http://www.vckbase.com/document/viewdoc/?id=491