您可以通过以下方式设置 m_strURL 的值:
CMFCDesktopAlertWndInfo desktopAlertInfo;
desktopAlertInfo.m_strURL = _T("https://www.example.com");
这将把链接 URL 赋值给 m_strURL 成员变量。随后,您可以将 desktopAlertInfo 对象传递给相应的桌面提醒窗口方法,以确保链接在用户点击时能够被正确处理。
要获取链接 URL,可以使用类似的方式:
CString strURL = desktopAlertInfo.m_strURL;
这将把 m_strURL 的值复制到 strURL 字符串中,然后您可以使用 strURL 变量来访问链接 URL。
转载请注明出处:http://www.pingtaimeng.com/article/detail/19234/MFC/CMFCDesktopAlertWndInfo