Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Force a program to redraw it's self
  
User name:
Password:
Reply:
 

UserPost
Parasyte
Posts: 345/514
Originally posted by interdpth
... I want to force the window to redraw it's self so it will display a program after you press a button ...


You mean you want your window to run a program while staying visible? (Not being covered by the new program...)
If that is the case, you should try the BringWindowToTop() function. There are also other functions which can be used similarly: ShowWindow() and SwitchToThisWindow()
sloat
Posts: 36/85
InvalidateRect and UpdateWindow should work. Try using NULL for the update rectangle and set the last param to TRUE. InvalidateRect will add to the update region and UpdateWindow will send a WM_PAINT message to process the update region.

If it still doesn't work try, RedrawWindow. If you still can't get it, then you might be doing something wrong somewhere else.
HyperLamer
Posts: 3597/8210
Try sending it a WM_PAINT message.
interdpth
Posts: 389/527
Ok this is in C+ API programm
I tried doing the InvalidateRect() command followed by UpdateWindow();
That sure didn't work I want to force the window to redraw it's self so it will display a program after you press a button thanks for your help.
Acmlm's Board - I2 Archive - Programming - Force a program to redraw it's self


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.010 seconds.