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. When ControlSize exceeds parent size

When ControlSize exceeds parent size

Scheduled Pinned Locked Moved C / C++ / MFC
data-structureshelpquestion
4 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 all, Iam working with a ListControl whose parent is a dialog. In the cell (1,1),I want to place a tree control which on doubleclicking should open up(ie: the width & height of this tree control exceeds the dialog boundary). Will move the treecontrol & place it over the cell(1,1) position. Now If I fix & width & I height of my treecontrol,I want the same size to be displayed,even if the parent dialog is smaller. ie: If the childControl size is bigger than,the parentcontrol size ,it should overflow the parentcontrol boundary.(like if we click on a comboBox). How can I achive this behaviour. Any ideas Thanks..

    P 1 Reply Last reply
    0
    • P Pazzuzu

      Hi all, Iam working with a ListControl whose parent is a dialog. In the cell (1,1),I want to place a tree control which on doubleclicking should open up(ie: the width & height of this tree control exceeds the dialog boundary). Will move the treecontrol & place it over the cell(1,1) position. Now If I fix & width & I height of my treecontrol,I want the same size to be displayed,even if the parent dialog is smaller. ie: If the childControl size is bigger than,the parentcontrol size ,it should overflow the parentcontrol boundary.(like if we click on a comboBox). How can I achive this behaviour. Any ideas Thanks..

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

      The dropdown listbox from a combobox is actually created as a top level window, a child of the desktop, and it is moved into place and shown when needed. You could do the same with your tree control.


      "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!

      P 2 Replies Last reply
      0
      • P PJ Arends

        The dropdown listbox from a combobox is actually created as a top level window, a child of the desktop, and it is moved into place and shown when needed. You could do the same with your tree control.


        "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!

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

        >>The dropdown listbox from a combobox is >>actually created as a top level window, >>a child of the desktop, and it is moved >>into place and shown when needed. How could I do this?.would you be able to explain it by a piece of code...

        1 Reply Last reply
        0
        • P PJ Arends

          The dropdown listbox from a combobox is actually created as a top level window, a child of the desktop, and it is moved into place and shown when needed. You could do the same with your tree control.


          "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!

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

          Hi, I did as follows in that order & I get the child control to exceed the parent window. childControl.SetParent(GetDesktopWindow()); childControl.ShowWindow(true); childControl.BringWindowToTop(); childControl.SetFocus(); childControl.MoveWindow(500,300,400,200); But now the problem is ,I don't get the childControl as an activeWindow(Can't select,edit anything etc). 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