绘图板绘图板

时间:2021-10-21 14:53:54
【文件属性】:

文件名称:绘图板绘图板

文件大小:8KB

文件格式:TXT

更新时间:2021-10-21 14:53:54

huitu

一个简单的绘图板win32程序 #include "windows.h" HINSTANCE hinst=NULL; HWND btn_close,btn_line,btn_rect,btn_ell,btn_cpen,btn_cbrush,btn_label; HDC hDC,hDC_lable; RECT drawrect,wndrect; RECT prect,brect; HBRUSH hbrush; HPEN hpen; COLORREF colpen,colbrush; int x,y; HPEN hpen_temp; HBRUSH hbrush_temp; void CloseProc(HWND hwnd) { DeleteObject(hbrush); DeleteObject(hpen); ReleaseDC(hwnd,hDC); UnregisterClass("Zapata",hinst); PostQuitMessage(0); }


网友评论