CHtmlDialog::CHtmlDialog(UINT nResID, HWND hWnd) { m_hWndParent = hWnd; CString strTemp; strTemp.Format("%d", nResID); ResourceToURL(strTemp); CommonConstruct(); }
CHtmlDialog::CHtmlDialog(UINT nResID, CWnd* pParent/*= NULL*/) { m_hWndParent = pParent ? pParent->GetSafeHwnd() : NULL; CString strTemp; strTemp.Format("%d", nResID); ResourceToURL(strTemp); CommonConstruct(); }
CHtmlDialog::CHtmlDialog(const CString& strURL, BOOL bRes, HWND hWnd) { m_hWndParent = hWnd; if (bRes) ResourceToURL(strURL); else m_strURL = strURL; CommonConstruct(); }
CHtmlDialog::CHtmlDialog(LPCTSTR lpszURL, BOOL bRes, CWnd* pParent/*= NULL*/) { m_hWndParent = pParent ? pParent->GetSafeHwnd() : NULL; if (bRes) { ResourceToURL(lpszURL); } else m_strURL = lpszURL; CommonConstruct(); }