继承htmlview 的create 函数 自定义一个网页导航
在BOOL CHtmlCtrl::CreateFromStatic(UINT nID, CWnd* pParent)
{
CStatic wndStatic;
if (!wndStatic.SubclassDlgItem(nID, pParent))
return FALSE; // Get static control rect, convert to parent's client coords.
CRect rc;
wndStatic.GetWindowRect(&rc);
pParent->ScreenToClient(&rc);
wndStatic.DestroyWindow(); return Create(rc, pParent, nID);///// 报错处,还没有执行到此
} 在xp下报错 2003下则正常
报 Access Violation
在BOOL CHtmlCtrl::CreateFromStatic(UINT nID, CWnd* pParent)
{
CStatic wndStatic;
if (!wndStatic.SubclassDlgItem(nID, pParent))
return FALSE; // Get static control rect, convert to parent's client coords.
CRect rc;
wndStatic.GetWindowRect(&rc);
pParent->ScreenToClient(&rc);
wndStatic.DestroyWindow(); return Create(rc, pParent, nID);///// 报错处,还没有执行到此
} 在xp下报错 2003下则正常
报 Access Violation
解决方案 »
- P2PClient.exe 中的 0x7c812afb 处最可能的异常: 0x000006BA: RPC 服务器不可用?
- 用GDI+DrawImage 画上去的图片会变大
- CFormView继承类的构造函数是protected类型的,那么我该如何构造一个对象呢?
- 求职贴------------希望工作地点:宁波
- 指点迷津
- 如何用程序读取注册表时,分析某一键值时无效的。
- 请问vc中有读写ini文件的类吗?
- 怎么使用VC++6.0提供的Dependency Walker工具查看ImageLoad.dll的导出函数列表呢?
- dll,lib 以及静态连接库动态连接库和运行时库的用法
- 求大佬解释
- 菜鸟的一个小问题
- 利用ODBC向一个库表中添加记录总是出错,帮忙看看
CHtmlView::Create调试到Create(rc, pParent, nID);
就会直接报错 Access Violation
{
return CHtmlView::Create(NULL, NULL, dwStyle, rc, pParent, nID, pContext);
}