mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-13 07:01:32 +00:00
38 lines
710 B
C
38 lines
710 B
C
|
/////////////////////////////
|
||
|
// Hyperlink.h
|
||
|
|
||
|
#ifndef HYPERLINK_H
|
||
|
#define HYPERLINK_H
|
||
|
|
||
|
#include "wincore.h"
|
||
|
|
||
|
#ifndef IDC_HAND
|
||
|
#define IDC_HAND MAKEINTRESOURCE(32649)
|
||
|
#endif
|
||
|
|
||
|
class CHyperlink : public CWnd
|
||
|
{
|
||
|
public:
|
||
|
CHyperlink();
|
||
|
virtual ~CHyperlink();
|
||
|
virtual BOOL AttachDlgItem(UINT nID, CWnd* pParent);
|
||
|
void OnLButtonDown();
|
||
|
void OnLButtonUp(LPARAM lParam);
|
||
|
|
||
|
protected:
|
||
|
virtual void OpenUrl();
|
||
|
virtual LRESULT OnMessageReflect(UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||
|
virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||
|
|
||
|
private:
|
||
|
BOOL m_bUrlVisited;
|
||
|
BOOL m_bClicked;
|
||
|
COLORREF m_crVisited;
|
||
|
COLORREF m_crNotVisited;
|
||
|
HCURSOR m_hCursor;
|
||
|
HFONT m_hUrlFont;
|
||
|
};
|
||
|
|
||
|
#endif // HYPERLINK_H
|
||
|
|