bool CAboutDlg::OnCheckVersion(const CString &URL, const CString & /* lpszFName */, LPARAM instance) { if (URL == L"[check_version]") { CAboutDlg *self = (CAboutDlg *)instance; self->CheckNewVer(); return true; } else return false; }