登录
首页 » C/C++ » 编辑框的简单自绘制

编辑框的简单自绘制

于 2020-06-16 发布 文件大小:735KB
0 117
下载积分: 1 下载次数: 1

代码说明:

  编辑框是常用控件之一,同时也是一种完全自实现较为繁琐的控件。本例实现了对编辑框的简单的自绘制,在保留其自身的强大功能的前提下,实现了编辑框的边框、背景、文字颜色以及禁用态的各种颜色的替换。 要想重绘,我们必须知道要绘什么。通过观察默认的编辑框我们可以很清楚的看到编辑框有三个最基础的部分需要我们绘制,他们分别是3D边框、背景和文字,再进一步分析我们会发现他们是一个基本窗口的两个部分,即客户区和非客户区。这样一来我们就知道应该用什么函数有针对性的绘制什么区域了,由于提供了源码,这里仅就基本原理和技术细节加以讨论,不过多地罗列代码。(Editor box is one of the common controls, and it is also a kind of control which is completely self-realization and tedious. This example realizes the simple self-drawing of the edit box, and realizes the replacement of the border, background, text color and various colors of the disabled state of the edit box while retaining its powerful function. To redraw, we must know what to draw. By observing the default edit box, we can clearly see that there are three most basic parts of the edit box that we need to draw. They are 3D border, background and text. Further analysis shows that they are two parts of a basic window, namely, client area and non-client area. In this way, we know which function should be used to draw which area. Since the source code is provided,)

文件列表:

