Home > Software engineering >  MFC controls the Edit control words show only half what seems to be blocked?
MFC controls the Edit control words show only half what seems to be blocked?

Time:09-26

For help, use is VS2017, I draw directly controls are the past, but after amplification edit, little in the upper left corner, I was enlarged, but enlarged words show only half ah, don't know why, o solve ah ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

CodePudding user response:

CodePudding user response:

What is

CodePudding user response:

Edit: how do you zoom

CodePudding user response:

Edit the setfont?

CodePudding user response:

The skin of bugs? The skin blocked access to try it

CodePudding user response:

Is not blocked, but the font is too big, can't finish the Edit box shows small, you need to do is adjust the size of the Edit control in order to suit the background image, the height of the cursor and the background image highly consistent

CodePudding user response:

Is a pull in resource management - dialog and then the lower right corner is magnified, now I this how to do ah ~ no ~ since the draw away the skin just above shows that a place, but require amplification products==for help ah ~

CodePudding user response:

CodePudding user response:

refer to 6th floor pcradio response:
is not stopped, but the font is too big, small Edit box shows up, you have to do is adjust the size of the Edit control in order to suit the background image, the height of the cursor and the background image on the highly consistent with


Product requirements edit so big now ~ and there is no skin, is drag zoom in, zoom after word is a little too ugly

CodePudding user response:

references 9 f qq_38200616 response:
Quote: refer to the sixth floor pcradio response:

Is not blocked, but the font is too big, can't finish the Edit box shows small, you need to do is adjust the size of the Edit control in order to suit the background image, the height of the cursor and the background image on the highly consistent with


Product requirements now edit so big ah ~ and there is no skin, is dragging amplifier, enlarge after the word is a little too ugly

You can change the font size setFont brothers

CodePudding user response:

Actually do graphic edit, edit and font height should be highly consistent, you can use the
 GetTextMetrics 
to get the font height, then center the edit and the background image, this need you to do your own calculation, you can refer to my XSkin interface library code, just in my download resources
  • Related