// Page7.cpp : implementation file // #include "stdafx.h" #include "dicommwl.h" #include "Page7.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CPage7 property page IMPLEMENT_DYNCREATE(CPage7, CPropertyPage) CPage7::CPage7() : CPropertyPage(CPage7::IDD, IDS_PAGE8) { //{{AFX_DATA_INIT(CPage7) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT NO_PAGE_HELP(); } CPage7::~CPage7() { } void CPage7::DoDataExchange(CDataExchange* pDX) { CPropertyPage::DoDataExchange(pDX); //{{AFX_DATA_MAP(CPage7) DDX_Control(pDX, IDC_STATIC_MEDICOR_TOOLKIT_IP, m_HyperlinkMedicorToolkit); DDX_Control(pDX, IDC_STATIC_MEDICOR_IP, m_HyperlinkMedicor); DDX_Control(pDX, IDC_STATIC_LEAD_TOOLKIT_IP, m_HyperlinkLeadToolkit); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CPage7, CPropertyPage) //{{AFX_MSG_MAP(CPage7) ON_WM_SETCURSOR() //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CPage7 message handlers BOOL CPage7::OnSetActive() { m_HyperlinkLeadToolkit.SetLink("http://www.leadtools.com/SDK/Medical/Medical-Products-n.htm"); m_HyperlinkMedicor.SetLink("http://www.leadtools.com"); m_HyperlinkMedicorToolkit.SetLink("http://www.medicorimaging.com/Developer-toolkits.htm"); m_pSheet = (CMyPropertySheet *)GetParent(); m_pSheet->SetWizardButtons(PSWIZB_FINISH ); return CPropertyPage::OnSetActive(); } #define IDC_HAND_CURSOR MAKEINTRESOURCE(32649) BOOL CPage7::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) { if(pWnd != NULL && (pWnd->GetSafeHwnd() == m_HyperlinkLeadToolkit.GetSafeHwnd() || pWnd->GetSafeHwnd() == m_HyperlinkMedicorToolkit.GetSafeHwnd() || pWnd->GetSafeHwnd() == m_HyperlinkMedicor.GetSafeHwnd())) { HCURSOR hCursor= LoadCursor(NULL, IDC_HAND_CURSOR); if (hCursor) { SetCursor(hCursor); //IDC_HAND return TRUE; } } return CPropertyPage::OnSetCursor(pWnd, nHitTest, message); }