我定义一个函数
void DrawShadowText(CDC *pDC,CRect rt,CString strText); //画阴影文字
谁能帮忙解释一下括号里面每个的意思,为什么这么写?他们的功能是用来干什么?

解决方案 »

  1.   

    void DrawShadowText(CDC *pDC,CRect rt,CString strText);唉!CDC *pDC: 一个 CDC类的指针, 用它来操作绘图(如果你不知道什么是CDC类, 可以先看看书)CRect rt:画文本的范围CString strText: 要画的文本
      

  2.   

    CDC *pDC设备环境指针,用于操作在那里画图
    CRect rt:定义的画图区域CString strText: 要画的文本
      

  3.   

    Draws text that has a shadow.Syntaxint DrawShadowText(          HDC hdc,
        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如果你不董英文再来问我