-
一个华丽的界面
使用方法
方法一:
ModifyStyle( WS_CAPTION, WS_MINIMIZEBOX, SWP_D...
一个华丽的界面
使用方法
方法一:
ModifyStyle( WS_CAPTION, WS_MINIMIZEBOX, SWP_DRAWFRAME ) //设置图标
方法二:
不用上面的,但是要去掉对话框的title属性
void CPageDlg::OnPaint()
{
if (IsIconic())
{
...
}
else
{
// CDialog::OnPaint() //一定要去掉该句
CPaintDC dc(this) //对话框的dc
CDC dcMem
dcMem.CreateCompatibleDC(&dc) //创建与对话框dc兼容的内存dc
CRect rect
GetClientRect(&rect)
BITMAP bitMap
m_bmpBackground.GetBitmap(&bitMap)
CBitmap *pbmpOld=dcMem.SelectObject(&m_bmpBackground) //将背景位图选入内存dc中
dc.StretchBlt(0,0,rect.Width(),rect.Height(),&dcMem,0,0,bitMap.bmWidth,bitMap.bmHeight,SRCCOPY) //将内存dc中的位图拉伸显示在对话框的dc中
//dc.BitBlt(0,0,rect.Width(),rect.Height(),&dcMem,0,0,SRCCOPY)
}
}
-a gorgeous interface to use a method : ModifyStyle (WS_CAPTION, WS_MINIMIZEBOX. SWP_DRAWFRAME)// Settings icon two ways : not above, However, to remove the title attribute dialog void CPageDlg : : OnPaint () (if (IsIconic ()) (...) e
- 2022-08-21 14:24:22下载
- 积分:1
-
基于单文档于视图结构,添加动态图标的示例。
基于单文档于视图结构,添加动态图标的示例。-based on single file at the View structure, add the icon dynamic examples.
- 2022-05-22 06:28:02下载
- 积分:1
-
Delphi7.0实现漂亮的汉字窗口,很好用,也很漂亮,不是垃圾
Delphi7.0实现漂亮的汉字窗口,很好用,也很漂亮,不是垃圾-Delphi7.0 achieve beautiful Chinese characters window is useful, very beautiful, not rubbish
- 2022-08-23 07:23:17下载
- 积分:1
-
自定义窗口分割条
自定义窗口分割条-Custom window partition Article
- 2022-07-15 11:44:34下载
- 积分:1
-
The use of C++ Prepared, mathematics multifunction calculator, and use some regu...
使用C++编写的数学多功能计算器,并使用一些正则表达式。
- 2022-06-01 10:45:17下载
- 积分:1
-
用VC++6制作的非模式对话框程序,非常适合入门者学习
用VC++6制作的非模式对话框程序,非常适合入门者学习-6 with VC model produced by the non- dialog procedures, very suitable for beginners learning
- 2022-02-11 14:25:26下载
- 积分:1
-
第7章透明窗体实例,程序简单,操作方便,具有很大的性能。
第7章 透明窗体实例,程序简易,容易操作,实用价值很大,可以为以后的程序增添透明效果-Chapter 7 transparent forms example, procedures simple, easy to operate, great practical value, the procedures for the future add transparency effects
- 2022-01-30 15:31:56下载
- 积分:1
-
本源程序演示了怎样访问View类中的公共变量!
本源程序演示了怎样访问View类中的公共变量!-The source code to demonstrate how to access View class public variables!
- 2023-07-04 09:45:03下载
- 积分:1
-
默认皮肤PNG源代码
默认皮肤PNG源代码-default skin PNG source code
- 2022-01-25 15:00:55下载
- 积分:1
-
windows application, the basic framework, and only a blank window and a blank di...
windows应用程序基本框架,只有空白的窗口和空白的对话框。适合初学者学习API编程,并在此基础上添加代码开发自己的窗口应用程序-windows application, the basic framework, and only a blank window and a blank dialog box. API suitable for beginners to learn programming, and on this basis, add the code to develop their own application window
- 2022-07-15 12:22:12下载
- 积分:1