lordpedeluxe\16Edit.DLL, 36864 , 2002-08-19
lordpedeluxe\docs\EndOfCommerce.tXt, 842 , 2002-03-21
lordpedeluxe\docs\History.tXt, 5228 , 2002-08-13
lordpedeluxe\docs\LDE.tXt, 2362 , 2002-08-12
lordpedeluxe\docs\LDS.tXt, 5169 , 2002-03-21
lordpedeluxe\docs\License.tXt, 398 , 2001-04-26
lordpedeluxe\docs\LordPE.tXt, 6883 , 2002-08-13
lordpedeluxe\docs\ToDo.tXt, 15 , 2002-08-08
lordpedeluxe\LDE\armadmp.lde, 1706 , 2003-10-21
lordpedeluxe\LDE\IntelliDump.LDE, 3584 , 2002-08-12
lordpedeluxe\LDE\LDELoad.log, 168 , 2010-12-22
lordpedeluxe\LDS_Clients\CoolDump1.4\Cooldump.exe, 25959 , 2002-08-07
lordpedeluxe\LDS_Clients\CoolDump1.4\File_id.diz, 430 , 2002-08-07
lordpedeluxe\LDS_Clients\CoolDump1.4\Genoep.dll, 3350 , 2002-08-02
lordpedeluxe\LDS_Clients\CoolDump1.4\Ug2002.nfo, 9167 , 2002-08-07
lordpedeluxe\LordPE.EXE, 208896 , 2002-08-13
lordpedeluxe\LordPE.iNi, 791 , 2010-12-22
lordpedeluxe\LordPE_fix.EXE, 208896 , 2005-10-14
lordpedeluxe\LordPlug.dll, 49152 , 2005-10-14
lordpedeluxe\LordPlug.dll_src\LordPlug.cpp, 14532 , 2005-10-14
lordpedeluxe\LordPlug.dll_src\LordPlug.def, 116 , 2005-10-14
lordpedeluxe\LordPlug.dll_src\LordPlug.dsp, 4248 , 2005-10-09
lordpedeluxe\LordPlug.dll_src\LordPlug.dsw, 541 , 2005-10-09
lordpedeluxe\Misc\16Edit.DLL, 36864 , 2002-08-19
lordpedeluxe\Misc\16Edit.exe, 2048 , 2002-02-05
lordpedeluxe\Misc\16Edit.tXt, 916 , 2002-02-05
lordpedeluxe\Misc\LordElf.exe, 17920 , 2002-03-24
lordpedeluxe\Misc\LordElf.tXt, 1502 , 2002-03-24
lordpedeluxe\Misc\MetaPuck.exe, 94208 , 2002-08-20
lordpedeluxe\Misc\MetaPuck.tXt, 2115 , 2002-05-19
lordpedeluxe\Misc\PESnoop.exe, 20992 , 2002-04-06
lordpedeluxe\Misc\PESnoop.tXt, 2894 , 2002-04-06
lordpedeluxe\Misc\RunKMD.exe, 3584 , 2001-06-22
lordpedeluxe\Misc\RunKMD.tXt, 750 , 2001-06-22
lordpedeluxe\Misc\RunVxD.exe, 2560 , 2001-06-28
lordpedeluxe\Misc\RunVxD.tXt, 547 , 2001-06-28
lordpedeluxe\Misc\SoftSnoop\ApiDef\Kernel32.ss, 655 , 2001-03-12
lordpedeluxe\Misc\SoftSnoop\ApiDef\SS.TXT, 1338 , 2001-02-02
lordpedeluxe\Misc\SoftSnoop\ApiDef\User32.ss, 534 , 2001-01-20
lordpedeluxe\Misc\SoftSnoop\APISnoop.dll, 4608 , 2001-03-12
lordpedeluxe\Misc\SoftSnoop\ForceLibrary.dll, 10240 , 2001-03-02
lordpedeluxe\Misc\SoftSnoop\Plugins\HelloWorld.dll, 2560 , 2001-02-01
lordpedeluxe\Misc\SoftSnoop\Plugins\MsgHook.dll, 3584 , 2001-02-01
lordpedeluxe\Misc\SoftSnoop\Plugins\PluginExp3.dll, 6656 , 2001-02-01
lordpedeluxe\Misc\SoftSnoop\Plugins\TestMe.exe, 1536 , 2001-02-02
lordpedeluxe\Misc\SoftSnoop\SoftSnoop.exe, 76800 , 2002-08-20
lordpedeluxe\Misc\SoftSnoop\SoftSnoop.tXt, 2954 , 2001-03-15
lordpedeluxe\Misc\yPER.exe, 3642 , 2001-05-01
lordpedeluxe\Misc\yPER.tXt, 354 , 2001-05-01
lordpedeluxe\PROCS.DLL, 8704 , 2002-03-24
lordpedeluxe\PSAPI.DLL, 28944 , 1999-12-10
lordpedeluxe\ReadMe.txt, 682 , 2005-10-15
lordpedeluxe\REALIGN.DLL, 7680 , 2002-03-24
lordpedeluxe\RunLDS.BAT, 28 , 2002-03-30
lordpedeluxe\SDK\16Edit\16Edit.cs, 5445 , 2002-04-29
lordpedeluxe\SDK\16Edit\16Edit.def, 105 , 2002-02-06
lordpedeluxe\SDK\16Edit\16EditDll.bas, 3652 , 2002-02-07
lordpedeluxe\SDK\16Edit\16EditDll.h, 3563 , 2002-02-06
lordpedeluxe\SDK\16Edit\16EditDll.INC, 3880 , 2002-02-06
lordpedeluxe\SDK\16Edit\APIs.tXt, 9158 , 2002-02-05
lordpedeluxe\SDK\16Edit\B_16Edit.lib, 1024 , 2002-02-06
lordpedeluxe\SDK\16Edit\HEditDll.pas, 3933 , 2002-02-06
lordpedeluxe\SDK\16Edit\MS_16Edit.lib, 2474 , 2002-02-05
lordpedeluxe\SDK\16Edit\TOC.tXt, 258 , 2002-04-29
lordpedeluxe\SDK\LordPE\LDE\IntelliDump\IntelliDump.c, 4811 , 2002-08-12
lordpedeluxe\SDK\LordPE\LDE\IntelliDump\IntelliDump.DEF, 124 , 2002-08-09
lordpedeluxe\SDK\LordPE\LDE\IntelliDump\IntelliDump.dsp, 4496 , 2002-08-09
lordpedeluxe\SDK\LordPE\LDE\IntelliDump\IntelliDump.mak, 4898 , 2002-08-13
lordpedeluxe\SDK\LordPE\LDE\LDE.tXt, 2362 , 2002-08-12
lordpedeluxe\SDK\LordPE\LDS\Examples\ASM\LDS_LoadDump.bat, 7412 , 2002-02-23
lordpedeluxe\SDK\LordPE\LDS\Examples\C\Plugin.c, 5362 , 2002-02-20
lordpedeluxe\SDK\LordPE\LDS\Examples\C\Plugin.dsp, 4195 , 2002-02-20
lordpedeluxe\SDK\LordPE\LDS\Examples\C\Plugin.mak, 4759 , 2002-08-13
lordpedeluxe\SDK\LordPE\LDS\Examples\C\resource.h, 499 , 2002-02-20
lordpedeluxe\SDK\LordPE\LDS\Examples\C\rsrc.rc, 2374 , 2002-02-20
lordpedeluxe\SDK\LordPE\LDS\Examples\CallModMem.EXE, 42856 , 2002-08-05
lordpedeluxe\SDK\LordPE\LDS\Examples\CS\App.ico, 1078 , 2002-05-24
lordpedeluxe\SDK\LordPE\LDS\Examples\CS\AssemblyInfo.cs, 2426 , 2002-05-24
lordpedeluxe\SDK\LordPE\LDS\Examples\CS\Form1.cs, 5185 , 2002-05-25
lordpedeluxe\SDK\LordPE\LDS\Examples\CS\Form1.resx, 5315 , 2002-05-25
lordpedeluxe\SDK\LordPE\LDS\Examples\CS\LDSChat.csproj, 4693 , 2002-05-25
lordpedeluxe\SDK\LordPE\LDS\Examples\CS\LDSChat.csproj.user, 1772 , 2002-05-25
lordpedeluxe\SDK\LordPE\LDS\Examples\CS\LDSChat.sln, 910 , 2002-05-24
lordpedeluxe\SDK\LordPE\LDS\Examples\Delphi\FindLDSAndLaunch4Delphi.dpr, 1217 , 2002-08-07
lordpedeluxe\SDK\LordPE\LDS\Examples\Delphi\LDS_DmpTst.dpr, 2999 , 2002-06-28
lordpedeluxe\SDK\LordPE\LDS\Examples\Delphi\LDS_VerPid.dpr, 2556 , 2002-02-23
lordpedeluxe\SDK\LordPE\LDS\Examples\LDSChat.exe, 13312 , 2002-05-25
lordpedeluxe\SDK\LordPE\LDS\Examples\LDS_DmpTst.exe, 39936 , 2002-06-28
lordpedeluxe\SDK\LordPE\LDS\Examples\LDS_LoadDump.exe, 2560 , 2002-02-23
lordpedeluxe\SDK\LordPE\LDS\Examples\LDS_TaskViewer.exe, 3584 , 2002-02-21
lordpedeluxe\SDK\LordPE\LDS\Examples\LDS_VerPid.exe, 39936 , 2002-02-23
lordpedeluxe\SDK\LordPE\LDS\INC\LDS.bas, 6920 , 2002-03-24
lordpedeluxe\SDK\LordPE\LDS\INC\LDS.cs, 12504 , 2002-05-25
lordpedeluxe\SDK\LordPE\LDS\INC\LDS.h, 6973 , 2002-03-24
lordpedeluxe\SDK\LordPE\LDS\INC\LDS.INC, 8224 , 2002-03-24
lordpedeluxe\SDK\LordPE\LDS\INC\LDS.ni, 7084 , 2002-03-24
lordpedeluxe\SDK\LordPE\LDS\INC\LDS.pas, 7531 , 2002-03-24
lordpedeluxe\SDK\LordPE\LDS\LDS.tXt, 5169 , 2002-03-21
lordpedeluxe\SDK\procsDLL\examples\EXP1Out.BAT, 26 , 2001-01-25
lordpedeluxe\SDK\procsDLL\examples\useprocs1\CONSOLE.INC, 1985 , 2001-01-25

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 104269会员总数
  • 42今日下载