Thread: How To move the Window?!!

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    43

    How To move the Window?!!

    We know that if I want to move a window I must put the mouse on the Title Bar and drag it.

    How can I Move the Window putting the mouse on the Client erea and drag? (My program is without Title Bar).

  2. #2
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    MoveWindow()? Just a thought...not like it's blatantly obvious or anything

  3. #3
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    Oh...and as for the rest of the question, check for WM_LBUTTONDOWN, and follow the mouse coordinates (there are many ways of doing this, try a search for them), then using MoveWindow until the person lets go of the mouse button (ie, until you recieve WM_LBUTTONUP)

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, 06:57 PM
  2. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 07:14 AM
  3. Button positioning
    By Lionmane in forum Windows Programming
    Replies: 76
    Last Post: 10-21-2005, 05:22 AM
  4. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  5. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 04:10 AM