码迷,mamicode.com
首页 >  
搜索关键字:wndproc    ( 157个结果
GDI 线段绘制示例程序
1 #include 2 #include 3 #include 4 5 typedef struct tagLINE { 6 POINT ptStart; 7 POINT ptEnd; 8 }LINE; 9 10 LRESULT CALLBACK WndProc(HWND hwnd, UINT m... ...
分类:其他好文   时间:2018-05-30 15:40:59    阅读次数:156
第八章 计时器(DIGCLOCK)
1 /* 2 DIGCLOCK.C -- Digital Clock 3 (c) Charles Petzold, 1998 4 */ 5 6 #include <Windows.h> 7 8 #define ID_TIMER 1 9 10 LRESULT CALLBACK WndProc(HWND ...
分类:其他好文   时间:2018-05-18 18:04:40    阅读次数:225
windows 初体验
#include <windows.h> LRESULT CALLBACK wndProc(HWND, UINT, WPARAM, LPARAM); int WINAPI WinMain1(HINSTANCE hInst, HINSTANCE, LPSTR szCmd, int nShow){ WN ...
分类:Windows程序   时间:2018-04-04 21:10:38    阅读次数:244
学习windows编程 day6 之处理鼠标移动
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam){ HDC hdc; PAINTSTRUCT ps; RECT rect; static int cxClient, cyClient; st ...
分类:移动开发   时间:2018-03-07 23:50:30    阅读次数:218
学习windows编程 day5 之 区域裁剪
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { HDC hdc; PAINTSTRUCT ps; RECT rect; static int cxClient, cyClient; H... ...
分类:Windows程序   时间:2018-03-06 23:18:07    阅读次数:229
学习windows编程 day4 之 多边矩形填充
#include <windows.h>#include <math.h>LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);#define R 200#define PI 3.1415926 ...
分类:Windows程序   时间:2018-03-05 19:29:52    阅读次数:220
学习windows编程 day3 之 设置当前的背景颜色
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { HDC hdc; PAINTSTRUCT ps; RECT rect; static HPEN hPen, hOldPen; switc... ...
分类:Windows程序   时间:2018-03-05 00:49:13    阅读次数:218
学习windows编程 day3 之 自定义画笔的两种方法
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { HDC hdc; PAINTSTRUCT ps; RECT rect; HPEN hPen, hOldPen; switch (mess... ...
分类:Windows程序   时间:2018-03-04 23:50:16    阅读次数:251
学习windows编程 day1
#include <windows.h> #include <strsafe.h> /* 任务:去掉标题栏和边框 */ //#define LineHeight 15 这是自己猜测的行高,不要这样做 LRESULT CALLBACK WndProc(HWND hwnd, UINT message, ...
分类:Windows程序   时间:2018-03-03 00:38:12    阅读次数:222
C#检测鼠标移动消息
当C#窗口上有其它控件时,窗口本身检测不到消息。1、使用WndProc、MouseMove不行,比如 2、使用PreFilterMessage ...
分类:移动开发   时间:2018-02-01 10:38:41    阅读次数:319
157条   上一页 1 2 3 4 5 6 ... 16 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!