- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
caption.h
资源名称:iconizer.zip [点击查看]
上传用户:songshun
上传日期:2007-01-04
资源大小:51k
文件大小:2k
源码类别:
按钮控件
开发平台:
Visual C++
- //===========================================================================
- //
- // HomeWork from Belgium Not licensed software
- // 1999 - 2000 No rights reserved
- //
- //===========================================================================
- //
- // Project/Product : Iconizer DLL
- // FileName : caption.h
- // Author(s) : Bart Gysens
- //
- // Description : Declaration of caption related functionality
- //
- // Classes : CCaptionRect
- //
- // Information :
- // Compiler(s) : Visual C++ 6.0
- // Target(s) : Windows 95/98 and Windows NT (x86)
- // Editor : Visual C++ 6.0 internal editor
- //
- // History
- // Vers. Date Aut. Type Description
- // ----- -------- ---- ------- -----------------------------------------
- // 1.00 22 05 99 BG Create Original
- //
- //===========================================================================
- #ifndef _CAPTION_H_INCLUDED__
- #define _CAPTION_H_INCLUDED__
- //===========================================================================
- // Macros and typedefs
- //===========================================================================
- //===========================================================================
- //
- // Class : CCaptionRect
- // Author(s) : Bart Gysens
- //
- // Description : Declaration of the CCaptionRect class
- //
- // Comments : none
- //
- // History : 1.00 : Create
- //
- //===========================================================================
- class CCaption
- {
- // Member functions
- public:
- CCaption();
- protected:
- void CalcCaptionRect( HWND hWnd, RECT& Rect );
- void DrawIconize ( HDC hDc, int x, int y, int off );
- void DrawButtons ( HWND hWnd );
- public:
- void OnNcActivate ( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, CHookItem * pItem );
- void OnNcPaint ( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, CHookItem * pItem );
- void OnSetText ( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, CHookItem * pItem );
- void OnNcLButtonDown( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, CHookItem * pItem );
- void OnNcLButtonUp ( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, CHookItem * pItem );
- void OnNcMouseMove ( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam, CHookItem * pItem );
- };
- #endif // _CAPTION_H_INCLUDED__