How to force window redraw when moving... ?

This is a discussion on How to force window redraw when moving... ? within the Windows Programming forums, part of the Platform Specific Boards category; I can't find the way to force the window to redraw when i'm moving it... Example: If you move Winamp, ...

  1. #1
    Registered User
    Join Date
    Feb 2004
    Posts
    10

    Question How to force window redraw when moving... ?

    I can't find the way to force the window to redraw when i'm moving it...

    Example:

    If you move Winamp, the shape is alwais redraw and you can alwais view winamp interface when move it...

    I've try to make my custom shape window then when i move it
    i must release the mouse and then window redraw the shape...

    How can i force my window to redraw the shape when i'm moving?

    TNX

  2. #2
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    Have you tried handling WM_MOVE and calling InvalidateRect()?

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    10
    Yes but... the rect of selection come with me...
    It's orrible to see... i want to hide the normal selection rect and only move the shape... try to move any windows and you can see the sel rect...


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 07:57 PM
  2. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 09:23 AM
  3. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  4. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 01:34 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21