Welcome![Sign In][Sign Up]
Location:
Search - CFont mfc

Search list

[Windows DevelopmfcFont

Description: 学习MFC字体的代码。-learning MFC font code.
Platform: | Size: 26624 | Author: scarpel | Hits:

[EditBox改变窗口的背景和字体颜色

Description: 改变窗口控制的背景颜色和字体,cfont类-change the window control the background color and font, type cfont
Platform: | Size: 1349632 | Author: 二毛 | Hits:

[Button controllabel

Description: 一个可以改变static文本框字体、大小、颜色的类 enum FlashType {None, Text, Background } class CLabel : public CStatic { // Construction public: CLabel() CLabel& SetBkColor(COLORREF crBkgnd) CLabel& SetTextColor(COLORREF crText) CLabel& SetText(const CString& strText) CLabel& SetFontBold(BOOL bBold) CLabel& SetFontName(const CString& strFont) CLabel& SetFontUnderline(BOOL bSet) CLabel& SetFontItalic(BOOL bSet) CLabel& SetFontSize(int nSize) CLabel& SetSunken(BOOL bSet) CLabel& SetBorder(BOOL bSet) CLabel& FlashText(BOOL bActivate) CLabel& FlashBackground(BOOL bActivate) CLabel& SetLink(BOOL bLink) CLabel& SetLinkCursor(HCURSOR hCursor) // Attributes public: protected: void ReconstructFont() COLORREF m_crText HBRUSH m_hBrush HBRUSH m_hwndBrush LOGFONT m_lf CFont m_font CString m_strText BOOL m_bState BOOL m_bTimer BOOL m_bLink FlashType m_Type HCURSOR m_hCursor // Operations-A static text box can change the font, size, color, class enum FlashType (None, Text, Background) class CLabel: public CStatic (//Constructionpublic: CLabel () CLabel
Platform: | Size: 2048 | Author: sunrise | Hits:

[OtherMyNotepad

Description: 可以替代系统记事本的程序 首先建立基于类CEditView的单文档的工程Notepad,注意在MFC-AppWizard Step-4的Advanced中设定扩展名为txt。去掉工具栏(系统记事本里也没有),菜单按照系统的记事本来设计,并且ID用VC自带的设置,如“复制”ID为ID_EDIT_COPY。自己要加入字体的设置: 向CNotepadeView之中添加CFont类型的成员变量m_Font。为WM_CREATE消息添加映射函数。-System can replace Notepad procedures CEditView first category based on the works of a single document Notepad, attention in the MFC-AppWizard Step-4 in the Advanced settings extension txt. Remove the tool bar (system also does not Notepad), the menu system in accordance with the original design of the notebook, and bring ID with VC settings, such as " Copy" ID for ID_EDIT_COPY. Themselves to join the font settings: CNotepadeView in to add CFont member variable of type m_Font. Add WM_CREATE message for the mapping function.
Platform: | Size: 40960 | Author: 李建 | Hits:

[Othermfc

Description: 通讯录管理系统[经验]通讯录管理系统 - VC.NET论坛 - 编程论坛 8条回复 - 发帖时间: 2005年5月9日 利用MFC连接数据库有很多方法,选择一个比较适中的方法——利用MFC的ODBC类来制作通讯录管理系统。建立对话框应用程序,为其添加菜单实现登陆和密码修改功能,添加MFC-CDialog CString MessageBeep CWnd LoadIcon CDataExchange CWinApp CPoint CDC GetObject CreateFontIndirect SelectObject SetTextColor SetBkMode GetStockObject GetWindowText GetDlgCtrlID LoadString LoadCursor LoadLibrary CopyCursor FreeLibrary SetCursor DrawFocusRect GetParent CRect GetWindowRect CClientDC CFont SetRectEmpty DrawText ClientToScreen InflateRect ScreenToClient GetClientRect CSize GetSystemMetrics GetDlgItem CStatic FindResource LoadResource FreeResource SetWindowText IsIconic CPaintDC SendMessage DrawIcon
Platform: | Size: 3524608 | Author: 王婷 | Hits:

CodeBus www.codebus.net