Home > Software engineering >  MFC dialog box to redraw background how to avoid the child controls drawn together
MFC dialog box to redraw background how to avoid the child controls drawn together

Time:10-08

I now have A parent dialog box, and then the following contains two child dialog box, in order to facilitate understanding, here I am called A, B,
I now is I to the parent dialog with FillSolidRect () function sets the background, and then make A display image and
Account for 1/8 of the size of the dialog box space,
This time, I again let B shows a picture, and fill the parent dialog box ( A is covered the
When I close the B when the parent dialog box to be redrawn , find the parent dialog redraw background
When to use the background color fill, is also A leading to my show on A picture,
Problem: excuse me, what should I do now to get the parent dialog re-paint, don't drop A also give redraw?

CodePudding user response:

Hook up the Clip on resource children, then the parent window to refresh, will not go to refresh the child window area

CodePudding user response:

This situation is really not met the general drawing is A separate window, there will be no other control elements above, of course including here. A, B window,
Upstairs said clip children haven't tried (hasn't been used, do not understand this option), perhaps really good, the original poster can have a try,
Or is finishing the program window management, it is better to separate separate, don't put other child controls in the window of the drawing (including child Windows)
  • Related