How to align the text vertical in the edit box in mfc?

  • Thread starter Thread starter sgrm123
  • Start date Start date
S

sgrm123

Guest
Hi,

In my MFC dialog based application I want to align the text vertically in edit control. My Edit control is not using WS_BORDER style.

The link How can we vertically align text in edit box? gives solution for my problem and it is working for me.

That link is handling ON_WM_NCCALCSIZE() and ON_WM_NCPAINT() messages.I would like to know can I meet my requirement by overriding only onPaint() without overriding ON_WM_NCCALCSIZE() and ON_WM_NCPAINT() messages?

Continue reading...
 
Back
Top