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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to create splashwindow on MFC?

How to create splashwindow on MFC?

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

    up. Before the main frame is created I want to display splashwindow for 3 seconds. how to do it?

    T 1 Reply Last reply
    0
    • B bilas

      up. Before the main frame is created I want to display splashwindow for 3 seconds. how to do it?

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      Add A Splash window Control in your project. you can find Splash window Control here -> Project->add to Project->Component and Controls Select Directory ->Visual C++ Components and scroll to SplashWnd and insert it into your project.


      "I Think this Will Help" [Vote One Here,.....]

      visit me at http://www.thisisalok.tk
      V 1 Reply Last reply
      0
      • T ThatsAlok

        Add A Splash window Control in your project. you can find Splash window Control here -> Project->add to Project->Component and Controls Select Directory ->Visual C++ Components and scroll to SplashWnd and insert it into your project.


        "I Think this Will Help" [Vote One Here,.....]

        visit me at http://www.thisisalok.tk
        V Offline
        V Offline
        V G
        wrote on last edited by
        #3

        hi!! You can just create a dialog window... and use "BitBlt" to display any bitmap... add a timer control..and after the timer expires... start the app.. hope you fing this useful - V.G

        B 1 Reply Last reply
        0
        • V V G

          hi!! You can just create a dialog window... and use "BitBlt" to display any bitmap... add a timer control..and after the timer expires... start the app.. hope you fing this useful - V.G

          B Offline
          B Offline
          bilas
          wrote on last edited by
          #4

          But I can't use Timer in PreCreateWindof function. :)

          V 1 Reply Last reply
          0
          • B bilas

            But I can't use Timer in PreCreateWindof function. :)

            V Offline
            V Offline
            V G
            wrote on last edited by
            #5

            you use it during the creation of the Frame window...just make it invisible... after the time expires, make it visible..ok? -V.G

            B A 2 Replies Last reply
            0
            • V V G

              you use it during the creation of the Frame window...just make it invisible... after the time expires, make it visible..ok? -V.G

              B Offline
              B Offline
              bilas
              wrote on last edited by
              #6

              I think about this: BOOL CRightHTMLView::PreCreateWindow(CREATESTRUCT& cs) { MSG message; int i=0; m_nTimer = SetTimer(1, 100, NULL); // Can't set timer here, 'cos window //is not created yet:confused: ASSERT(m_nTimer!=0); if(i==0) { dlg->DoModal(); // Here I call for dialog with image if(::PeekMessage(&message, NULL, 0, 0, PM_REMOVE)) { ::TranslateMessage(&message); ::DispatchMessage(&message); } i = 1; } Then void CRightHTMLView::OnTimer(UINT nIDEvent) { // TODO: Add your message handler code here and/or call default Sleep(3000); dlg->DestroyWindow(); KillTimer(1); CHtmlView::OnTimer(nIDEvent); } Did you mean the same?

              1 Reply Last reply
              0
              • V V G

                you use it during the creation of the Frame window...just make it invisible... after the time expires, make it visible..ok? -V.G

                A Offline
                A Offline
                Anonymous
                wrote on last edited by
                #7

                Thank you! I did it :)

                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