Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
HyperLink.h
Package: 计算机图形学综合大程序.rar [view]
Upload User: taoguanmin
Upload Date: 2007-05-11
Package Size: 180k
Code Size: 3k
Category:
2D Graphic
Development Platform:
Visual C++
- #if !defined(AFX_HYPERLINK_H__91C79E53_3E00_4E28_8CC7_61874C808806__INCLUDED_)
- #define AFX_HYPERLINK_H__91C79E53_3E00_4E28_8CC7_61874C808806__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // HyperLink.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CHyperLink window
- //超链接类别
- #define HLS_URL 1//网页
- #define HLS_MAIL 2//邮件
- class CHyperLink : public CStatic
- {
- // Construction
- public:
- CHyperLink();
- virtual ~CHyperLink();
- // Attributes
- public:
- // Operations
- public:
- void SetURL(CString strURL);
- CString GetURL() const{return m_strURL;};
- void SetMail(CString strMail);
- CString GetMail() const{return m_strMail;};
- void SetColours(COLORREF crLinkColour,COLORREF crVisitedColour,COLORREF crHoverColour=-1);
- COLORREF GetLinkColour() const{return m_crLinkColour;};
- COLORREF GetVisitedColour() const{return m_crVisitedColour;};
- COLORREF GetHoverColour() const{return m_crHoverColour;};
- void SetVisited(BOOL bVisited=TRUE);
- BOOL GetVisited() const{return m_bVisited;};
- void SetLinkCursor(HCURSOR hCursor);
- HCURSOR GetLinkCursor() const{return m_hLinkCursor;};
- void SetUnderline(BOOL bUnderline=TRUE);
- BOOL GetUnderline() const{return m_bUnderline;};
- void SetAutoSize(BOOL bAutoSize=TRUE);
- BOOL GetAutoSize() const{return m_bAdjustToFit;};
- HINSTANCE GotoURL(LPCTSTR url,int showcmd);
- void GotoMail(CString strMail,int iShowCmd);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CHyperLink)
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- protected:
- virtual void PreSubclassWindow();
- //}}AFX_VIRTUAL
- // Implementation
- // Generated message map functions
- protected:
- void ReportError(int nError);
- LONG GetRegKey(HKEY key,LPCTSTR subkey,LPTSTR retdata);
- void PositionWindow();
- void SetDefaultCursor();
- // Protected attributes
- protected:
- int m_iHyperLinkSort; //超链接类别
- COLORREF m_crLinkColour; //超链接颜色
- COLORREF m_crVisitedColour;//超链接被访问过后的颜色
- COLORREF m_crHoverColour; //Hover colour
- BOOL m_bOverControl; //cursor over control?
- BOOL m_bVisited; //此地址是否已被访问
- BOOL m_bUnderline; //是否加下划线
- BOOL m_bAdjustToFit; //Adjust window size to fit text?
- CString m_strURL; //超链接地址
- CString m_strMail; //邮件地址
- CFont m_Font; //Underline font if necessary
- HCURSOR m_hLinkCursor; //超链接上的光标
- CToolTipCtrl m_ToolTip; //提示控件
- protected:
- //{{AFX_MSG(CHyperLink)
- afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
- afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- //}}AFX_MSG
- afx_msg void OnClicked();
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_HYPERLINK_H__91C79E53_3E00_4E28_8CC7_61874C808806__INCLUDED_)