Commit before breaking everything
[matches/honours.git] / research / transmission_spectroscopy / TOF / Win32++ / WCE samples / DlgSubclass / Hyperlink.h
diff --git a/research/transmission_spectroscopy/TOF/Win32++/WCE samples/DlgSubclass/Hyperlink.h b/research/transmission_spectroscopy/TOF/Win32++/WCE samples/DlgSubclass/Hyperlink.h
new file mode 100644 (file)
index 0000000..f271fea
--- /dev/null
@@ -0,0 +1,37 @@
+/////////////////////////////\r
+// Hyperlink.h\r
+\r
+#ifndef HYPERLINK_H\r
+#define HYPERLINK_H\r
+\r
+#include "wincore.h"\r
+\r
+#ifndef IDC_HAND\r
+#define IDC_HAND  MAKEINTRESOURCE(32649)\r
+#endif\r
+\r
+class CHyperlink :     public CWnd\r
+{\r
+public:\r
+       CHyperlink();\r
+       virtual ~CHyperlink();\r
+       virtual BOOL AttachDlgItem(UINT nID, CWnd* pParent);\r
+       void OnLButtonDown();\r
+       void OnLButtonUp(LPARAM lParam);\r
+\r
+protected:\r
+       virtual void OpenUrl();\r
+       virtual LRESULT OnMessageReflect(UINT uMsg, WPARAM wParam, LPARAM lParam);\r
+       virtual LRESULT WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);\r
+\r
+private:\r
+       BOOL    m_bUrlVisited;\r
+       BOOL    m_bClicked;\r
+       COLORREF m_crVisited;\r
+       COLORREF m_crNotVisited;\r
+       HCURSOR m_hCursor;\r
+       HFONT   m_hUrlFont;\r
+};\r
+\r
+#endif // HYPERLINK_H\r
+\r

UCC git Repository :: git.ucc.asn.au