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 know if a CFormView is visible?

How to know if a CFormView is visible?

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

    Hi there! I have a derived class from CFormView, and sice this form needs to load lots of data, I would like to show a progress bar that is already in the form. If I do the load and show the progress in the OnInitialUpdate(), I cannot see the progress going! I've tried to do a PostMessage in the OnInitialUpdate, and manage the message afterwards... but no progress in sight! I also tried to do a PostMessage in the OnShowWindow when the bShow is TRUE. Again not yet visible! Does any one knows what message should I catch after the form is visible? I'm using a variable to count if its the first time I have a Paint... but it seems that its not the way to do it... Thanks for your time in advance.

    A 1 Reply Last reply
    0
    • A almc

      Hi there! I have a derived class from CFormView, and sice this form needs to load lots of data, I would like to show a progress bar that is already in the form. If I do the load and show the progress in the OnInitialUpdate(), I cannot see the progress going! I've tried to do a PostMessage in the OnInitialUpdate, and manage the message afterwards... but no progress in sight! I also tried to do a PostMessage in the OnShowWindow when the bShow is TRUE. Again not yet visible! Does any one knows what message should I catch after the form is visible? I'm using a variable to count if its the first time I have a Paint... but it seems that its not the way to do it... Thanks for your time in advance.

      A Offline
      A Offline
      Arcrest
      wrote on last edited by
      #2

      why not use a splash screen?

      A 1 Reply Last reply
      0
      • A Arcrest

        why not use a splash screen?

        A Offline
        A Offline
        almc
        wrote on last edited by
        #3

        Yes it could be. And I also could use a dialog with a progress, which I already have. But, I don't want them! Besides, the problem remains, and I don't want a workarround (wich I already have, via the WM_PAINT). The real problem is: why do I get a WM_SHOWWINDOW message and the form is not visible? What message sould I expect after the form is shown? I don't want a workarround, just to understand the message sequence... ALMC

        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