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

  • Thread starter Thread starter sivavuyyuru
  • Start date Start date
S

sivavuyyuru

Guest
Hi,

I had an edit box of which height is increased than the default.Now the problem here is when I am entering text into the edit box the text is not present at the centre of the edit box, It is still aligned at the top.

After increasing the height of the edit box the text and cursor are aligned at the top as shown in the below figure.

604302.png


But Actually how I want is the text and the cursor position needs to be aligned centre as shown in the below figure.

604303.png

Note: "EDITTEXT IDC_EDIT_BOX,10,73,156,14,ES_AUTOHSCROLL"


Can anyone please help me how can I make the text and the position of the cursor to be aligned vertically i.e, to the centre of the control.



SivaV

Continue reading...
 
Back
Top