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. Problem subclassing CHeaderCtrl OnPaint

Problem subclassing CHeaderCtrl OnPaint

Scheduled Pinned Locked Moved C / C++ / MFC
help
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.
  • L Offline
    L Offline
    Lea Johnson
    wrote on last edited by
    #1

    I am trying to redraw the CHeaderCtrl contained in a CListCtrl and would like to handle WM_PAINT messages. Problem is when I do the control never stops painting. Any help greatly appreciated

    J N 2 Replies Last reply
    0
    • L Lea Johnson

      I am trying to redraw the CHeaderCtrl contained in a CListCtrl and would like to handle WM_PAINT messages. Problem is when I do the control never stops painting. Any help greatly appreciated

      J Offline
      J Offline
      Jon Hulatt
      wrote on last edited by
      #2

      Post your OnPaint() code. Sounds like something you're doing in OnPaint() is causing another WM_PAINT message to be fired. Sorry to dissapoint you all with my lack of a witty or poignant signature.

      1 Reply Last reply
      0
      • L Lea Johnson

        I am trying to redraw the CHeaderCtrl contained in a CListCtrl and would like to handle WM_PAINT messages. Problem is when I do the control never stops painting. Any help greatly appreciated

        N Offline
        N Offline
        Nish Nishant
        wrote on last edited by
        #3

        You didnt put an UpdateWindow in your paint handler, did you? Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

        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