How to create splashwindow on MFC?
-
up. Before the main frame is created I want to display splashwindow for 3 seconds. how to do it?
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 toSplashWnd
and insert it into your project.
"I Think this Will Help" [Vote One Here,.....]
visit me at http://www.thisisalok.tk
-
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 toSplashWnd
and insert it into your project.
"I Think this Will Help" [Vote One Here,.....]
visit me at http://www.thisisalok.tk
-
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
-
you use it during the creation of the Frame window...just make it invisible... after the time expires, make it visible..ok? -V.G
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; }
Thenvoid 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? -
you use it during the creation of the Frame window...just make it invisible... after the time expires, make it visible..ok? -V.G