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. window seen in taskbar

window seen in taskbar

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

    Hi All, Iam working with a ListControl whose parent is a dialog.want to place a tree control on a particular cell on the listcontrol,which on doubleclicking should open up(ie: the width & height of this tree control exceeds the dialog boundary). Like in ComboBox control, where the list visible, goes beyond the dialog boundary. Tried somethings like treeControl.SetOwner(GetDesktopWindow(); treeControl.ModifyStyle(WS_CHILD,WS_OVERLAPPED); Everything works fine apart from 1 problem.I can see the newly created window(the treecontrol) on my taskbar. wHAT should I do to avoid that... Regards, P

    N F 2 Replies Last reply
    0
    • P Pazzuzu

      Hi All, Iam working with a ListControl whose parent is a dialog.want to place a tree control on a particular cell on the listcontrol,which on doubleclicking should open up(ie: the width & height of this tree control exceeds the dialog boundary). Like in ComboBox control, where the list visible, goes beyond the dialog boundary. Tried somethings like treeControl.SetOwner(GetDesktopWindow(); treeControl.ModifyStyle(WS_CHILD,WS_OVERLAPPED); Everything works fine apart from 1 problem.I can see the newly created window(the treecontrol) on my taskbar. wHAT should I do to avoid that... Regards, P

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      Pazzuzu wrote:

      treeControl.ModifyStyle(WS_CHILD,WS_OVERLAPPED);

      I guess this line is causing the trouble. Why are you removing WS_CHILD style. And why WS_OVERLAPPED?


      Nibu thomas Software Developer

      P 1 Reply Last reply
      0
      • N Nibu babu thomas

        Pazzuzu wrote:

        treeControl.ModifyStyle(WS_CHILD,WS_OVERLAPPED);

        I guess this line is causing the trouble. Why are you removing WS_CHILD style. And why WS_OVERLAPPED?


        Nibu thomas Software Developer

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

        Okay,that was a mistake. Tried as follows. treeControl.ModifyStyle(WS_BORDER,WS_POPUP); but the window is still there in the taskbar.Guess some of the styles are not added to the Control,though I use a modify style. What could be done...

        N 1 Reply Last reply
        0
        • P Pazzuzu

          Okay,that was a mistake. Tried as follows. treeControl.ModifyStyle(WS_BORDER,WS_POPUP); but the window is still there in the taskbar.Guess some of the styles are not added to the Control,though I use a modify style. What could be done...

          N Offline
          N Offline
          Nibu babu thomas
          wrote on last edited by
          #4

          Pazzuzu wrote:

          treeControl.ModifyStyle(WS_BORDER,WS_POPUP);

          Why WS_POPUP?? And why removing WS_BORDER?? Let it remain as it is! Set the parent to desktop!


          Nibu thomas Software Developer

          P 1 Reply Last reply
          0
          • N Nibu babu thomas

            Pazzuzu wrote:

            treeControl.ModifyStyle(WS_BORDER,WS_POPUP);

            Why WS_POPUP?? And why removing WS_BORDER?? Let it remain as it is! Set the parent to desktop!


            Nibu thomas Software Developer

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

            Iam not modifying any style now.Iam keeping it as it is . treeControl.SetParent(GetDesktopWindow()); Still window is visible.

            P N 2 Replies Last reply
            0
            • P Pazzuzu

              Iam not modifying any style now.Iam keeping it as it is . treeControl.SetParent(GetDesktopWindow()); Still window is visible.

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

              Have seen that my call to treeControl.ShowWindow(true); pops up this window.But if I comment out this statement,the control is not popping up on double clicking

              1 Reply Last reply
              0
              • P Pazzuzu

                Iam not modifying any style now.Iam keeping it as it is . treeControl.SetParent(GetDesktopWindow()); Still window is visible.

                N Offline
                N Offline
                Nibu babu thomas
                wrote on last edited by
                #7

                What about WS_EX_TOOLWINDOW? Add this style using ModifyStyleEx.


                Nibu thomas Software Developer

                1 Reply Last reply
                0
                • P Pazzuzu

                  Hi All, Iam working with a ListControl whose parent is a dialog.want to place a tree control on a particular cell on the listcontrol,which on doubleclicking should open up(ie: the width & height of this tree control exceeds the dialog boundary). Like in ComboBox control, where the list visible, goes beyond the dialog boundary. Tried somethings like treeControl.SetOwner(GetDesktopWindow(); treeControl.ModifyStyle(WS_CHILD,WS_OVERLAPPED); Everything works fine apart from 1 problem.I can see the newly created window(the treecontrol) on my taskbar. wHAT should I do to avoid that... Regards, P

                  F Offline
                  F Offline
                  FarPointer
                  wrote on last edited by
                  #8

                  Check this out :- WS_EX_TOOLWINDOW Regards, FarPointer

                  P 1 Reply Last reply
                  0
                  • F FarPointer

                    Check this out :- WS_EX_TOOLWINDOW Regards, FarPointer

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

                    Thanks Nibu & Farpointer.It worked... Thanks one again

                    F 1 Reply Last reply
                    0
                    • P Pazzuzu

                      Thanks Nibu & Farpointer.It worked... Thanks one again

                      F Offline
                      F Offline
                      FarPointer
                      wrote on last edited by
                      #10

                      Would you be kind enough to say how you made it to work. Regards, FarPointer

                      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