1 see the source code of CHTMLCodeDlg in http://blog.csdn.net/jiangsheng/archive/2003/11/09/3795.aspxYou can also determine the location, width, and height of an object by using a combination of the IHTMLElement::offsetLeft, IHTMLElement::offsetTop, IHTMLElement::offsetHeight, and IHTMLElement::offsetWidth properties. These numeric properties specify the physical coordinates and dimensions of the object relative to the object's offset parent. For more information about how to access the dimension and location of objects on the page through the Dynamic HTML (DHTML) Document Object Model (DOM), see Measuring Element Dimension and Location. http://msdn.microsoft.com/workshop/author/om/measuring.asp
升级到VC.Net,或者安装新版本的Windows平台SDK
注意最新版本的Windows平台SDK已经不支持VC6了。