社区
VC.NET
帖子详情
vc.net中如何加入起始屏CSplashWnd?
baosn
2004-12-13 09:41:19
在vc.net中怎么找不到Components&Controls这一项?
...全文
54
1
打赏
收藏
vc.net中如何加入起始屏CSplashWnd?
在vc.net中怎么找不到Components&Controls这一项?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
北京的雾霾天
2004-12-13
打赏
举报
回复
可以用一个普通的窗体来显示啊,没有什么现成的组件什么的来使用.
Components&Controls找不到,怎么会呢,VC6.0里的控件在VC.NET里都有啊,如果你是托管的程序还可以用Winforms的控件.如果不是只有VC6.0里的控件.
基于
CSplashWnd
的
VC
窗体启动效果.rar
基于
CSplashWnd
的
VC
窗体启动效果,本框架程序是用来测试
CSplashWnd
,如果你没有看见Splash画面,可能是因为图片文件不存在。请将根目录下的fx.jpg拷贝到Debug目录下,这样就能看到启动画面效果了,是不是很棒? 下面有一个带动画效果的启动窗体,也可参考:
VC
在启动窗口时显示动画效果和文字渐变
CSplashWnd
CSplashWnd
CSplashWnd
CSplashWnd
CSplashWnd
VC
窗体特效:带淡入淡出渐变的启动画面窗体.rar
VC
动态效果的淡入淡出渐变窗口实例,
VC
窗体特效:带淡入淡出渐变的启动画面窗体,主要是使用C AnimiateWindow函数来实现的。测试环境:WindowsXP,
VC
6.0,如果编译不了,检查菜单Project->Setting里面是否选择了静态或者共享MFC类,还包括有启动画面类,继承CWnd窗口类,主要窗体程序类,继承CWnd窗口类,主体程序类, 继承CWinApp程序类。
CSplashWnd
*m_pSplashWnd;//建立启动画面窗口变量 m_pSplashWnd = new
CSplashWnd
();//建立一个窗口实体 m_pSplashWnd ->CenterWindow();//窗口显示在
屏
幕
中
心 m_pSplashWnd ->ShowWindow(m_nCmdShow);//显示窗口 m_pSplashWnd ->UpdateWindow(); Sleep(3000); //延时3秒 m_pSplashWnd ->CloseWindow();//销毁窗口 delete m_pSplashWnd;//消除窗口变量
电子元器件绘制系统
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CFrameWnd::OnCreate(lpCreateStruct) == -1) return -1; //this->Create(NULL,"元器件绘制系统",WS_MAXIMIZE); if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndToolBar.LoadToolBar(IDR_MAINFRAME)) { TRACE0("Failed to create toolbar\n"); return -1; // fail to create } if (!m_wndToolBarDraw.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndToolBarDraw.LoadToolBar(IDR_DRAW_ICCHIP)) { TRACE0("Failed to create toolbar\n"); return -1; // fail to create } if (!m_wndStatusBar.Create(this) || !m_wndStatusBar.SetIndicators(indicators, sizeof(indicators)/sizeof(UINT))) { TRACE0("Failed to create status bar\n"); return -1; // fail to create } // TODO: Delete these three lines if you don't want the toolbar to // be dockable m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY); EnableDocking(CBRS_ALIGN_ANY); DockControlBar(&m_wndToolBar); m_wndToolBarDraw.EnableDocking(CBRS_ALIGN_ANY); DockControlBar(&m_wndToolBarDraw); this->FloatControlBar(&m_wndToolBarDraw,CPoint(30,120)); //m_wndToolBarDraw.SetSizes(CSize(25+7,25+6),CSize(25,25)); // CG: The following line was added by the Splash Screen component. //
CSplashWnd
::ShowSplashScreen(this); // CG: The following line was added by the Splash Screen component.
CSplashWnd
::ShowSplashScreen(this); return 0; }
VC
单文档
中
加入
屏
闪信息
1. 插入
屏
闪组件:Project -> Add To Project -> Component and Controls -> Visual C++ Components -> Splash screen -> Insert -> Close 2. 此时会发现系统自动生成了类
CSplashWnd
,
屏
闪信息就在这个类里面,默认是闪了一副图片,其实闪...
VC.NET
7,540
社区成员
27,673
社区内容
发帖
与我相关
我的任务
VC.NET
.NET技术 VC.NET
复制链接
扫一扫
分享
社区描述
.NET技术 VC.NET
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章