Home > Software engineering >  MFC programming interface
MFC programming interface

Time:09-18

MFC in the edit box the change of the font size, line height but can't change, can only display half of the problem, how to deal with this?

CodePudding user response:

The line height control came in to be transferred to the large enough,

CodePudding user response:

Otherwise high to calculate words, MoveWindow again

CodePudding user response:

WINDOWINFO winInfo;
CRect mrect;

Ctledit. GetWindowInfo (& amp; WinInfo);
Mrect=winInfo. RcWindow;
This - & gt; The ScreenToClient (& amp; Mrect);

Mrect. Right +=20;
Mrect. Bottom +=30;

Ctledit. MoveWindow (mrect);
  • Related