上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 49 下一页
摘要: //转换 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)
摘要: 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)
摘要: 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)
摘要: Comments关键点实现过程 //thisisaText /*thisisaText*/ /* thisisaText thisisaText thisisaText thisisaText */ 图备注在程序变得更复杂之前,我们应该明白C... 阅读全文
posted @ 2013-04-30 11:51 XE2011 阅读(146) 评论(0) 推荐(0)
摘要: 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)
摘要: 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)
摘要: .实现过程. #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)
摘要: 删除非空文件夹实现过程 voidRemoveDir(CStringszPath) { CFileFindff; if(szPath.Right(1)!="\\")//目录的最右边需要“\”字符 szPath+="\\"; szPath+="*.*"; BOOLres... 阅读全文
posted @ 2013-02-23 18:57 XE2011 阅读(153) 评论(0) 推荐(0)
摘要: 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 实际应用版本关键点使用了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的创建关键点实现过程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 下一页