Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Do not allow move Window??

Do not allow move Window??

Scheduled Pinned Locked Moved C / C++ / MFC
questioncomtools
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rene De La Garza
    wrote on last edited by
    #1

    How can i disable to move a window?? :confused: "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

    D V 2 Replies Last reply
    0
    • R Rene De La Garza

      How can i disable to move a window?? :confused: "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Have you looked at the WM_GETMINMAXINFO message?

      1 Reply Last reply
      0
      • R Rene De La Garza

        How can i disable to move a window?? :confused: "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

        V Offline
        V Offline
        valikac
        wrote on last edited by
        #3

        One solution is to add a handler for WM_SYSCOMMAND. Ignore SC_MOVE. if (WM_SYSCOMMAND == message && SC_MOVE == (wParam & 0xFFF0)) return 0; Kuphryn

        R 1 Reply Last reply
        0
        • V valikac

          One solution is to add a handler for WM_SYSCOMMAND. Ignore SC_MOVE. if (WM_SYSCOMMAND == message && SC_MOVE == (wParam & 0xFFF0)) return 0; Kuphryn

          R Offline
          R Offline
          Rene De La Garza
          wrote on last edited by
          #4

          thanks that worked pretty good :-D "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox [^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups