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. Painting without WM_PAINT

Painting without WM_PAINT

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

    Is there a way to paint pictures without using WM_PAINT. Thanks in Advance Dipeka.A.J

    A M 2 Replies Last reply
    0
    • D dipeka

      Is there a way to paint pictures without using WM_PAINT. Thanks in Advance Dipeka.A.J

      A Offline
      A Offline
      Arsalan Malik
      wrote on last edited by
      #2

      Do you mean without sending WM_PAINT message or without handling WM_PAINT event? ARSALAN MALIK

      D 1 Reply Last reply
      0
      • A Arsalan Malik

        Do you mean without sending WM_PAINT message or without handling WM_PAINT event? ARSALAN MALIK

        D Offline
        D Offline
        dipeka
        wrote on last edited by
        #3

        I mean WM_PAINT message. Dipeka.A.J

        A 1 Reply Last reply
        0
        • D dipeka

          I mean WM_PAINT message. Dipeka.A.J

          A Offline
          A Offline
          Arsalan Malik
          wrote on last edited by
          #4

          You can get pointer to device context (CDC) by using any of these functions: GetClientDC(), GetPaintDC(). You will not need to send/handle WM_PAINT message:) ARSALAN MALIK

          1 Reply Last reply
          0
          • D dipeka

            Is there a way to paint pictures without using WM_PAINT. Thanks in Advance Dipeka.A.J

            M Offline
            M Offline
            Moak
            wrote on last edited by
            #5

            dipeka wrote: Is there a way to paint pictures without using WM_PAINT. Probably handle WM_PAINT as usual. When you need something repainted then invalidate that area (or the whole client area) and your paint handler will do the rest. But I am not so sure what you try to achieve. In Win32 InvalidateRect() UpdateWindow() that is. /Moak

            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