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. disable paint messages to a control

disable paint messages to a control

Scheduled Pinned Locked Moved C / C++ / MFC
c++data-structuresjsonhelpquestion
5 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.
  • F Offline
    F Offline
    flippydeflippydebop
    wrote on last edited by
    #1

    hey there, I would like to disable paint-updates to my tree control while i fill it with data using MFC, but cant find the api to use.. can anybody help?

    T N 2 Replies Last reply
    0
    • F flippydeflippydebop

      hey there, I would like to disable paint-updates to my tree control while i fill it with data using MFC, but cant find the api to use.. can anybody help?

      T Offline
      T Offline
      Tony Hill
      wrote on last edited by
      #2

      Have you tried using LockWindowUpdate() and UnlockWindowUpdate().

      1 Reply Last reply
      0
      • F flippydeflippydebop

        hey there, I would like to disable paint-updates to my tree control while i fill it with data using MFC, but cant find the api to use.. can anybody help?

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

        flippydeflippydebop wrote:

        I would like to disable paint-updates to my tree control while i fill it with data using MFC, but cant find the api to use.. can anybody help?

        To switch off painting call SetRedraw( FALSE ). To turn painting on again SetRedraw( TRUE ).


        Nibu thomas A Developer Programming tips[^]  My site[^]

        F 1 Reply Last reply
        0
        • N Nibu babu thomas

          flippydeflippydebop wrote:

          I would like to disable paint-updates to my tree control while i fill it with data using MFC, but cant find the api to use.. can anybody help?

          To switch off painting call SetRedraw( FALSE ). To turn painting on again SetRedraw( TRUE ).


          Nibu thomas A Developer Programming tips[^]  My site[^]

          F Offline
          F Offline
          flippydeflippydebop
          wrote on last edited by
          #4

          cheers guys... I have just used lockWindowUpdate/UnlockWindowUpdate which works a treat.. thanks for your prompt replies...

          N 1 Reply Last reply
          0
          • F flippydeflippydebop

            cheers guys... I have just used lockWindowUpdate/UnlockWindowUpdate which works a treat.. thanks for your prompt replies...

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

            flippydeflippydebop wrote:

            I have just used lockWindowUpdate/UnlockWindowUpdate which works a treat..

            A locked window cannot be moved. :~


            Nibu thomas A Developer Programming tips[^]  My site[^]

            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