BitmapStatic.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:1k
- // BitmapStatic.h : header file
- //
- #ifndef _BITMAP_STATIC_H
- #define _BITMAP_STATIC_H
- #define UWM_STATICCLICKED WM_APP + 123
- HCURSOR WINAPI GetSysHandCursor(void);
- // CBitmapStatic window
- class CBitmapStatic : public CStatic
- {
- // Construction
- public:
- CBitmapStatic();
- // Attributes
- public:
- void DeAttachObject(void);
- BOOL SetBitmap(UINT uResourceId);
- BOOL SetBitmap(CBitmap &pBitmapObj);
- BOOL SetBitmap(HBITMAP hBitmapHandle);
- void SetCaption(const CString &strCaption);
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CBitmapStatic)
- protected:
- virtual void PreSubclassWindow();
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CBitmapStatic();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CBitmapStatic)
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnPaint();
- afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- afx_msg void OnClicked();
- protected:
- void AdjustWindowRect(void);
- protected:
- BOOL m_bHoverControl;
- HCURSOR m_hHandCursor;
- HBITMAP m_hBitmapHandle;
- CString m_strCaption;
- };
- #endif //!_BITMAP_STATIC_H