Crypt Library Demo 1.00

HyperlinkStatic.h

Go to the documentation of this file.
00001 #if !defined(AFX_HYPERLINKSTATIC_H__32A71426_1315_407C_9D90_A484C5589D80__INCLUDED_)
00002 #define AFX_HYPERLINKSTATIC_H__32A71426_1315_407C_9D90_A484C5589D80__INCLUDED_
00003 
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007 
00008 // HyperlinkStatic.h : header file
00009 //
00010 #ifndef IDC_HAND
00011 #define IDC_HAND MAKEINTRESOURCE(32649)
00012 #endif
00013 
00015 // CHyperlinkStatic window
00016 
00017 class CHyperlinkStatic : public CStatic
00018 {
00019 // Construction
00020 public:
00021     CHyperlinkStatic();
00022 
00023 // Attributes
00024 public:
00025 
00026 // Operations
00027 public:
00028 
00029 // Overrides
00030     // ClassWizard generated virtual function overrides
00031     //{{AFX_VIRTUAL(CHyperlinkStatic)
00032     protected:
00033     virtual void PreSubclassWindow();
00034     //}}AFX_VIRTUAL
00035 
00036 // Implementation
00037 public:
00038     virtual ~CHyperlinkStatic();
00039 
00040     // Generated message map functions
00041 protected:
00042     //{{AFX_MSG(CHyperlinkStatic)
00043     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
00044     afx_msg void OnPaint();
00045     afx_msg void OnDestroy();
00046     afx_msg void OnMouseMove(UINT nFlags, CPoint point);
00047     //}}AFX_MSG
00048     afx_msg LRESULT OnMouseLeave(WPARAM wParam, LPARAM lParam);
00049     DECLARE_MESSAGE_MAP()
00050 public:
00051     void SetHyperlink(CString strHyperlink);
00052     void SetCaption(CString strCaption);
00053 private:
00054     CString _strCaption, _strHyperlink;
00055     CFont _fontCaption;
00056     CSize _sizeCaption;
00057     bool _bCreateFont, _bMouseInControl, _bGetCaptionSize;
00058     HCURSOR _hHandCursor, _hArrowCursor;
00059 
00060     void CreateFont();
00061     void GetCaptionSize();
00062     bool InCaptionRange(CPoint &point);
00063 };
00064 
00066 
00067 //{{AFX_INSERT_LOCATION}}
00068 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00069 
00070 #endif // !defined(AFX_HYPERLINKSTATIC_H__32A71426_1315_407C_9D90_A484C5589D80__INCLUDED_)
 All Classes Files Functions Variables Enumerator Defines