随笔分类 - Winsows程序设计
学习经典版Windows API
摘要:7、 1 鼠标 // 7-1-鼠标.cpp : 定义应用程序的入口点。 // #include "framework.h" #include "7-1-鼠标.h" #define MAX_LOADSTRING 100 #define MAXPOINTS 1000 // 全局变量: HINSTANCE
阅读全文
摘要:6、 1 键盘消息 // 4_4_例子Sysmets.cpp : 定义应用程序的入口点。 // #include "pch.h" #include "framework.h" #include "4_4_例子Sysmets.h" #include "data.h" #define MAX_LOADS
阅读全文
摘要:5、1 设定像素 设定像素一般用四个字节,最高位省略不用。 // 5-1-PWCP_设定像素_颜色.cpp : 定义应用程序的入口点。 // #include "framework.h" #include "5-1-PWCP_设定像素_颜色.h" #define MAX_LOADSTRING 100
阅读全文
摘要:4、1 字符输出 4-1 程序 循环输出界面界面 // 4-1_文本输出.cpp : 定义应用程序的入口点。 // #include "pch.h" #include "framework.h" #include "4-1_文本输出.h" #define MAX_LOADSTRING 100 #de
阅读全文
摘要:窗口与消息 1、windows编程模型。 程序1-1 #include <windows.h> //窗口过程回调函数 H是Handler的简写,句柄 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); //第二种写法 //LONG WINAPI
阅读全文
摘要:Unicode字符集和ASCII码字符集 下面是代码示例: ASCII码字符集 Unicode字符集 通用版本字符集 程序1 #include <stdio.h> #include <stdlib.h> #include <wchar.h> #include <locale.h> #include
阅读全文
摘要:Windows程序设计五-第一个窗口 Visual Studio 2017 C语言实现 参考书籍 [Windows程序设计(第5版,珍藏版)].Charles.Petzold.扫描版 //标准的C语言程序 //#include <stdio.h> //main() //int main() //in
阅读全文

浙公网安备 33010602011771号