新建一个空窗体项目,然后运行,此时首先运行:procedure TApplication.Run;begin FRunning := True; try AddExitProc(DoneApplication); if FMainForm nil then begin ... Read More
posted @ 2014-11-28 19:15 findumars Views(996) Comments(0) Diggs(0)
VCL设计方法概论 1. 把Delphi对象改造成一个Windows窗口,主要是要设置Handle和回调函数。在创建一个Windows窗口后,将其句柄赋值给Delphi对象的属性,这个并不难,相当于从此以后这个Delphi控件(或称内存对象)代表了这个Windows窗口,准确的说是包含了这个Wind Read More
posted @ 2014-11-28 17:29 findumars Views(754) Comments(0) Diggs(2)
Form1上放两个按钮Button1和Button2,默认输入焦点是Button1,现在点击Button2,产生WM_LBUTTONDOWN消息procedure TForm1.Button2MouseDown(Sender: TObject; Button: TMouseButton; Shift... Read More
posted @ 2014-11-28 05:43 findumars Views(1019) Comments(0) Diggs(0)
以下因素都有影响:1. QT4与QT5对字符串编码的处理不同(最好不要在源代码里直接写中文,坑更多)2. QTextCodec自动对编码转换的影响3. 源代码文件对编码存储格式的不同会影响编译器对字符串的理解4. 不同版本编译器对源代码文件的理解不同,比如VC6和VC2005的不同,比如VS2010... Read More
posted @ 2014-11-27 18:52 findumars Views(2090) Comments(0) Diggs(0)
今天在网上看到了一篇写得非常好的文章,是有关c++类继承内存布局的。看了之后获益良多,现在转在我自己的博客里面,作为以后复习之用。——谈VC++对象模型(美)简.格雷程化 译译者前言一个C++程序员,想要进一步提升技术水平的话,应该多了解一些语言的语意细节。对于使用VC++的程序员来说,还应该了解一... Read More
posted @ 2014-11-27 18:17 findumars Views(1165) Comments(0) Diggs(0)