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. how to call default drawing when I use owner_draw?

how to call default drawing when I use owner_draw?

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicstutorial
4 Posts 4 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
    flyingxu
    wrote on last edited by
    #1

    I'd like to use owner_draw on a button, but I'd like to draw a little bit and let windows draw the left. How can I do this?

    M N S 3 Replies Last reply
    0
    • F flyingxu

      I'd like to use owner_draw on a button, but I'd like to draw a little bit and let windows draw the left. How can I do this?

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      If I remember correctly, you could call Default() (but I've been proven wrong many times) In my experience, either you do it or not do it; there is no middle ground when owner drawing controls.

      This signature was proudly tested on animals.

      1 Reply Last reply
      0
      • F flyingxu

        I'd like to use owner_draw on a button, but I'd like to draw a little bit and let windows draw the left. How can I do this?

        N Offline
        N Offline
        Naveen
        wrote on last edited by
        #3

        call DrawFrameControl[^] to get the default drawing.

        nave [OpenedFileFinder] [My Blog]

        1 Reply Last reply
        0
        • F flyingxu

          I'd like to use owner_draw on a button, but I'd like to draw a little bit and let windows draw the left. How can I do this?

          S Offline
          S Offline
          Stuart Dootson
          wrote on last edited by
          #4

          The easiest way is probably to let the button draw itself then draw over the top of it - so, call DefWindowProc at the start of your owner draw handler then do your own drawing

          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