Window Movement

This is a discussion on Window Movement within the Windows Programming forums, part of the Platform Specific Boards category; Hello Programmers, I'm trying to move a window by dragging in a RECT with WM_MOUSEMOVE and MoveWindow() but my window ...

  1. #1
    Java > C++ PhoenixC++'s Avatar
    Join Date
    Apr 2004
    Posts
    8

    Question Window Movement

    Hello Programmers,
    I'm trying to move a window by dragging in a RECT with WM_MOUSEMOVE and MoveWindow() but my window is going crazy! Can some one please help me? My window is a WS_POPUP and I want it to be dragable. Any Examples?

    Thanks anyway, greets Phoenix!

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Code:
    case WM_NCHITTEST:
      return HTCAPTION;
    See WM_NCHITTEST for more information and search this board for further examples and discussion.

    If you want more help with your specific implementation then post some code.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Java > C++ PhoenixC++'s Avatar
    Join Date
    Apr 2004
    Posts
    8
    Oke Thank you man!

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. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 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

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