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 | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
interdpth

Rex
Level: 36

Posts: 389/527
EXP: 294398
For next: 13712

Since: 03-20-04

Since last post: 10 days
Last activity: 31 days
Posted on 03-04-05 02:02 AM Link | Quote
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.
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 3597/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 03-07-05 04:41 PM Link | Quote
Try sending it a WM_PAINT message.
sloat

Level: 16

Posts: 36/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 03-08-05 10:52 PM Link | Quote
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.
Parasyte

Bullet Bill
Level: 35

Posts: 345/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 03-09-05 02:47 AM Link | Quote
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()
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
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.005 seconds.