会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Testudo
每天要进步一点点。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
23
24
25
26
27
28
29
30
31
···
49
下一页
2013年6月29日
转换 TColor 到 HTML 颜色串
摘要: //转换 TColor 到 HTML 颜色串 function ColorToHtml(color:TColor):string; var RgbColor : TColorRef; begin RgbColor := ColorToRGB(color); Result:=Format('#%.2x
阅读全文
posted @ 2013-06-29 12:28 XE2011
阅读(279)
评论(0)
推荐(0)
2013年6月22日
Delphi QQ表情的实现
摘要: Delphi QQ表情的实现QQ表情描述蓝框提示信息鼠标在这个表情上面 这个表情才动可以增加表情表情打包单击这个表情插入表情 关闭本窗体 主要使用Webbrowsr来实现的--------------------------------------------------------------------------------//调用过程unit Unit1;interfaceusesWinapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,Vcl.Cont
阅读全文
posted @ 2013-06-22 12:39 XE2011
阅读(624)
评论(0)
推荐(0)
2013年6月19日
Delphi TWebBrowser
摘要: Delphi WebBrowser控件的使用 WebBrowser控件属性:1、Application 如果该对象有效,则返回掌管WebBrowser控件的应用程序实现的自动化对象(IDispatch)。如果在宿主对象中自动化对象无效,程序将返回WebBrowser控件的自动化对象2、Parent
阅读全文
posted @ 2013-06-19 20:15 XE2011
阅读(4003)
评论(4)
推荐(1)
具有不同字体的列表框
摘要: 在一个 LISTBOX 中显示所见所得字体 这个方法设置Combobox同样有效ComboboxFont具有不同字体的列表框unit Unit1;interfaceusesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, StdCtrls, ComCtrls, ExtCtrls;ty...
阅读全文
posted @ 2013-06-19 20:13 XE2011
阅读(241)
评论(0)
推荐(0)
2013年4月30日
Comments
摘要: Comments关键点实现过程 //thisisaText /*thisisaText*/ /* thisisaText thisisaText thisisaText thisisaText */ 图备注在程序变得更复杂之前,我们应该明白C...
阅读全文
posted @ 2013-04-30 11:51 XE2011
阅读(146)
评论(0)
推荐(0)
Input Output
摘要: Standard Input and Output Objects关键点std::cerrstd::cinstd::coutstd::clog 实现过程 #include<iostream> intmain() { std::cout<<"Entertwonumbers:"<<std::endl; intv1,v2; ...
阅读全文
posted @ 2013-04-30 11:50 XE2011
阅读(139)
评论(0)
推荐(0)
2013年4月28日
do-while
摘要: do-while do{ 语句; }while( 布尔类型的表达示 ); 注: do - while循环 是 先执行一次循环体,再来判断条件是否成立 do-while 说明: 1 代码...
阅读全文
posted @ 2013-04-28 15:32 XE2011
阅读(176)
评论(0)
推荐(0)
替换字符串
摘要: Code::替换掉指定字符串 CString::Replace() voidCXxDlg::OnButton1() { CStrings="hello.cpp"; s.Replace(".cpp",""); MessageBox(s); } 效果图: ...
阅读全文
posted @ 2013-04-28 12:28 XE2011
阅读(200)
评论(0)
推荐(0)
多字节、Unicode和UTF8字符串的互换
摘要: .实现过程. #include"stdafx.h" #include<windows.h> #include<iostream> #include<string> usingnamespacestd; stringUnicode2Ascii(wstringwstrsrc); w...
阅读全文
posted @ 2013-04-28 12:28 XE2011
阅读(389)
评论(0)
推荐(0)
显示多行字符串
摘要: .在C++中显示多行字符串关键点.实现过程. CStringstr1="ABCD\r\n""HIKHJJH" "1234\r\n" "XYZ\n" "HELLO"; MessageBox(str1); ..图.备注.这里没有使用链接符号相关链接相关链接相关链接 .来自为知笔记(Wiz)Time=2012-11-27 14:14:...
阅读全文
posted @ 2013-04-28 12:28 XE2011
阅读(204)
评论(0)
推荐(0)
2013年2月23日
RemoveDirectoryB
摘要: 删除非空文件夹实现过程 voidRemoveDir(CStringszPath) { CFileFindff; if(szPath.Right(1)!="\\")//目录的最右边需要“\”字符 szPath+="\\"; szPath+="*.*"; BOOLres...
阅读全文
posted @ 2013-02-23 18:57 XE2011
阅读(153)
评论(0)
推荐(0)
ShellExecute
摘要: ShellExecutePerformsanoperationonaspecifiedfile.HINSTANCEShellExecute(HWNDhwnd,LPCTSTRlpVerb,LPCTSTRlpFile,LPCTSTRlpParameters,LPCTSTRlpDirectory,INTnShowCmd); ID lpVerb ...
阅读全文
posted @ 2013-02-23 18:56 XE2011
阅读(376)
评论(0)
推荐(0)
获取系统的相关文件夹
摘要: 获取系统的相关文件夹SHGetSpecialFolderPathRetrievesthepathofaspecialfolder,identifiedbyitsCSIDL.BOOLSHGetSpecialFolderPath(HWNDhwndOwner,LPTSTRlpszPath,intnFolder,BOOLfCreate);#define CSIDL_WINDOWS 36#define CS...
阅读全文
posted @ 2013-02-23 18:56 XE2011
阅读(288)
评论(0)
推荐(0)
DLL 实际应用版本
摘要: DLL 实际应用版本关键点使用了1个 .cpp文件使用了1个 .h文件实现过程DLL的 .CPP文件 #include"project01.h" #definefunction_declspec(dllexport) intadd(intx,inty) { returnx+y; } ...
阅读全文
posted @ 2013-02-23 18:53 XE2011
阅读(135)
评论(0)
推荐(0)
MFC DLL的创建
摘要: MFC DLL的创建关键点实现过程1.创建1个 MFC AppWizard(dll),Project name:project01 2.选中 Regular DLL using shared MFC DLL.单击Finished完成。3.在project01.cpp中加入自定义的函数,代码如下 1 2 //project01.cpp:Definestheinitiali...
阅读全文
posted @ 2013-02-23 18:53 XE2011
阅读(247)
评论(0)
推荐(0)
上一页
1
···
23
24
25
26
27
28
29
30
31
···
49
下一页
公告