2011年10月2日

IE中元素位置获取

摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script type="text/javascript"> function processNode(te) { var rect = te.getBoundingClientRect(); alert(te.tagName + ":" + rect.left + "," + rect.top + ", &quo 阅读全文

posted @ 2011-10-02 17:41 一颗麦粒 阅读(764) 评论(0) 推荐(0) 编辑

IE中事件详细解析(二)

摘要: 这次主要分析在不同的页面下,主要的DWebBrowserEvent2的发生时机。我们先定义一个最简单的html<html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title></head><body>HELLO</body></html>这是,生成的序列如下所示:[7012] DISPID_BEFORENAVIGATE2 paramCount:7, p0(VT_BOOL):0 p1(VT_BSTR):(null) 阅读全文

posted @ 2011-10-02 16:55 一颗麦粒 阅读(7445) 评论(1) 推荐(1) 编辑

WTL 实践笔记

摘要: 1.碰到一个很奇怪的问题,建立一个窗体后,代码如下: 1 class CAddressBar: 2 public CWindowImpl<CAddressBar> 3 { 4 public: 5 CAddressBar(void); 6 ~CAddressBar(void); 7 8 DECLARE_WND_CLASS(L"address"); 9 10 BEGIN_MSG_MAP(CAddressBar)11 //MESSAGE_HANDLER(WM_CREATE, OnCreate)12 END_MSG_MAP()13 };... 阅读全文

posted @ 2011-10-02 11:37 一颗麦粒 阅读(355) 评论(0) 推荐(0) 编辑

导航