在主程序前先显示一个图片 我想在主程序前先显示一个图片,即运行程序时先显示一个bmp图象再进入主程序请问我该怎能么办? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 project -> add to project->components and controls 创建一个图片的模态对话框类CDlgSplash,里面有你想要的bmp然后在你的程序的InitInstance()函数里 CDlgSplash splash;splash.Create(IDD_DLG_SPLASH, NULL);CTime timeStart = CTime::GetCurrentTime()..这里你可以对对话框的其它内容如标题,时间进行设置到时间后,关掉对话框就可以了CTime timeCurrent = CTime:: GetCurrentTime();CTimeSpan timeSpan = timeCurrent-timeStart;for ( ;;){ timeCurrent = CTime:: GetCurrentTime(); timeSpan = timeCurrent-timeStart; if (timeSpan.GetTotalSeconds() >= 2) break; }splash.DestroyWindow();... CObList的使用 GDI+的save函数该用什么参数? 高分求!!!!文件打开? 我调试cstring在vc7中为什么跑到atl文件中呀。 有人说cstring在vc7中用atl封装了一下。 我写了个OCX给上层使用,我想在知道上层运行时OCX被设为了多大 release 中出错! 告诉我如何减压 我想找人帮我。。。。。我手里有一个工控项目,需要有人去做 各位专家求救! 请教一个关于DBlib的问题 急,流格式? 请问怎么在sql语句中带上参数?
然后在你的程序的InitInstance()函数里
CDlgSplash splash;
splash.Create(IDD_DLG_SPLASH, NULL);
CTime timeStart = CTime::GetCurrentTime()
..这里你可以对对话框的其它内容如标题,时间进行设置到时间后,关掉对话框就可以了
CTime timeCurrent = CTime:: GetCurrentTime();
CTimeSpan timeSpan = timeCurrent-timeStart;
for ( ;;){
timeCurrent = CTime:: GetCurrentTime();
timeSpan = timeCurrent-timeStart; if (timeSpan.GetTotalSeconds() >= 2) break;
}
splash.DestroyWindow();...