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. Overlapping control -problem

Overlapping control -problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpdata-structures
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.
  • P Offline
    P Offline
    Pazzuzu
    wrote on last edited by
    #1

    Hi, Iam working with a ListControl whose parent is a dialog. In one the cell of the listcontrol,I place a tree control which on doubleclicking should open up & overlap the dialog control. I achieved the treecontroloverlapping by writing as follows: treeControl.SetParent(GetDesktopWindow()); treeControl.ShowWindow(true); treeControl.BringWindowToTop(); treeControl.SetFocus(); treeControl.MoveWindow(500,300,400,200); Now,the problem I have in hand is that the overlapped treecontrol is not active.Can't do anything over there. Tried "EnableWindow","SetActiveWindow" etc.but the overlapped treecontrol is not getting enabled. Any help is appreciated... Thanks...

    B 1 Reply Last reply
    0
    • P Pazzuzu

      Hi, Iam working with a ListControl whose parent is a dialog. In one the cell of the listcontrol,I place a tree control which on doubleclicking should open up & overlap the dialog control. I achieved the treecontroloverlapping by writing as follows: treeControl.SetParent(GetDesktopWindow()); treeControl.ShowWindow(true); treeControl.BringWindowToTop(); treeControl.SetFocus(); treeControl.MoveWindow(500,300,400,200); Now,the problem I have in hand is that the overlapped treecontrol is not active.Can't do anything over there. Tried "EnableWindow","SetActiveWindow" etc.but the overlapped treecontrol is not getting enabled. Any help is appreciated... Thanks...

      B Offline
      B Offline
      Blake Miller
      wrote on last edited by
      #2

      Why not make the tree control's parent the dialog instead of the desktop window? Just insert it in Z-order after the list control so that it will appear in front of the list control.

      P 1 Reply Last reply
      0
      • B Blake Miller

        Why not make the tree control's parent the dialog instead of the desktop window? Just insert it in Z-order after the list control so that it will appear in front of the list control.

        P Offline
        P Offline
        Pazzuzu
        wrote on last edited by
        #3

        HiBlake, I fixed the problem.. I had to Modify the style after setting the parent m_gridControl.SetParent(GetDesktopWindow()); m_gridControl.ModifyStyle(WS_CHILD,WS_POPUP); Thanks

        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