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. Starting an MFC-based SDI app with window hidden. How?

Starting an MFC-based SDI app with window hidden. How?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++adobe
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.
  • S Offline
    S Offline
    Steve Schaneville
    wrote on last edited by
    #1

    I have an SDI app in MFC that, when started, I want the window to remain hidden. Currently I am calling m_pMainWnd->ShowWindow(SW_HIDE); from the MySDIApp::InitInstance() function. What currently happens is, the window is displayed for a split second, then goes away as I'd like it to (from there everything is working correctly). How do I avoid this flash of the window? Is there something I need to do before the InitInstance is called, and if so, how do I do that? Thanks!!! ~Steve

    M 1 Reply Last reply
    0
    • S Steve Schaneville

      I have an SDI app in MFC that, when started, I want the window to remain hidden. Currently I am calling m_pMainWnd->ShowWindow(SW_HIDE); from the MySDIApp::InitInstance() function. What currently happens is, the window is displayed for a split second, then goes away as I'd like it to (from there everything is working correctly). How do I avoid this flash of the window? Is there something I need to do before the InitInstance is called, and if so, how do I do that? Thanks!!! ~Steve

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      See the VC FAQ 7.6 I have a dialog-based app and want the dialog hidden on startup. How do I do this?[^] (the solution there should work for your app too) --Mike--    THERE IS NO     THERE IS NO    BUT THERE IS MAGIC PIXIE DUST  BUSINESS GENIE  CODE PROJECT :bob: Homepage | RightClick-Encrypt | 1ClickPicGrabber

      S 1 Reply Last reply
      0
      • M Michael Dunn

        See the VC FAQ 7.6 I have a dialog-based app and want the dialog hidden on startup. How do I do this?[^] (the solution there should work for your app too) --Mike--    THERE IS NO     THERE IS NO    BUT THERE IS MAGIC PIXIE DUST  BUSINESS GENIE  CODE PROJECT :bob: Homepage | RightClick-Encrypt | 1ClickPicGrabber

        S Offline
        S Offline
        Steve Schaneville
        wrote on last edited by
        #3

        Perfect! Thanks!!! ~Steve

        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