문제

If an edit control is disabled, the caret disappears. that case, if the edit is displaying a long text, then it is not possible to see the rest of the words.With the caret i, we can do that.

도움이 되었습니까?

해결책

I think you must use an enabled readonly edit control instead of a disabled one.

Check 'readonly' in the edit box property window or use ES_READONLY when calling Create. Also, don't forget to check Auto HScroll (ES_AUTOHSCROLL) ( and AutoVScroll if multiline).

CEdit* pEdit = new CEdit;
pEdit->Create(ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER
  | ES_AUTOHSCROLL | ES_READONLY, (10, 10, 100, 100), this, 1);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top