bool CHTMLayoutCtrl::LoadHtmlResource(LPCTSTR pszName, HMODULE hModule) { // This code assumes that the host and control windows are the same ASSERT(::IsWindow(m_hWnd)); LPBYTE pb; DWORD cb; if(!GetHtmlResource(pszName, pb, cb, hModule)) return false; return LoadHtml(pb, cb); }
bool CHTMLayoutCtrl::LoadHtml(LPCWSTR text) { return LoadHtml(reinterpret_cast<const BYTE*>(text), 2*lstrlen(text)); }