MultiLineCaptionEx.h
上传用户:zhoushen
上传日期:2022-06-15
资源大小:84k
文件大小:1k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. #ifndef _MULTILINE_CAPTION_EX_H
  2. #define _MULTILINE_CAPTION_EX_H
  3. ////////////////////////////
  4. // An extended multi-line caption class with fixes for the Windows 95/NT caption
  5. // overwrite 'feature' that causes a normal window caption to be painted
  6. // when non-client area mouse activity occurs after the system menu has been 
  7. // displayed.
  8. //
  9. // Author: Dave Lorde (dlorde@cix.compulink.co.uk)
  10. //
  11. //          Copyright January 2000
  12. //
  13. #include "MultiLineCaption.h"
  14. class AFX_EXT_CLASS CMultiLineCaptionEx : public CMultiLineCaption 
  15. {
  16. public:
  17. CMultiLineCaptionEx(int maxLines = 5);
  18. protected:
  19. DECLARE_DYNAMIC(CMultiLineCaptionEx);
  20. virtual LRESULT WindowProc (UINT msg, WPARAM wp, LPARAM lp);
  21. void OnSysCommand (UINT nID, LPARAM lParam);
  22. BOOL OnSetCursor (HWND hWnd, UINT nHitTest, UINT message );
  23. void OnSize (UINT nType, int cx, int cy);
  24. void OnInitMenuPopup (CMenu* pMenu, UINT nIndex, BOOL bSysMenu);
  25. private:
  26. };
  27. #endif