当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 看过几篇关于VC和Delphi比较的文章,自己也有心写写代码试试,我在VC6下新建了一个工程,叫WinTest。
 

 

    摘要: 在delphi中的datagrid怎样使它显示的行间隔改变颜色?就向.net中同名控件一样。 --------------------------------------------------------------- 好像是在 ondrawdatacell 事件中写代码。 ------------------------------------------------------------......
 ·delphi单元测试工具dunit介绍    »显示摘要«
    摘要: delphi单元测试工具dunit介绍 dunit基本介绍 dunit是xunit家族中的一员,用于dephi的单元测试。是extreme programming测试实现xtreme testing的一种工具。dunit是一个free的测试工具,没有代码覆盖率功能。 dunit的官方web site 是https://sourceforge.net/projects/dunit/......


比较VC和Delphi的WinTest工程

看过几篇关于vc与delphi比较的文章,自己也有心写写代码试试,我在vc6下新建了一个工程,叫wintest.代码如下:

【程序编程相关:利用Delphi和金山词霸制作批量单词翻

【推荐阅读:ASC II 完整码表及简介

#include <windows.h> 【扩展信息:Delphi2005学习笔记4——再谈N

hwnd hwndbutton;

int cx, cy;

lresult callback mainwndproc (hwnd hwindow, uint nmsg, wparam wprm, lparam lprm)

{

 hdc dc;

 paintstruct ps;

 rect rc;

 switch (nmsg)

 {

  case wm_create:

  {

   textmetric tm;

   dc = getdc (hwindow);

   selectobject (dc, getstockobject (system_fixed_font));

   gettextmetrics (dc, &tm);

   cx = tm.tmavecharwidth * 30;

   cy = (tm.tmheight + tm.tmexternalleading) * 2;

   releasedc (hwindow, dc);

   hwndbutton = createwindow (

     "button",

     "click here",

     ws_child | ws_visible | bs_pushbutton,

     0, 0, cx, cy,

     hwindow,

     (hmenu) 1,

     ((lpcreatestruct) lprm)->hinstance,

     null

     );

   return 0;

   break;

  }


...   下一页
    摘要: (*----下面这个程序介绍了我们在使用线程及未使用线程二种情况下,运行该程序的反应。当点usedthread按钮时,则建立一个线程,这时我们可以在程序进行计算的同时,改变窗体的尺寸及移动它。当按下nousedthread按钮时,不建立线程,我们会发现在程序没有计算完之前根本不能做其它任何事情! unit unit1; interface uses windows, messages, s......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE