此帖出自WindowsCE论坛
最新回复
楼上已经说得很清楚了,我就来提供一段实例代码吧:
case WM_PAINT:
HDC hdc;
HBRUSH hBr, hOldBr;
GetClientRect (hWnd, &rect);
hdc = BeginPaint (hWnd, &ps);
// Draw round rectangle.
hBr = (HBRUSH) GetStockObject (LTGRAY_BRUSH);
hOldBr = (HBRUSH) SelectObject (hdc, hBr);
[color=#FF0000]RoundRect (hdc, 95, 50, 150, 130, 30, 30);[/color]
SelectObject (hdc, hOldBr);
EndPaint (hWnd, &ps);
break;
复制代码
详情
回复
发表于 2009-6-3 14:26
| ||
|
||
| |
|
|
| |
|
|
| |
|
|
此帖出自WindowsCE论坛
| ||
|
||
此帖出自WindowsCE论坛
| ||
|
||
浏览过的版块 |
EEWorld Datasheet 技术支持