-
一个华丽的界面
使用方法
方法一:
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
-
《座在窗子上的MM》源程序,用易语言写的
《座在窗子上的MM》源程序,用易语言写的-"in the window seat on the MM," the source, easy to use written language
- 2022-03-25 16:34:53下载
- 积分:1
-
让任务栏图标弹出气球提示
让任务栏图标弹出气球提示-allow pop icon task bar balloon suggest
- 2022-01-25 20:00:32下载
- 积分:1
-
VC routines : that the procedure was prepared by the VC complete curriculum vita...
VC例程:该程序是由VC编写的简历打印完整VC代码,供学习用-VC routines : that the procedure was prepared by the VC complete curriculum vitae Print VC code used for learning
- 2022-07-14 02:02:21下载
- 积分:1
-
此程序在VC++ 6环境下实现USB接口的数据采集…
本程序在VC++6.0的环境下实现USB接口数据的采集和在计算机上显示所采集到的数据-This procedure in VC++ 6.0 environment to achieve USB interface data acquisition and computer display collected data
- 2022-12-23 09:45:03下载
- 积分:1
-
a small program that can chage its size of the form,controled by your operation.
a small program that can chage its size of the form,controled by your operation.
- 2022-05-23 13:49:46下载
- 积分:1
-
一个登陆对话框的界面实现,很使用的一个例子, 加入自己的图片就可以做出来漂亮的登陆界面...
一个登陆对话框的界面实现,很使用的一个例子, 加入自己的图片就可以做出来漂亮的登陆界面-Landing of a dialog box interface, it is an example of the use, by adding your own picture you can make out pretty Landing Interface
- 2022-03-05 03:28:13下载
- 积分:1
-
MFC的单文档多视图切换的关键代码。
程序结构比较简单,便于初学者学习。...
MFC的单文档多视图切换的关键代码。
程序结构比较简单,便于初学者学习。-MFC single document multi-view the key code switch. The procedure is relatively simple structure, easy for beginners to learn.
- 2022-03-12 14:33:56下载
- 积分:1
-
一个不规则区域的对话框的例子
一个不规则区域的对话框的例子--An example of irregular area dialog box
- 2022-06-20 21:19:31下载
- 积分:1
-
在对话框中添加一个漂亮的属性页,VC++ 6下调试通过…
在对话框中加入漂亮属性页,VC++6.0调试通过-In the dialog box by adding a beautiful property page, VC++ 6.0 debugging through
- 2022-08-22 18:25:27下载
- 积分:1