基础知识 mfc

时间:2023-03-09 02:06:33
基础知识  mfc

句柄 资源的标示  图标句柄(HICON) 光标句柄(HCURSOR) 窗口句柄(HWND)

类似于指针

wm_keydown表示键盘上的按键按下了数值

WPARAM ||LPARAM  两个整形数据类型 表示一种附加信息 储存比如按下一个键后接收具体键的Asics代码

Dword 表示消息传递时候的时间

POINT 定义点的结构体

typedef struct tagPOINT {
   LONG x;
   LONG y;
} POINT;

The POINT structure defines the x- and y-coordinates of a point.

typedef struct tagMSG {     // msg
    HWND   hwnd;
    UINT   message;
    WPARAM wParam;
    LPARAM lParam;
    DWORD  time;
    POINT  pt;
} MSG;