VC++,NET, 怎么样在窗体上输出点阵

来源:百度知道 编辑:UC知道 时间:2024/05/31 05:37:43
我想在窗体上输出一定数量的点阵,且想要在点阵右下方定义坐标原点 不知道怎么做 ,请大家帮忙。非常感谢

OnDraw 里面

CDC::SetPixel

COLORREF SetPixel(
int x,
int y,
COLORREF crColor
);
COLORREF SetPixel(
POINT point,
COLORREF crColor
);

CDC::SetLayout
DWORD SetLayout(
DWORD dwLayout
);
Parameters
dwLayout
Device context layout and bitmap control flags. It can be a combination of the following values.

Value Meaning
LAYOUT_BITMAPORIENTATIONPRESERVED
Disables any reflection for calls to CDC::BitBlt and CDC::StretchBlt.

LAYOUT_RTL
Sets the default horizontal layout to be right to left.

LAYOUT_LTR
Sets the default layout to be left to right.