72 void SetURL(std::basic_string<TCHAR> url);
73 std::basic_string<TCHAR>
GetURL()
const;
82 CString m_strMenuText;
84 void OnContextMenu(CWindow wnd, CPoint point);
85 void OnRButtonDown(UINT nFlags, CPoint point);
86 LRESULT OnLink(WORD , WORD , HWND , BOOL& bHandled);
89 MSG_WM_CONTEXTMENU(OnContextMenu)
90 MSG_WM_RBUTTONDOWN(OnRButtonDown)
92 DEFAULT_REFLECTION_HANDLER()
CHyperlinkImage() noexcept
void SubclassStatic(HWND hWnd)
Subclass a Static TExt control window.
virtual ~CHyperlinkImage()
void SetURL(std::basic_string< TCHAR > url)
Load a new target URL
A CStatic descendant providing a context menu with a single entry, allowing the launch of the default...
void SetMenuText(std::basic_string< TCHAR > text)
Load text to be displayed in the context menu item.
std::basic_string< TCHAR > GetURL() const
Default: "".
#define IDM_HYPERLINKIMAGE_LINK
void UnSubclassStatic()
Un-subclass the window.
std::basic_string< TCHAR > GetMenuText() const
Default: "".