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. Drag&Drop problem: ListCtrl inside a Group Box

Drag&Drop problem: ListCtrl inside a Group Box

Scheduled Pinned Locked Moved C / C++ / MFC
help
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.
  • S Offline
    S Offline
    sps itsec46
    wrote on last edited by
    #1

    Implementing Drag&Drop from the explorer to a CListCtrl isn't very difficult. But I have a big problem with those da*n group boxes: If my ListCtrl is surrounded by a group box the ListCtrl acts not as a drop target. The group box that has not the WS_EX_ACCEPTFILES flag seems to swallow the message. I can remember something about a flag for the group box to let all window messages through but right now I cannot find anything on the net. Thanks a lot for your help! Regards, mYkel

    P 1 Reply Last reply
    0
    • S sps itsec46

      Implementing Drag&Drop from the explorer to a CListCtrl isn't very difficult. But I have a big problem with those da*n group boxes: If my ListCtrl is surrounded by a group box the ListCtrl acts not as a drop target. The group box that has not the WS_EX_ACCEPTFILES flag seems to swallow the message. I can remember something about a flag for the group box to let all window messages through but right now I cannot find anything on the net. Thanks a lot for your help! Regards, mYkel

      P Offline
      P Offline
      PJ Arends
      wrote on last edited by
      #2

      Change the z-order of the controls so that the listctrl is above the group box.


      "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!

      S 1 Reply Last reply
      0
      • P PJ Arends

        Change the z-order of the controls so that the listctrl is above the group box.


        "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04 Within you lies the power for good - Use it!

        S Offline
        S Offline
        sps itsec46
        wrote on last edited by
        #3

        Ahhh yes... the good old z-Order. I'm so tired!!! :wtf: PJ you're still rocking! :cool: Regards, mYkel

        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