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. ListControl Problem

ListControl Problem

Scheduled Pinned Locked Moved C / C++ / MFC
c++jsonhelp
3 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.
  • R Offline
    R Offline
    Rahul U Kate
    wrote on last edited by
    #1

    Hi to All, I am facing one problem for ListControl. I have developed one dialog based project VC++ 6.0,on that dialog I have taken one ListControl.Problem is that list control is not refreshed when I minimize and restored a window.Means it is not repainted.Note that this is only happened When focus is on the ListControl. When I am used InvalidateRect() API over that listControl it is not repainted scrollbar of ListControl.Scroll Bar of listControl is not diaplayed I am waiting for ur reply, Rahul sf

    D M 2 Replies Last reply
    0
    • R Rahul U Kate

      Hi to All, I am facing one problem for ListControl. I have developed one dialog based project VC++ 6.0,on that dialog I have taken one ListControl.Problem is that list control is not refreshed when I minimize and restored a window.Means it is not repainted.Note that this is only happened When focus is on the ListControl. When I am used InvalidateRect() API over that listControl it is not repainted scrollbar of ListControl.Scroll Bar of listControl is not diaplayed I am waiting for ur reply, Rahul sf

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

      Why are you using InvalidateRect() with a list control?


      "One must learn from the bite of the fire to leave it alone." - Native American Proverb

      1 Reply Last reply
      0
      • R Rahul U Kate

        Hi to All, I am facing one problem for ListControl. I have developed one dialog based project VC++ 6.0,on that dialog I have taken one ListControl.Problem is that list control is not refreshed when I minimize and restored a window.Means it is not repainted.Note that this is only happened When focus is on the ListControl. When I am used InvalidateRect() API over that listControl it is not repainted scrollbar of ListControl.Scroll Bar of listControl is not diaplayed I am waiting for ur reply, Rahul sf

        M Offline
        M Offline
        muthuramji
        wrote on last edited by
        #3

        Dear friend, Interesting challenge, i tried this out find if this solution suits u ! //////---- Start only during minimize & restore u have this problem, ///// 1.so get OnCaptureChanged event handler of u r window /// 2.Send message to window to focus u r dialog // / void CModallessDlg::OnCaptureChanged(CWnd *pWnd) { SendMessage (WM_SETFOCUS,0,0); CDialog::OnCaptureChanged(pWnd); } Muthu Ramji.Al.V Software Developer(VC++) Sify Limited muthu_ramji@sifycorp.com

        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