-
一个华丽的界面
使用方法
方法一:
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
-
实现了对话框应用程序在重设大小时控件的自动布局
实现了对话框应用程序在重设大小时控件的自动布局-achieved a dialog application to re-establish the size of the automatic layout of controls
- 2022-01-25 17:59:27下载
- 积分:1
-
一个Bin文件生成工具,主要对VC基本控件使用!
一个Bin文件生成工具,主要对VC基本控件使用!-a document generation tool, the main component of the basic use of VC!
- 2023-05-14 22:15:03下载
- 积分:1
-
利用grep工具在MFC对话框应用程序中实现查询功能。
利用grep工具在MFC对话框应用程序中实现查询功能。-Grep tool use MFC dialog box in the realization of the inquiry process.
- 2022-02-04 13:59:14下载
- 积分:1
-
此自定义位图(图像)预览控件。糟糕的代码。
This custom bitmap(image) preview control. poor code.-This is custom bitmap(image) preview control. poor code.
- 2023-04-02 17:40:03下载
- 积分:1
-
一个不错的颜色拾取器
一个不错的颜色拾取器-a good color for picking
- 2023-05-21 01:55:03下载
- 积分:1
-
该程序能够模拟进程的调度过程,在dos界面下.用户可以按自己的要求来创建进程并对他们进行调度.
该程序能够模拟进程的调度过程,在dos界面下.用户可以按自己的要求来创建进程并对他们进行调度.-the program can simulate the process of scheduling process, the dos interface. Users can have its own requirements as well as the process of creating their scheduling.
- 2023-07-07 14:15:03下载
- 积分:1
-
采用VC编写的灰度线性变换程序,是一个很好的学习及理解灰度线性变换的资料,同时也可以借此了解VC中对话框的设置...
采用VC编写的灰度线性变换程序,是一个很好的学习及理解灰度线性变换的资料,同时也可以借此了解VC中对话框的设置-VC prepared using gray linear transformation process, is a very good learning and understanding linear gray-scale transform information, but also to learn about the VC in the dialog box settings
- 2022-03-14 11:30:33下载
- 积分:1
-
基于MFC,到目前为止最好用最美观的ToolTip,支持VS2008
基于MFC,到目前为止最好用最美观的ToolTip,支持VS2008-Based on MFC, so far the best in the most beautiful ToolTip, support for VS2008
- 2023-07-16 20:15:04下载
- 积分:1
-
使用VC++建立对话框,使用MFC编程的第一步。
使用VC++建立对话框,使用MFC编程的第一步。-Share it to ALL
- 2022-03-01 16:00:42下载
- 积分:1