社区
界面
帖子详情
请问,CDateTimeCtrl控件里面的字体颜色怎么修改?
goodthought
2003-10-20 06:11:33
如上,困惑中,尝试过做一个继承于CDateTimeCtrl的类,但不知道如何下手。
请帮忙!!!
多谢
...全文
61
回复
打赏
收藏
请问,CDateTimeCtrl控件里面的字体颜色怎么修改?
如上,困惑中,尝试过做一个继承于CDateTimeCtrl的类,但不知道如何下手。 请帮忙!!! 多谢
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
MFC类库详解中文版(chm)
MFC类目录及头文件 类 描述 头文件 CAnimat
eCt
rl
自动化通用
控件
afxcmn.h CArchive afx.h CArchiveException afx.h CArray afxtempl.h CAsyncMonikerFile 在ActiveX
控件
中提供对异步标记的支持 afxole.h CAsyncScoket 封装Windows Sockets API,参看CSocket afxsock.h CBitmap afxwin.h CBitmapButton afxext.h CBrush afxwin.h CButton 按钮
控件
对象 afxwin.h CByteArray afxcoll.h CCachedDataPathProperty 允许一个ActiveX
控件
异步传输属性数据和缓冲内存中的数据,参考CDataPathProperty afxctl.h CCheckListBox afxwin.h CClientDC afxwin.h CCmdTarget 所有能够接收和响应消息的对象的基类 afxwin.h CCmdUI afxwin.h CColorDialog 颜色选择的通用对话框,提供为显示系统定义的颜色列表 afxdlgs.h CComboBox 组合框对象 afxwin.h CComboBoxEx CComboBox类的派生类,用于支持在组合框
控件
中的图像列表 afxcmn.h CCommandLineInfo afxwin.h CCommonDialog afxdlgs.h CConn
ect
ionPoint afxdisp.h CControlBar afxext.h CCreateContext afxext.h CCriticalS
ect
ion afxmt.h CCt
rl
View afxwin.h CDaoDatabase afxdao.h CDaoException afxdao.h CDaoFieldExchange afxdao.h CDaoQueryDef afxdao.h CDaoRecordset 代表选自数据源的记录集。CDaoRecordset对象可用于三种格式:表类型记录集,动态集类型记录集和快照类型记录集 afxdao.h CDaoRecordView 提供表单视图,以在
控件
中显示数据库记录。表单视图是CDaoRecordset对象的一部分。参考CFormView和CRecordView afxdao.h CDaoTableDef afxdao.h CDaoWorkspace afxdao.h CDatabase afxdb.h CDataExchange afxwin.h CDataPathProperty 实现一个ActiveX
控件
属性,它能够异步加载其数据。这个类允许ActiveX
控件
在后台下载属性数据时被激活 afxctl.h C
DateTim
eCt
rl
封装新的日期/时间选取器
控件
afxdtctl.h CDBException afxdb.h CDBVariant afxdb.h CDC afxwin.h CDialog 用于包含
控件
窗口的对话框对象 afxwin.h CDialogBar afxext.h CDocItem afxole.h CDockState afxadv.h CDocObj
ect
Server afxdocob.h CDocObj
ect
ServerItem afxdocob.h CDocTemplate afxwin.h CDocument 用于管理程序的数据的类 afxwin.h CDragListBox Windows列表框,允许用户把其中的项拖放到不同的位置 afxcmn.h CDumpContext afx.h CDWordArray afxcoll.h CEdit 用于文本输入的子窗口
控件
afxwin.h CEditView 提供Windows编缉
控件
的功能。因为CEditView派生于Cedit,该对象可同文件和文件模板一同使用 afxext.h CEvent afxmt.h CException afx.h CFieldExchange afxdb.h CFile afx.h CFileDialog 通用文件对话框,提供Open和Save As对话框中的功能 afxdlgs.h CFileException afx.h CFileFind afx.h CFindReplaceDialog afxdlgs.h CFont afxwin.h CFontDialog 通用字体对话框,用于显示当前已装入系统的字体列表 afxdlgs.h CFontHolder afxctl.h CFormView 包含对话框
控件
的窗口 afxext.h CFrameWnd SDI(单窗口界面)框架窗口 afxwin.h CFtpConn
ect
ion afxinet.h CFtpFileFind afxinet.h CGdiObj
ect
afxwin.h CGopherConn
ect
ion afxinet.h CGopherFile afxinet.h CGopherFileFind afxinet.h CGophe
rL
ocator afxinet.h CHeaderCt
rl
标题通用
控件
afxcmn.h CHotKeyCt
rl
热键通用
控件
afxcmn.h CHtmlStream afxisapi.h CHtmlView 实现Web Browser
控件
的视图类,能够访问当地或Web上的HTML文件。 afxhtml.h CHttpConn
ect
ion afxinet.h CHttpFile afxinet.h CHttpFilter 创建并处理超文传输协议过滤器对象,该对象用于过滤用于HTTP请求的服务器通知 afxisapi.h CHttpFilterContext afxisapi.h CHttpServer Internet Server API(ISAPI)的包装类 afxisapi.h CHttpServerContext afxisapi.h CImageList afxcmn.h CInternetConn
ect
ion afxinet.h CInternetException afxinet.h CInternetFile afxinet.h CInternetSession afxinet.h CIPAddressCt
rl
IP地址
控件
。类似于编缉框,该
控件
接收Internet 协议格式的地址 afxcmn.h CList afxtempl.h CListBox 列表框对象 afxwin.h CListCt
rl
列表视通用
控件
afxcmn.h ClistView 简化CListCt
rl
的使用,添加了对文件和视图的支持 afxcview.h CLongBinary afxdb_.h CMap afxtempl.h CMapPtrToPtr afxcoll.h CMapPtrToWord afxcoll.h CMapStringToOb afxcoll.h CMapStringToPtr afxcoll.h CMapStringToString afxcoll.h CMapWordToOb afxcoll.h CMapWordToPtr afxcoll.h CMDIChildWnd MDI(多文档界面)子框架窗口 afxwin.h CMDIFrameWnd afxwin.h CMemFile afx.h CMemoryException afx.h CMemoryState CMenu afxwin.h CMetaFileDC afxext.h CMiniFrameWnd 半高的框架窗口,主要用于浮动工具栏。一个小框架窗口没有最小化和最大化按钮,但其他都类似于正常的框架窗口 afxwin.h CMonikerFile afxole.h CMonthCalCt
rl
月历
控件
,用于显示一个用户可选择日期的日历 afxdtctl.h CMultiDocTemplate afxwin.h CMultiLock afxmt.h CMutex afxmt.h CNotSupportedException afx.h CObArray afxcoll.h CObj
ect
afx.h CObList afxcoll.h COleBusyDialog afxodlgs.h COleChangeIconDialog afxodlgs.h COleChangeSourceDialog afxodlgs.h COleClientItem afxole.h COleCmdUI afxdocob.h COleControl afxctl.h COleControlModule afxctl.h COleConvertDialog afxodlgs.h COleCurrency afxdisp.h COleDataObj
ect
afxole.h COleDataSource afxole.h COle
DateTim
e afxdisp.h COle
DateTim
eSpan afxdisp.h COleDBRecordView afxoledb.h COleDialog afxodlgs.h COleDispatchDriver afxdisp.h COleDispatchException afxdisp.h COleDocObj
ect
Item afxole.h COleDocument 把一个文件看作为CDocItem对象的一个集合。包容器和服务器都需要这个结构,因为它们的文件必须能够包含OLE项 afxole.h COleDropSource afxole.h COleDropTarget afxole.h COleException afxdisp.h COleInsertDialog afxodlgs.h COleIPFrameWnd afxole.h COleLinkingDoc OLE包容器文件的基类,这些文件支持对它们所包含项的链接 afxole.h COleLinksDialog afxodlgs.h COleMessageFilter afxole.h COleObj
ect
Factory afxdisp.h COlePasteSpecialDialog afxodlgs.h COlePropertiesDialog afxodlgs.h COlePropertyPage afxctl.h COleResizeBar afxole.h COleSafeArray afxdisp.h COleServerDoc OLE服务器文件的基类 afxole.h COleServerItem 为OLE项提供一个服务器界面 afxole.h COleStreamFile afxole.h COleTemplateServer afxdisp.h COleUpdateDialog afxodlgs.h COleVariant afxdisp.h CPageSetupDialog afxdlgs.h CPaintDC afxwin.h CPalette afxwin.h CPen afxwin.h CPictureHolder afxctl.h CPoint atltypes.h CPrintDialog 通用打印对话框,提供Print和Print Setup对话框中的功能 afxdlgs.h CPrintInfo CProgressCt
rl
通用进程指示器
控件
afxcmn.h CPropertyPage 代表属性表单中的一页 afxdlgs.h CPropertyPageEx CPropertySheet 属性表,也叫做多选项卡对话框。一个属性表由一个CPropertySheet对象和几个CPropertyPage对象组成 afxdlgs.h CPropertySheetEx CPropExchange afxctl.h CPtrArray afxcoll.h CPt
rL
ist afxcoll.h CReBar afxext.h CReBarCt
rl
afxcmn.h CRecentFileList afxadv.h CRecordset 用于访问数据库表或查询的类 afxdb.h CRecordView 包含对话框
控件
的窗口 afxdb.h CR
ect
atltypes.h CR
ect
Tracker afxext.h CResourceException afxwin.h CRgn afxwin.h CRichEditCntrItem afxrich.h CRichEditCt
rl
用户能够输入和编缉文本的窗口,提供字符和程序段格式,以及对嵌入OLE项的支持 afxcmn.h CRichEditDoc afxrich.h CRichEditView afxrich.h CRuntimeClass CScrollBar 滚动条对象 afxwin.h CScrollView 可滚动的窗口,派生于CView afxwin.h CSemaphore afxmt.h CSharedFile afxadv.h CSingleDocTemplate afxwin.h CSingleLock afxmt.h CSize atltypes.h CSliderCt
rl
提供包含一个滑块和可选的刻度线的窗口 afxcmn.h CSocket Windows Socket API的包装类 afxsock.h CSocketFile afxsock.h CSpinButtonCt
rl
提供箭头按钮,用户可单击它,以增加或减少某个
控件
中的一个值 afxcmn.h CSplitterWnd afxext.h CStatic 用于标识另一个
控件
或给用户提供消息的简单文本框 afxwin.h CStatusBar afxext.h CStatusBarCt
rl
提供一个层次窗口,通常放于父窗口的底部,用于显示关于应用程序的状态信息 afxcmn.h CStdioFile afx.h CString afx.h CStringArray afxcoll.h CStringList afxcoll.h CSyncObj
ect
afxmt.h CTabCt
rl
允许应用程序在一个窗口或对话框的同一区域显示多个页面 afxcmn.h CTime afx.h CTimeSpan afx.h CToolBar afxext.h CToolBarCt
rl
工具栏通用
控件
afxcmn.h CToolTipCt
rl
提供工具提示
控件
的功能,它以一个小弹出窗口的样子显示,包含描述某个工具用途的一行文本 afxcmn.h CTre
eCt
rl
显示项的分层结构列表 afxcmn.h CTreeView 简化CTre
eCt
rl
的用法 afxcview.h CTypedPtrArray afxtempl.h CTypedPt
rL
ist afxtempl.h CTypedPtrMap afxtempl.h CUIntArray afxcoll.h CUserException afxwin.h CView 用于显示程序数据的类 afxwin.h CWaitCursor afxwin.h CWinApp afxwin.h CWindowDC afxwin.h CWinThread 代表一个应用程序中的一个线程 afxwin.h CWnd afxwin.h CWordArray afxcoll.h ......
MFC学习之
修改
设置
控件
字体显示和颜色参数
MFC
控件
是MFC类库中的一部分,提供了各种可视化界面元素,用于构建用户界面。以下是一些常见的MFC
控件
及其功能和属性设置:1、CButton(按钮):用于触发特定操作或执行选定动作的
控件
。可以设置文本、图像、样式等。2、CEdit(编辑框):用于接收和显示文本输入的
控件
。可以设置文本内容、大小、样式、限制输入等。3、CListCt
rl
(列表
控件
):用于以列表形式展示数据的
控件
。支持单列或多列数据,可以设置每列的数据类型、宽度、排序等。
MFC日期时间拾取
控件
和月历
控件
一、日期时间拾取
控件
C
DateTim
eCt
rl
1.属性值 Day States 将某一天的显示变为粗体 Multi Sel
ect
允许用户在
控件
中选择日期范围,否则只允许选择一个日期 No Today Circle 不用红色圈定今天的日期 No Today 在
控件
的下边不再显示今天的日期 Week Numbers 在
控件
的每行左边显示周数 2.基本操作 日期时间拾取
控件
可改变月历对
C
DateTim
eCt
rl
重载中的注意事项,以及边框的
修改
。
由于关于 C
DateTim
eCt
rl
的用法,在MSDN 和百度、谷歌上已经很多很多,这里就不在啰嗦 。 因为C
DateTim
eCt
rl
本身没有border 属性,所以不能像 其他
控件
那样直接,勾选掉,就能去掉边框。 而且重载的时候问题多多。 1. 如果想要改变 C
DateTim
eCt
rl
的边框 介绍一个函数, virtua
DateTim
ePicker
一、DTP
控件
和月历
控件
的风格及其设置 (1)DTP
控件
DTP
控件
的风格分别如下: DTS_APPCANPARSE 允许用户对输入消息进行必要的处理。 DTS_LONGDATEFORMAT 用长格式显示日期,如"1999年6月22日"。 DTS_RIGHTALIGN 下拉月历右对齐
控件
。 DTS_SHOWNONE 在
控件
中可能没有当
界面
15,979
社区成员
115,896
社区内容
发帖
与我相关
我的任务
界面
VC/MFC 界面
复制链接
扫一扫
分享
社区描述
VC/MFC 界面
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章