解决方案 »

  1.   

    请帖主移驾
    VC/MFC
    论坛.
      

  2.   

    EM_FMTLINES message
    Sets a flag that determines whether a multiline edit control includes soft line-break characters. A soft line break consists of two carriage returns and a line feed and is inserted at the end of a line that is broken because of wordwrapping.
    Parameters
    wParam
    Specifies whether soft line-break characters are to be inserted. A value of TRUE inserts the characters; a value of FALSE removes them.
    lParam
    This parameter is not used.
    Return value
    The return value is identical to the wParam parameter.
    Res
    This message affects only the buffer returned by the EM_GETHANDLE message and the text returned by the WM_GETTEXT message. It has no effect on the display of the text within the edit control.
    The EM_FMTLINES message does not affect a line that ends with a hard line break. A hard line break consists of one carriage return and a line feed.
    Note  The size of the text changes when this message is processed.
    Rich Edit: The EM_FMTLINES message is not supported.Edit_Scroll macro
    Scrolls the text vertically in a multiline edit or rich edit control. You can use this macro or send the EM_SCROLL message explicitly.
    Syntax
    C++void Edit_Scroll(
      HWND hwndCtl,
      int dv,
      int dh
    );Parameters
    hwndCtl
    Type: HWND
    A handle to the control.
    dv
    Type: int
    The amount to scroll vertically.
    dh
    Type: int
    The amount to scroll horizontally.
    Return value
    No return value.
      

  3.   

    在OnPaint中按 static 方法一样写。
      

  4.   

    可以具体点吗 新手不是很懂 我之前也没在OnPaint中写过
      

  5.   

    需要换行的地方 用 字符 "\r\n" 隔开
    形如 "第一行字符串" + "\r\n" +"第二行字符串" + "\r\n" +"第三行字符串" + 
      

  6.   

    “之前用Static Text(IDC_STATIC_1)的时候,直接在按键响应函数里写”
    贴代码。