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. refreshing windows

refreshing windows

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 had an SDI with some dialogs and through user inputs in the dialogs, i show my graphics in the SDI view using OpengGL rendering.But I was wondering why windows doesn't auto-refresh the view for me because as my dialog is in front of my view, whenever the dialog is shifted or moved, a white patch of the dialog'outline will overlap onto my graphics in the view... I do not know how to refresh my view again in this case...can anyone help?

    A 1 Reply Last reply
    0
    • C coda_x

      I had an SDI with some dialogs and through user inputs in the dialogs, i show my graphics in the SDI view using OpengGL rendering.But I was wondering why windows doesn't auto-refresh the view for me because as my dialog is in front of my view, whenever the dialog is shifted or moved, a white patch of the dialog'outline will overlap onto my graphics in the view... I do not know how to refresh my view again in this case...can anyone help?

      A Offline
      A Offline
      Atif Mushtaq
      wrote on last edited by
      #2

      You will have to re display ure image in this cse .Use OnPaint event handler for this. No Worries!

      C 1 Reply Last reply
      0
      • A Atif Mushtaq

        You will have to re display ure image in this cse .Use OnPaint event handler for this. No Worries!

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

        thanx for replying. Can u elaborate on how i can re-display my image properly? My OpenGl coding was done in the dialog.cpp, then i should code the re-display in the view class OnPaint handler? I tried the following in the View class ONPAint message handler but unable to work: Void ProjectView:: OnPaint() { CPaintDC dc(this); InValidate(); UpdateWindow(); }

        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