Thread: Stopping a window from moving

  1. #1

    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
    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, 08:23 AM
  2. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 10:06 AM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  4. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 04:10 AM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM
Website Security Test