vs2008 添加启动画面(基于对话框)
基于对话框的工程实现。
1. 手动添加CSplashWnd类
SplashWnd.h
CenterWindow();CSplashWnd::ShowSplashScreen(this);if (CDialog::OnCreate(lpCreateStruct) == -1)return -1;// TODO: 在此添加您专用的创建代码 // this->MoveWindow(0,0,0,0); // this->SetTimer(1,2000,NULL);//注意这个2000一点要等于步骤1中的2000 Sleep(1000);//使得 画面停止约 1s后 启动主画面,貌似可以用定时器,希望大虾指教。 1000 要与SetTimer中1000 同步,使画面链接流畅return 0;