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. Refreshing problem in User Defined List Control (CListCtrl)

Refreshing problem in User Defined List Control (CListCtrl)

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++cssdebugginghelp
1 Posts 1 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.
  • B Offline
    B Offline
    BlrBoy
    wrote on last edited by
    #1

    Hello, I am using an user defined List Control in my application. (CXListCtrl provided by Mr. Hans in Code Project). If any other window (whose size is less than the size of Control size) is placed and removed that area is not repainted. When I checked OnPaint () of the implemeentation of control is left for default by calling Default () function. I tried to replace Invalidate () before that but it goes for indefinite loop as Invalidate () also invokes OnDraw function. I tested by invoking a notepad making the size of it less than the size of List control, place it on top the control and switch back to my application. I find the area of notepad being blank. Placing some TRACE Message I found that OnDraw () function of the control is called when i do that test. But since Default () function is called it is not painting that area. Can any one suggest me what can be done to avoid the repainting problem? I am developing an MFC SDI application in .NET environment on Windows XP. Thanks for your Time Ravi

    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