Home > Back-end >  How do you use the static controls
How do you use the static controls

Time:09-25

Use it to display text, but is grey, through setting the white style, the whole control is white, don't display text,

I saw it is all style, can not see what can be forced to display text, such as

UpdateWindow and InvalidateRect tried, basic is under this style, it displays text plan is not

If you want to set the white background shows words how to do? Do through its HDC have to redraw? So what is the point of it?

I see vb language and label label controls is quite simple and easy to use, why so difficult to use the win32 this static control?

CodePudding user response:

https://docs.microsoft.com/en-us/cpp/mfc/reference/cwnd-class? View=# onctlcolor vs - 2019

CodePudding user response:

reference 1st floor Chen Zhongfu response:
https://docs.microsoft.com/en-us/cpp/mfc/reference/cwnd-class? View=v - 2019 # onctlcolor


The C language
  • Related