Stopping a window from moving

This is a discussion on Stopping a window from moving within the Windows Programming forums, part of the Platform Specific Boards category; How can I stop a window with the WM_CAPTION style from being moved? I tried intercepting WM_MOVING and adjusting the ...

  1. #1
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293

    Stopping a window from moving

    How can I stop a window with the WM_CAPTION style from being moved? I tried intercepting WM_MOVING and adjusting the rect and then returned true but to no avail.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    That is how you do it, so you must be doing something wrong. Since I'm no mindreader, some code would be nice...
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    Oops, I forgot I posted this.. Sorry.. I have fixed my problem. . . turns out my coordinates are some how wrong. I'm setting it using the coords I get from GetWindowRect but this seems to be wrong ... I thought it gave screen coords?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 09:23 AM
  2. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 01:34 PM
  4. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 05:10 AM
  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