Re: EDIT woes



Paul G. Tobey [eMVP] wrote:

I'm not sure about 1.

In the meantime I found out, that the missing caret is related, somehow, to the dynamic creation of the edit control. Once I let it create by the dialog, the caret is visible.


2) You have Auto H-Scroll style set for the control. Turn that off and characters won't be allowed out of the viewport.

I also found an workaround, based on EM_SETRECT, which is documented to limit the text display area *independently* from the control's client area. It also was necessary to set the control style to multi line, to make an change of the text rectangle effective.

DoDi
.


Loading