📄 mapcontrol.c
字号:
#include "mapcontrol.h"int MapControlProc(HWND hwnd,int message,WPARAM wParam,LPARAM lParam){ HDC hdc; switch(message) { case MSG_PAINT: hdc=BeginPaint(hwnd); TextOut(hdc,500,200,"map is not display!"); Circle(hdc,500,500,250); EndPaint(hwnd,hdc); return(0); } return DefaultControlProc(hwnd,message,wParam,lParam);}void RegisterMapControl(){ WNDCLASS mapclass; mapclass.spClassName=MAP; mapclass.dwStyle=WS_NONE; mapclass.dwExStyle=WS_EX_NONE; mapclass.hCursor=GetSystemCursor(0); mapclass.iBkColor=COLOR_lightwhite; mapclass.WinProc=MapControlProc; RegisterWindowClass(&mapclass);}void UnregisterMapControl(){ UnregisterWindowClass(MAP);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -