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 Onpaint only when dialog is receiving user inputs?

how to call Onpaint only when dialog is receiving user inputs?

Scheduled Pinned Locked Moved C / C++ / MFC
graphicshelptutorialquestion
3 Posts 2 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.
  • C Offline
    C Offline
    coda_x
    wrote on last edited by
    #1

    i have a main dialog containing 3 child dialogs. I created a COpenglclass in main dialog such that any image visualization will take place in the main dialog. But i do not know how to detect that if any child dialogs are accessed only then will my drawing code in the COpengl class take in data from the child dialog and show the relevant image. need help on this urgently

    S 1 Reply Last reply
    0
    • C coda_x

      i have a main dialog containing 3 child dialogs. I created a COpenglclass in main dialog such that any image visualization will take place in the main dialog. But i do not know how to detect that if any child dialogs are accessed only then will my drawing code in the COpengl class take in data from the child dialog and show the relevant image. need help on this urgently

      S Offline
      S Offline
      Stan the man
      wrote on last edited by
      #2

      Is it possible just to use the child's msg when it receives focus or something along those lines and then react and do whatever you want.

      C 1 Reply Last reply
      0
      • S Stan the man

        Is it possible just to use the child's msg when it receives focus or something along those lines and then react and do whatever you want.

        C Offline
        C Offline
        coda_x
        wrote on last edited by
        #3

        thanx for replying. i am considering alternative or setting state flags but i not sure how to code that in child dialog and view class's Onpaint().can you illustrate?

        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