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. How to tell when an application is being dragged around screen?

How to tell when an application is being dragged around screen?

Scheduled Pinned Locked Moved C / C++ / MFC
c++questiontutorial
3 Posts 2 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.
  • K Offline
    K Offline
    KellyR
    wrote on last edited by
    #1

    Hi, This app is written in C++ without MFC. My question is this: Let's say my app is not full screen, and a user clicks the top bar of the app and drags it around the screen. Is there a windows message that gets sent back to my main app's message pump to tell me when the window is moving? like WM_ etc? I have been looking over MSDN and other documentation and I have not been able to find anything like this but maybe I am missing something. If it does not send a message, is there any other way that I can tell when the app is being dragged around? Thanks!

    KR

    L 1 Reply Last reply
    0
    • K KellyR

      Hi, This app is written in C++ without MFC. My question is this: Let's say my app is not full screen, and a user clicks the top bar of the app and drags it around the screen. Is there a windows message that gets sent back to my main app's message pump to tell me when the window is moving? like WM_ etc? I have been looking over MSDN and other documentation and I have not been able to find anything like this but maybe I am missing something. If it does not send a message, is there any other way that I can tell when the app is being dragged around? Thanks!

      KR

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Are you looking for WM_MOVING[^]? Best Wishes, -David Delaune

      K 1 Reply Last reply
      0
      • L Lost User

        Are you looking for WM_MOVING[^]? Best Wishes, -David Delaune

        K Offline
        K Offline
        KellyR
        wrote on last edited by
        #3

        That is what I needed, thank you!!!

        KR

        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