Home > Software engineering > MFC through the create () function dynamically created a static text control cannot refresh window a
MFC through the create () function dynamically created a static text control cannot refresh window a
Time:11-14
As title, I created a succession to do canvas CStatic control of a class, in the parent dialog onctlcolor function will be set to transparent, but in the news of the subclass response function invalidate () and updatewindow cannot achieve the refresh () the window
This is a function of set transparent background
This is to set up the canvas background transparent before:
After this is the canvas set the background to transparent (there is a gray image so below display color is gray) :
The following is a control onm ousemove message response function in a subclass function:
Sorry points is not much, all can take out the
CodePudding user response:
Their top, by the way, could you illustrate this grey color is for the use of images, I hope he can show them things in various shapes in the above picture, so the idea is to create a transparent background canvas covered in the above, and then in a transparent canvas of response to the mouse message mapping
CodePudding user response:
to achieve transparent dialog box when the bitmap as a background of control