Re: EDIT woes



Weird. Thanks for posting back to the thread. No doubt this will come up
again at some point. I don't suppose that you're trying to show the edit
control in an ordinary window but trying to treat it as a dialog control
could be part of the problem, could it?

Paul T.

"Hans-Peter Diettrich" <DrDiettrich1@xxxxxxx> wrote in message
news:5rupn1F1696lsU3@xxxxxxxxxxxxxxxxxxxxx
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


.



Relevant Pages

  • Re: EDIT woes
    ... In the meantime I found out, that the missing caret is related, somehow, to the dynamic creation of the edit control. ... limit the text display area *independently* from the control's client area. ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: "edit" control is read only?
    ... standard code required to get an edit control to work... ... PSTR szCmdLine, int iCmdShow) ... //-MAIN WINDOW CONFIGURATION ...
    (microsoft.public.vc.language)
  • Re: Overriding CComboBox functionality...
    ... Edit/Static Control as the CComboBox does. ... When I sub-class the edit control, I create the static control, and fitted ... I have been having trouble with the OnPainthandler. ... > the size in the CBS_SIMPLE case, but the dropdown styles weren't too vexing. ...
    (microsoft.public.vc.mfc)
  • Re: How to transparent editbox control works correctly...
    ... can't simply attach a CString to your edit control and hope that UpdateData ... void SetFont; ... afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); ...
    (microsoft.public.vc.mfc)
  • Re: "edit" control is read only?
    ... type casting every parameter in the SendMessage line, ... it, they did type cast every parameter, but it was only to show the type ... ReadOnly property to the edit control? ... Can anyone tell me why the edit control created with CreateWindow ...
    (microsoft.public.vc.language)

Loading