MultiLineCaptionEx.h
上传用户:kssdz899
上传日期:2007-01-08
资源大小:79k
文件大小:1k
- #ifndef _MULTILINE_CAPTION_EX_H
- #define _MULTILINE_CAPTION_EX_H
- ////////////////////////////
- // An extended multi-line caption class with fixes for the Windows 95/NT caption
- // overwrite 'feature' that causes a normal window caption to be painted
- // when non-client area mouse activity occurs after the system menu has been
- // displayed.
- //
- // Author: Dave Lorde (dlorde@cix.compulink.co.uk)
- //
- // Copyright January 2000
- //
- #include "MultiLineCaption.h"
- class AFX_EXT_CLASS CMultiLineCaptionEx : public CMultiLineCaption
- {
- public:
- CMultiLineCaptionEx(int maxLines = 5);
- protected:
- DECLARE_DYNAMIC(CMultiLineCaptionEx);
- virtual LRESULT WindowProc (UINT msg, WPARAM wp, LPARAM lp);
- void OnSysCommand (UINT nID, LPARAM lParam);
- BOOL OnSetCursor (HWND hWnd, UINT nHitTest, UINT message );
- void OnSize (UINT nType, int cx, int cy);
- void OnInitMenuPopup (CMenu* pMenu, UINT nIndex, BOOL bSysMenu);
- private:
- };
- #endif