Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

removeing popup

Status
Not open for further replies.

foxnet

Programmer
Mar 24, 2005
21
US
I am working on an application that uses a solid green backgroup. I have a pop up window that allows a user some options. After an option is selected the popup window is removed by calling EndDialog. Everything is working fine unless the user moves the dialog. If the dialog box is moved, when it is cleared the background where it was turns white. I tried issuing a PaintWindow after removing, but this causes the entire screen to flash, before it is redrawn. Is there a way to find the location where the dialog box is and only redraw that area.
 
Hmmm, the problem seems to be with the styles you gave to the popup window. Usually the window beneath is automatically repainted when a child is closed.

To force a repaint you can send a WM_PAINT to the parent window.

s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top