我定义一个函数
void DrawShadowText(CDC *pDC,CRect rt,CString strText); //画阴影文字
谁能帮忙解释一下括号里面每个的意思,为什么这么写?他们的功能是用来干什么?
void DrawShadowText(CDC *pDC,CRect rt,CString strText); //画阴影文字
谁能帮忙解释一下括号里面每个的意思,为什么这么写?他们的功能是用来干什么?
CRect rt:定义的画图区域CString strText: 要画的文本
LPCWSTR pszText,
UINT cch,
const RECT *pRect,
DWORD dwFlags,
COLORREF crText,
COLORREF crShadow,
int ixOffset,
int iyOffset
);
Parametershdc
Handle to a device context (HDC).
pszText
Pointer to a string that contains the text to be drawn.
cch
UINT that specifies the number of characters in the string that is to be drawn.
pRect
Pointer to a RECT structure that contains, in logical coordinates, the rectangle in which the text is to be drawn.
dwFlags
DWORD that specifies how the text is to be drawn.
crText
COLORREF structure that contains the color of the text.
crShadow
COLORREF structure that contains the color of the text shadow.
ixOffset
Value of type int that specifies the X coordinate of where the text should begin.
iyOffset
Value of type int that specifies the Y coordinate of where the text should begin.
Return ValueReturns the height of the text in logical units if the function succeeds, otherwise returns zero.Res如果你不董英文再来问我