DT_WORDBREAK已指定!

解决方案 »

  1.   

    可能你添加了DT_SINGLELINE格式,去掉DT_SINGLELINE格式
      

  2.   

    If the TA_UPDATECP text-alignment flag has been set (see CDC::SetTextAlign), DrawText will display text starting at the current position, rather than at the left of the given rectangle. DrawText will not wrap text when the TA_UPDATECP flag has been set (that is, the DT_WORDBREAK flag will have no effect).
      

  3.   

    问题解决,设置DT_EDITCONTROL即可!
      

  4.   

    DrawText( const CString& str, LPRECT lpRect, UINT nFormat );nFormat=0时看还有问题?