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. CListCtrl

CListCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
9 Posts 4 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.
  • A Offline
    A Offline
    AbhiHcl
    wrote on last edited by
    #1

    HI , I am creating CListCtrl at run time and paining its row using CustomeDraw. But If any control is behind the list control, I am able to see and press. How to draw the list control over another control.

    M A D N 4 Replies Last reply
    0
    • A AbhiHcl

      HI , I am creating CListCtrl at run time and paining its row using CustomeDraw. But If any control is behind the list control, I am able to see and press. How to draw the list control over another control.

      M Offline
      M Offline
      MANISH RASTOGI
      wrote on last edited by
      #2

      Make it child of the control.

      A 1 Reply Last reply
      0
      • M MANISH RASTOGI

        Make it child of the control.

        A Offline
        A Offline
        AbhiHcl
        wrote on last edited by
        #3

        I created ListCtrl on Btn Click as child of dialog. But controls that are already exist on the dialog they are getting diaply over the List control? How to resolve this issue?

        M 1 Reply Last reply
        0
        • A AbhiHcl

          I created ListCtrl on Btn Click as child of dialog. But controls that are already exist on the dialog they are getting diaply over the List control? How to resolve this issue?

          M Offline
          M Offline
          MANISH RASTOGI
          wrote on last edited by
          #4

          Change the position of listctrl using MoveWindow Or SetWindowPos.

          A 1 Reply Last reply
          0
          • M MANISH RASTOGI

            Change the position of listctrl using MoveWindow Or SetWindowPos.

            A Offline
            A Offline
            AbhiHcl
            wrote on last edited by
            #5

            This is not I am expecting

            1 Reply Last reply
            0
            • A AbhiHcl

              HI , I am creating CListCtrl at run time and paining its row using CustomeDraw. But If any control is behind the list control, I am able to see and press. How to draw the list control over another control.

              A Offline
              A Offline
              AbhiHcl
              wrote on last edited by
              #6

              Hi, Is there any one to solve this issue?

              1 Reply Last reply
              0
              • A AbhiHcl

                HI , I am creating CListCtrl at run time and paining its row using CustomeDraw. But If any control is behind the list control, I am able to see and press. How to draw the list control over another control.

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                A much better solution would be to create the control at design time and then just show/hide it when necessary.

                "One man's wage rise is another man's price increase." - Harold Wilson

                "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                "Man who follows car will be exhausted." - Confucius

                1 Reply Last reply
                0
                • A AbhiHcl

                  HI , I am creating CListCtrl at run time and paining its row using CustomeDraw. But If any control is behind the list control, I am able to see and press. How to draw the list control over another control.

                  N Offline
                  N Offline
                  Niklas L
                  wrote on last edited by
                  #8

                  Can you show how you created the control? The fact that it's custom draw is probably not the issue here.

                  home

                  A 1 Reply Last reply
                  0
                  • N Niklas L

                    Can you show how you created the control? The fact that it's custom draw is probably not the issue here.

                    home

                    A Offline
                    A Offline
                    AbhiHcl
                    wrote on last edited by
                    #9

                    this->CreateEx(WS_EX_TOPMOST,WS_CHILD | WS_VISIBLE |LVS_REPORT |LVS_NOCOLUMNHEADER|LBS_HASSTRINGS|LVS_EX_TRACKSELECT|WS_TABSTOP ,rect, pWnd,nID); this->SetWindowPos(&wndTop,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE); // here I m setting this control on the top.

                    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