我用VS.NET新建了一个win32项目,在初始化的时候调用InitCommonControls() 函数以便可以使用通用控件,之后我在窗体上创建了WC_TABCONTROL 控件,就是俗称的TabControl,但是默认的字体非常不好看,我想改变WC_TABCONTROL的字体,可以做到么?how can i change font and fontsize?
解决方案 »
- MFC 内存映射
- Dsoframer支持Office2007和HttpPost的问题
- CCameraControlProtocolBase协议类?vc库里找不到啊
- 网络编程中断点续传的实现
- 如何实现像windows对PDF文件的预览功能?
- 什么是用图像采集卡开发图像监控系统?
- vc 是什么东东??:)
- vs2010环境下用opencv进行图片显示,不存在从CString到const char*的转换函数
- Socket的问题
- 向高手请教
- 大家都.net了吗? 我还在用VC++6.0 ,要不要也换VC++.NET ?
- 问个超级菜问题,VC下如何用nmake编译.mk文件生成proxy/stub dll
If a tab control has the TCS_OWNERDRAWFIXED style, the parent window must paint tabs by processing the WM_DRAWITEM message. The tab control sends this message whenever a tab needs to be painted. The lParam parameter specifies the address of a DRAWITEMSTRUCT structure, which contains the index of the tab, its bounding rectangle, and the device context (DC) in which to draw.
1 给控件与一个TCS_OWNERDRAWFIXED style;
2 处理WM_DRAWITEM 消息,这里你想干什么都行了 呵呵;
不过单单要改变字体,估计这个控件的类应该有相应的函数 或许就是 gao_ming77(小明说的 setfont。