RECT rectClient;
GetClientRect(&rectClient);
CLSID clsid = { 0xca8a9780, 0x280d, 0x11cf, { 0xa2, 0x4d, 0x44, 0x45, 0x53, 0x54, 0x0, 0x0} };
if(!m_wndPdf.CreateControl(clsid, NULL, WS_VISIBLE, rectClient, this, AFX_IDW_PANE_FIRST))
{
MessageBox(L"create error!");
return false;
}
请问为什么CreateControl返回会出错
RECT rectClient;
GetClientRect(&rectClient);
CLSID clsid = { 0x8856F961, 0x340A, 0x11D0, { 0xa9, 0x6b, 0x00, 0xc0, 0x4f, 0xd7, 0x05, 0xa2} };
if(!m_wndPdf.CreateControl(clsid, NULL, WS_VISIBLE, rectClient, this, AFX_IDW_PANE_FIRST))
{
MessageBox(L"create error!");
return false;
}
说明:这个是好的
第一个clsid是pdf
第二个clsid是webbrowser