mapcontrol.c
来自「minigui下的GPS接受程序」· C语言 代码 · 共 32 行
C
32 行
#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 + =
减小字号Ctrl + -
显示快捷键?