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

📄 flatedit.shtml.htm

📁 一套比较全的编辑框控制教程。。。附源代码。
💻 HTM
字号:
<html>

<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="author" content="zafir anjum">
<title>edit controls - table of contents</title>
<meta name="description" content="source code for various windows controls">
<meta name="keywords" content="mfc source code edit controls">
</head>

<body background="../di2001.jpg"
tppabs="http://www.codeguru.com/fancyhome/back.gif" bgcolor="#ffffff">
<!-- article title -->

<h3 align="center"><font color="#aoao99">cflatedit </font></h3>

<hr align="center">
<!-- author and contact details -->

<p>this article was contributed by <a href="mailto:fattkatt@netacc.net">jason coene</a>. <!-- sample image - gif or jpg --> </p>

<p><img src="flatedit1.gif" tppabs="http://www.codeguru.com/editctrl/flatedit1.gif"
width="244" height="61"> <img src="flatedit2.gif"
tppabs="http://www.codeguru.com/editctrl/flatedit2.gif" width="245" height="113"> <!-- sample image and source code/demo project --> </p>

<p>download the <a href="flatedit.zip"
tppabs="http://www.codeguru.com/editctrl/flatedit.zip">source</a></p>
<!-- the article... -->

<p>this took about 20 minutes to create. i saw kirk stowell's cflatcombobox class and
decided it needed a similar edit control i actually made the code look similar to kirks to
keep things simple if you need to edit the code in both classes for your purpose </p>

<p>pretty neat looking edit control actually, i wonder why i never saw this sooner </p>

<h4>information</h4>

<p>to use this class : </p>

<p>create a new class member of type cflatedit for an edit control in your dialog make
sure to have #include &quot;flatedit.h&quot; at the top of that dialogs .h file thats it! </p>

<p>note: for best appearance, under the properties for your edit control, deselect
'border' and select 'static edge' </p>

<p>for the cflatedit class to appear in the new member variable dialog for an edit
control, you must rebuild the class information you can do this by deleting the .clw file
in your project directory. when you go into class wizard, it will ask you to rebuild your
class info from files. </p>

<p>select all the c, cpp, and h files in that directory and add them all </p>

<p>you can change the m_bdrawgripper and m_bdrawseperator values to true to use the
seperator and gripper features. you can also set the left edit margin using setindent(int)
</p>

<p>and one more kewl feature: use m_bflatstyle to change the style. if its true (default),
it will draw the control as a typical flat control. if its false, it will be drawn with a
thick black border (like that around a flat checkbox) <!-- remember to update this --> </p>

<p>last updated: 17 october 1998 <!--comments--> </p>
</body>
</html>

⌨️ 快捷键说明

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