Skip to main content
gamedev.net
🔒 Locked

Window redraw

Started by Fish Fishes Aug 24, 2005 at 1:04 PM 7 replies 1.2k views
Original Post
Fish Fishes
Fish Fishes
How to force window to redraw & show its contents when moving? Like Winamp has, for example.
chollida1
chollida1
UpdateWindow(hwnd);

Cheers
Chris
CheersChris
Anon Mike
Anon Mike
It's not clear what you mean. Just in case, you should also right-click your desktop, select Properties, Appearance, Effects, and make sure "Show window contents while dragging" is on.
-Mike
Fish Fishes
Fish Fishes
Quote:
Original post by Anon Mike
It's not clear what you mean. Just in case, you should also right-click your desktop, select Properties, Appearance, Effects, and make sure "Show window contents while dragging" is on.


But if that checkbox is unchecked, I want my window to be redrawn not depending on it.
Anon Mike
Anon Mike
Quote:
Original post by Fish Fishes
Quote:
Original post by Anon Mike
It's not clear what you mean. Just in case, you should also right-click your desktop, select Properties, Appearance, Effects, and make sure "Show window contents while dragging" is on.


But if that checkbox is unchecked, I want my window to be redrawn not depending on it.

It's your app. But if that box is not checked it's probably because the user has a slow machine and can't really do this sort of thing and look good anyway. Going out of your way to ignore user settings is usually not the best course.
-Mike
Fish Fishes
Fish Fishes
Quote:
Original post by Anon Mike
Quote:
Original post by Fish Fishes
Quote:
Original post by Anon Mike
It's not clear what you mean. Just in case, you should also right-click your desktop, select Properties, Appearance, Effects, and make sure "Show window contents while dragging" is on.


But if that checkbox is unchecked, I want my window to be redrawn not depending on it.

It's your app. But if that box is not checked it's probably because the user has a slow machine and can't really do this sort of thing and look good anyway. Going out of your way to ignore user settings is usually not the best course.


Winamp ignores. I want the same sort of thing, Winamp does.
Fish Fishes
Fish Fishes
Quote:
Original post by Anon Mike
Quote:
Original post by Fish Fishes
Quote:
Original post by Anon Mike
It's not clear what you mean. Just in case, you should also right-click your desktop, select Properties, Appearance, Effects, and make sure "Show window contents while dragging" is on.


But if that checkbox is unchecked, I want my window to be redrawn not depending on it.

It's your app. But if that box is not checked it's probably because the user has a slow machine and can't really do this sort of thing and look good anyway. Going out of your way to ignore user settings is usually not the best course.


Winamp ignores. I want the same sort of thing, Winamp does.
chollida1
chollida1
then you need to handle the move message and invalidate your window at that time.

Chers
Chris
CheersChris
FreeTutorialNewbie
FreeTutorialNewbie
there is a message for when dragging stats and when dragging finishes
however doing such will most likely bog down the machine

you can even make your own code that detects when the top region is clicked on and capture the mouse and continuously reposition the window and stop when the left button is up

best course of action is to not do either and allow the user's machine settings to control stuff like that.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.