摘要:
hdc = GetDC(hWnd); mdc=CreateCompatibleDC(hdc); bufdc=CreateCompatibleDC(hdc); bmp=CreateCompatibleBitmap(hdc,640,480); SelectObject(mdc,bmp); bg=(HBITMAP)LoadImage(NULL,"bg.bmp",IMAGE_BITMAP,640,480,LR_LOADFROMFILE); ship=(HBITMAP)LoadImage(NULL,"ship.bmp",IMAGE_BITMAP,300,100,L 阅读全文
摘要:
#include "stdio.h"case WM_MOUSEMOVE:x=LOWORD(lParam);y=HIWORD(lParam);sprintf_s(str,"X的坐标%d ",x);TextOut(hdc,0,0,str,strlen(str));sprintf_s(str,"Y的坐标%d ",y);TextOut(hdc,0,20,str,strlen(str));break; 阅读全文