明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2058|回复: 4

[求助]怎样制作程序的启动界面?

[复制链接]
发表于 2004-8-16 12:54:00 | 显示全部楼层 |阅读模式
怎样制作程序的启动界面?
我用Splash screen控件做,但是不知道用什么方法得到AutoCAD的CWnd对象....
发表于 2004-8-16 14:04:00 | 显示全部楼层
K030.arx.plus.all\samples\ARXDBG 一个自带的sample //////////////////////////////// CWnd*
ArxDbgApp::startSplashScreen()
{
CString bmpFileName = appPath();
bmpFileName += _T("support\\ArxDbgSplash.bmp"); // TBD: make this better later! // make sure file is there (either in a main directory, which is
// where someone would install it, or for developers, go out of
// "Debug" directory and up to the main directory.
CFileStatus status;
BOOL success = CFile::GetStatus(bmpFileName, status);
if (success == FALSE) {
bmpFileName = appPath();
bmpFileName += _T("..\\support\\ArxDbgSplash.bmp"); // TBD: make this better later! success = CFile::GetStatus(bmpFileName, status);
} if (success) {
ArxDbgUiDlgSplash* dbox = new ArxDbgUiDlgSplash(bmpFileName);
dbox->setTextStrings(appName(), versionStr(), _T(""), _T("")); // TBD: have to do this manually right now, although it should
// have worked to pass up resource handle through the constructor!
acDocManager->pushResourceHandle(dllInstance());
dbox->Create(acedGetAcadDwgView());
acDocManager->popResourceHandle(); dbox->ShowWindow(SW_SHOW);
dbox->UpdateWindow(); return dbox;
}
else { // intended a splash screen but could not find it!
acutPrintf(_T("\nCould not find splash box image: \"%s\""), bmpFileName);
return NULL;
}
} 调用的时候: 在AcRx::AppRetCode ArxDbgApp::initApp()里面这么写: CWnd* splashScreen = startSplashScreen();
发表于 2004-11-15 11:42:00 | 显示全部楼层
你的这段代码截的太高了!让我们干眼馋就是用不了,缺好多东西!!


有这段源吗的朋友给上传一个,多谢!!
发表于 2004-11-15 12:09:00 | 显示全部楼层
发表于 2004-11-15 14:38:00 | 显示全部楼层
多谢,那页我看过,好象和以上的不是一回事!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-26 10:46 , Processed in 0.162796 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表