文件名称:BeautifulFace
- 所属分类:
- 对话框与窗口
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 145kb
- 下载次数:
- 0次
- 提 供 者:
- 黄**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一个华丽的界面
使用方法
方法一:
ModifyStyle( WS_CAPTION, WS_MINIMIZEBOX, SWP_DRAWfr a me ) //设置图标
方法二:
不用上面的,但是要去掉对话框的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_DRAWfr a me)// Settings icon two ways : not above, However, to remove the title attribute dialog void CPageDlg : : OnPaint () (if (IsIconic ()) (...) else (//CDia log : : OnPaint ()// must remove the sentence CPaintDC dc (this)// Dialog dc CDC dcMem dcMem.CreateCompatibleDC (
使用方法
方法一:
ModifyStyle( WS_CAPTION, WS_MINIMIZEBOX, SWP_DRAWfr a me ) //设置图标
方法二:
不用上面的,但是要去掉对话框的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_DRAWfr a me)// Settings icon two ways : not above, However, to remove the title attribute dialog void CPageDlg : : OnPaint () (if (IsIconic ()) (...) else (//CDia log : : OnPaint ()// must remove the sentence CPaintDC dc (this)// Dialog dc CDC dcMem dcMem.CreateCompatibleDC (
(系统自动生成,下载前可以参看下载内容)
下载文件列表
漂亮的界面
..........\ColorButton.cpp
..........\ColorButton.h
..........\ColorStatic.cpp
..........\ColorStatic.h
..........\Interface.clw
..........\Page.aps
..........\Page.cpp
..........\Page.dsp
..........\Page.dsw
..........\Page.exe
..........\Page.h
..........\Page.ncb
..........\Page.opt
..........\Page.plg
..........\Page.rc
..........\PageDlg.cpp
..........\PageDlg.h
..........\RES
..........\...\123.BMP
..........\...\124.BMP
..........\...\125.BMP
..........\...\126.BMP
..........\...\128.BMP
..........\...\129.BMP
..........\...\131.BMP
..........\...\132.BMP
..........\...\background.bmp
..........\...\HAND.CUR
..........\...\hand_v.cur
..........\...\Page.ico
..........\...\Page.rc2
..........\Resource.h
..........\StdAfx.cpp
..........\StdAfx.h
..........\使用方法.txt
..........\类.rar
..........\ColorButton.cpp
..........\ColorButton.h
..........\ColorStatic.cpp
..........\ColorStatic.h
..........\Interface.clw
..........\Page.aps
..........\Page.cpp
..........\Page.dsp
..........\Page.dsw
..........\Page.exe
..........\Page.h
..........\Page.ncb
..........\Page.opt
..........\Page.plg
..........\Page.rc
..........\PageDlg.cpp
..........\PageDlg.h
..........\RES
..........\...\123.BMP
..........\...\124.BMP
..........\...\125.BMP
..........\...\126.BMP
..........\...\128.BMP
..........\...\129.BMP
..........\...\131.BMP
..........\...\132.BMP
..........\...\background.bmp
..........\...\HAND.CUR
..........\...\hand_v.cur
..........\...\Page.ico
..........\...\Page.rc2
..........\Resource.h
..........\StdAfx.cpp
..........\StdAfx.h
..........\使用方法.txt
..........\类.rar