-
一个华丽的界面
使用方法
方法一:
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
-
floating panels, a considerable use of floating panels
浮动面板,相当使用的浮动面板-floating panels, a considerable use of floating panels
- 2022-08-13 17:29:01下载
- 积分:1
-
this program is to use MVC model prepared by the small programs, to share learni...
本程序是使用MVC模式进行编写的小程序,分享大家共同学习。-this program is to use MVC model prepared by the small programs, to share learning together.
- 2022-01-26 06:44:20下载
- 积分:1
-
在对话框中绘制图像,同时保证不闪屏,采用了双缓存技术
在对话框中绘制图像,同时保证不闪屏,采用了双缓存技术-Rendering images in the dialog box, at the same time guarantees of non-flash screen, use of double-buffering technology
- 2022-08-04 01:26:07下载
- 积分:1
-
此代码用来为SDI程序快速的加入一个漂亮的标题窗口,代码是不难,属于初级水平。在源代码中有一些注释,即使是对于初学者也很容易明白。这个标题窗口支持不同颜色的文字...
此代码用来为SDI程序快速的加入一个漂亮的标题窗口,代码是不难,属于初级水平。在源代码中有一些注释,即使是对于初学者也很容易明白。这个标题窗口支持不同颜色的文字,文字阴影,背景,字体的尺寸和类型,字体在窗口中的位置等。同时也支持背景的渐变色背景。
-this code SDI procedures used to the rapid accession to the title of a beautiful window, the code is not difficult and is in the initial level. The source code, have some notes, even for beginners can easily understand. The title of the window to support different colors of text, text shadows, background, the font size and type fonts in the window of the location. Also supporting the background color gradient background.
- 2022-04-06 16:40:53下载
- 积分:1
-
一个Wizard的例子
一个Wizard的例子--An example of Wizard
- 2022-08-10 02:30:16下载
- 积分:1
-
Winamp样式的自动停靠对话框
Winamp样式的自动停靠对话框
Winamp样式的自动停靠对话框
Winamp样式的自动停靠对话框-Winamp-style dialog box automatically docked automatically docked Winamp-style dialog box
- 2022-04-21 06:55:43下载
- 积分:1
-
qt的不同风格的界面,包括windows,windowsxp,cde,motif和自定义的norwaywood。...
qt的不同风格的界面,包括windows,windowsxp,cde,motif和自定义的norwaywood。-qt of the different styles of interface, including windows, windowsxp, cde, motif, and custom norwaywood.
- 2022-03-12 07:17:49下载
- 积分:1
-
VC6 high
VC6高级编程范例第一章――系统与窗口-VC6 high-level programming paradigm first chapter-- and the window system
- 2022-02-25 14:16:44下载
- 积分:1
-
一个简单的窗口程序,对于初学者理解windows程序原理和上路会有一定的帮助...
一个简单的窗口程序,对于初学者理解windows程序原理和上路会有一定的帮助-A simple window procedure, for beginners to understand the principles and the road windows program will help
- 2022-07-21 04:05:37下载
- 积分:1