a一级爱做片免费观看欧美,久久国产一区二区,日本一二三区免费,久草视频手机在线观看

新聞中心

EEPW首頁 > 嵌入式系統 > 設計應用 > 在hellowrold程序基礎上繪制一個圓

在hellowrold程序基礎上繪制一個圓

作者: 時間:2016-09-12 來源:網絡 收藏

只需修改OnPaint方法

本文引用地址:http://www.j9360.com/article/201609/303402.htm

LONG OnPaint(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

{

PAINTSTRUCT ps;

HDC hdc;

RECT rect;

HPEN hpen;

GetClientRect(hWnd,rect);

hdc = BeginPaint(hWnd,ps);

//hpen = GetStockPen(BLACK_PEN); //兩種創建畫筆的方法

hpen = CreatePen(PS_SOLID,2,RGB(0XFF,0X00,0X00));

HGDIOBJ oldpen = SelectObject(hdc,hpen);

Ellipse(hdc,10,10,200,200);

SelectObject(hdc,oldpen);

DeleteObject(hpen);

EndPaint(hWnd,ps);

return TRUE;

}



關鍵詞: WinCE

評論


相關推薦

技術專區

關閉