11 2021 档案
摘要:鼠标&定时器&菜单 // 鼠标消息 - 窗口绘制 - 窗口拖动重影 // WinMouse.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "stdio.h" HINSTANCE g
阅读全文
摘要:/*窗口注册*/ // 系统全局窗口类 - BUTTON #include <windows.h> HINSTANCE g_hInst = NULL; /* 窗口类分为下面3种: 系统全局窗口类; 应用程序全局窗口类; 局部窗口类; 1.WinMain入口函数 2.窗口过程处理函数 3.注册窗口 4
阅读全文
摘要:完美一点 #include <windows.h> HINSTANCE g_hInst = NULL; //2. 定义窗口处理函数 LRESULT CALLBACK WndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam ) { swi
阅读全文
摘要:Windows程序设计相关参数理解 WinMain入口函数 int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) 窗口回调函数(消息处理函数) LRESULT
阅读全文