SetFont(LPFONTDISP pFontDisp)的参数搞不明白,不知道怎么传。谢谢。
解决方案 »
- 有没有EDIT和SPIN连在一起的控件?
- VS2008 Release版本程序开启优化后,程序运行没有结果?
- 郁闷,目前所有的屏幕取词软件都不能在火狐4里取词
- 一个简单的宏替换问题...#define aa 0x0120 ......c++高手请进.....
- serialize的中的schema no的作用是什么?
- replace 用法不对吗?
- 高分求代码学习(跟帖有分)
- adsl专线上网,可安装wingate4.5之后,外边拨号上网后,ping不到我了,?
- 关于算法复杂度的问题
- DisconnectEx用法疑惑:只能用来主动关闭客户端连接?还是可以“客户端主动关闭连接”后DisconnectEx该客户端对应SOCKET?
- 关于IE中的对象(IWebBrowser.....)的问题?请有C++对IE编程经验的高手指教(急!!)
- DAO访问dbf表
参考一下 msdn中ActiveX Controls: Using Fonts in an ActiveX Control
IFontDisp
This interface exposes a font object's properties through Automation. It provides a subset of the IFont methods.When to Implement
A font object implements this interface along with IFont to provide access to the font's properties through Automation. Typically, it is not necessary to implement this interface on your own object, since there is a COM-provided implementation of the font object.The following table describes the dispIDs for the various font properties.Symbol Value
DISPID_FONT_NAME 0
DISPID_FONT_SIZE 2
DISPID_FONT_BOLD 3
DISPID_FONT_ITALIC 4
DISPID_FONT_UNDER 5
DISPID_FONT_STRIKE 6
DISPID_FONT_WEIGHT 7
DISPID_FONT_CHARSET 8 Each property in the IFontDisp interface includes a get_PropertyName method if the property supports read access and a put_PropertyName method if the property supports write access. Most of the properties support both read and write access and thus expose both "get" and "put" methods for these properties.
也就是 实现了 IFontDisp 接口的 东西
传的时候就 SetFont((LPFONTDISP)自己查)