MFC - Disable moving/dragging of windows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • absolute0
    New Member
    • Feb 2008
    • 8

    MFC - Disable moving/dragging of windows

    How do I disable moving/dragging of windows? I want a window to always stay in the same position...

    Thanks
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    You probably want to intercept and handle one or more of the messages

    WM_MOVING
    WM_MOVE
    WM_SIZING
    WM_SIZE

    Comment

    • Banfa
      Recognized Expert Expert
      • Feb 2006
      • 9067

      #3
      or WM_GETMINMAXINF O

      Comment

      Working...