⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_38794.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:38794 发表者:Aaron0314 发表日期:2003-05-06 10:28:54
<br>主题:请问如何得到字体对话框CFontDialog中用户选取后返回的字体?
<br>内容:&nbsp;&nbsp;&nbsp;&nbsp;CFontDialog dlg;<BR>&nbsp;&nbsp;&nbsp;&nbsp;if (dlg.DoModal() == IDOK)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.....<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:微笑的撒旦 回复日期:2003-05-06 10:34:49
<br>内容:GetCurrentFont
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:Aaron0314 回复日期:2003-05-06 13:21:25
<br>内容:具体怎么写?<BR>我用下面的方法不行啊<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CFont *pFont;<BR>&nbsp;&nbsp;&nbsp;&nbsp;CFontDialog dlg;<BR>&nbsp;&nbsp;&nbsp;&nbsp;LOGFONT lf;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;if (dlg.DoModal() == IDOK)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dlg.GetCurrentFont(&amp;lf);&nbsp;&nbsp;&nbsp;&nbsp;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;pFont-&gt;CreateFontIndirect(&amp;lf);<BR>&nbsp;&nbsp;&nbsp;&nbsp;m_RichEdit.SetFont(pFont);&nbsp;&nbsp;&nbsp;&nbsp;//一个RichEdit控件<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:Aaron0314 回复日期:2003-05-06 17:13:19
<br>内容:顶。。。。。。。。
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:林建华 回复日期:2003-05-06 18:20:00
<br>内容:CFont *pFont = new CFont;<BR>&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:Aaron0314 回复日期:2003-05-07 08:59:39
<br>内容:^_^!<BR><BR>不好意思,见笑了。
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -