
Control position of text in single line CEdit
I don't know about Wfw311, but when I tried this, both the
static and dynamic versions were both flush with the top of
the window. I guess I would recommend setting a font such
that if fills the window as much as possible without clipping,
so there won't be any dead space. If you are creating controls
dynamically, you may want to do SetFonts to force the control
to use a certain font anyway. You may not be too happy with
what it comes up with as a default, especially in older windows
versions. - Doug S.
Quote:
> Using VC1.52c under WfW3.11 :
> In a Dialogbox I created some edit controls, derived from CEdit. The dwStyle
> used to Create them has been copied from different edit controls on the same
> dialog, created in AppStudio (Single Line, Read Only)
> The text in the "normal" edit controls is vertically centered, but the text
> in the dynamically created ones is shifted to the top left corner of the
> edit box.
> Is there a way to control the positioning of text in single line edit
> controls ?
> Thanks for suggestions,
> Mike Hirsch