首页 > TAG信息列表 > MyWndClass

Windows 编程[6] - 学习窗体生成的过程六: 最终的代码!

Windows 编程[6] - 学习窗体生成的过程六: 最终的代码! program Project1; uses Windows, Messages; {回调函数; 其中要处理的消息很多, 最好用 case 语句} function WndProc(wnd: HWND; msg: UINT; wParam: Integer; lParam: Integer): Integer; stdcall; begin Resu

Windows 编程[5] - 学习窗体生成的过程五

Windows 编程[5] - 学习窗体生成的过程五 根据前面的介绍, 可以完成一个窗口的建立了:program Project1; uses Windows, Messages; {窗口回调函数, 必须声明在使用它的程序前面} function WndProc(wnd: HWND; msg: UINT; wParam: Integer; lParam: Integer): Integer; s

Windows 编程[1] - 窗体生成的过程一

Windows 编程[1] - 窗体生成的过程一 本例效果图: 新建一个控制台程序, 贴入下面代码即可运行:program Project1; uses Windows, Messages; {等待调用的过程, 用于在窗体上绘制文本} Procedure OnPaint(h: HDC); const s = 'CodeGear Delphi 2007'; begin TextOut(