mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-08 23:01:51 +00:00
This is a thin wrapper around the Win32 API used in the Win32 Updater Dialog implementation.
37 lines
710 B
C++
37 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
|
|
|