Windows编程基础--窗体篇   现在Windows已经成为世界上使用最广泛的操作系统,这使得学习Windows编程变得十分重要.和学习其他 编程语言一样,我们也从一个最简单的例子开始学习Windows编程.这个例子将建立一个Windows窗体并在窗体中间显示"HELLO"字符串(见图1).      1.程序的开始和结束 和C语言中的main()函数一样,Windows程序是从WinMain()函数开始和结束的.WinMain()函数是在WINBASE.H中定义的,其原形如下:    int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd ) 其中第一个参数(HINSTANCE hInstance)是程序的实例句柄,这个实例句柄是程序的唯一标识.第二个参数(HINSTANCE hPrevInstance)是用做检查是否有多个程序实例运行,但由于Windows9X和NT(包括更高版本)是32位操作系统,所以这个参数总是NULL.第三个参数(LPSTR lpCmdLine)是一个指向字符串的指针,用来保存运行程序时的命令行参数.第四个参数(int nShowCmd)用来指?Windows based programming -- Windows Forms chapter now has become the worlds most widely used operating system, which makes learning Windows programming has become very important. , And other programming languages, we are also a very simple example start learning Windows programming. This example will establish a WinForms and intermediate forms show "Hello" string (see figure 1). 1. The process begins and ends and the C language main () function, Windows programs from WinMain () function beginning and ending. WinMain () function is defined in WINBASE.H, its prototype is as follows : int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd), the first of which parameters (HINSTANCE hInstance) are examples of procedures handle, the handle 下载
文件夹传送 月份生成器 spring pet store 源代码下载 ping script 93c46 c51程序 ani339 usb to serial 驱动 xp optimization toolbox 下载 c socket 例子 水晶报表 制作 pku解题报告下载 ddc协议下载 c语言uart程序 最小二乘法 计算方法 queue source code 下载 ucgui vc 接元宝 flash 下载 源码 ad7738 程序 bch校验源程序 lpc2129 spi origin 画圆 ts码流分析工具 应用19264液晶 linux下usb驱动程序开发 display data channel command interface htk 中文 php可视化编辑代码 c socket编程tcp matlab pattern vc 6.0界面设计 用ip查计算机名 pmsm 电机 约束优化问题程序 zip unix 解压 linux内核驱动模块编程指南 下载 aduc7020 sgip java arm9 文件系统 usb d12 pdf 93c46烧写程序 fractal源代码 rdp 协议 c 编程风格 24c02读写程序c语言 pdiusbd12 51程序 pt6312程序 vc mo 小程序源代码 directx 视频捕获 at指令 编程原代码