用MFC写的ACTIVEX,放到网页上,这个ACTIVEX控件的尺寸很小。
那么,如何调整控件的尺寸呢?
那么,如何调整控件的尺寸呢?
解决方案 »
- 【崩溃!】这个函数究竟调用了几次?简单,哥哥姐姐们都来看看呀~!
- 在一个窗口中创建另一个窗口,如何。。。
- 请vc高手务必要进来看看,帮忙解决一个问题
- 哪里有《win32多线程程序设计》的光盘源代码下载呢?
- 为什么不能解析xmlns:s="http://www.w3.org/1999/XMLSchema"
- 请问怎样让CFileDialog里面只显示文件夹
- 这是什么排序算法
- 主线程如何向辅线程传递参数?
- 老是出现因用内存出错是怎么回事?WIN2000下,老是说引用出错,该块内存不能READ
- 用installshield 1)如何运行另一个程序,2)实现重起动微机 ?(空)
- 如何学习网络编程
- 关于内存分配时的异常处理的一个问题
Retrieves a running object's current display size.HRESULT GetExtent(
DWORD dwDrawAspect, //Value indicating object aspect
SIZEL *psizel //Pointer to storage of object size limit
);
A container calls IOleObject::GetExtent on a running object to retrieve its current display size. If the container can accommodate that size, it will normally do so because the object, after all, knows what size it should be better than the container does. A container normally makes this call as part of initializing an object.
The display size returned by IOleObject::GetExtent may differ from the size last set by IOleObject::SetExtent because the latter method dictates the object's display space at the time the method is called but does not necessarily change the object's native size, as determined by its application. Note This method must return the same size as DVASPECT_CONTENT for all the new aspects in DVASPECT2. IViewObject2::GetExtent must do the same thing. If one of the new aspects is requested in dwAspect, this method can either fail or return the same rectangle as for the DVASPECT_CONTENT aspect. Notes to Callers
Because a container can make this call only to a running object, the container must instead call IViewObject2::GetExtent if it wants to get the display size of a loaded object from its cache.
Notes to Implementers
Implementation consists of filling the sizel structure with an object's height and width.