int FillRect(
HDC hDC,
CONST RECT *lprc,
HBRUSH hbr
);
Parameters
hDC
[in] Handle to the device context.
lprc
[in] Long pointer to a RECT structure that contains the logical coordinates of the rectangle to be filled.
hbr
[in] Handle to the brush used to fill the rectangle. In Windows CE versions 1.0 and 1.01, the hbr parameter cannot be a color brush.怎样用获得HDC类型的指向一个按钮的句柄呢?请指点,句柄的概念已经困惑很久了
HDC hDC,
CONST RECT *lprc,
HBRUSH hbr
);
Parameters
hDC
[in] Handle to the device context.
lprc
[in] Long pointer to a RECT structure that contains the logical coordinates of the rectangle to be filled.
hbr
[in] Handle to the brush used to fill the rectangle. In Windows CE versions 1.0 and 1.01, the hbr parameter cannot be a color brush.怎样用获得HDC类型的指向一个按钮的句柄呢?请指点,句柄的概念已经困惑很久了
HDC hDC = dc.m_hDC;