-
一个华丽的界面
使用方法
方法一:
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
-
颜色对话框的使用
颜色对话框的使用-the use of color dialog
- 2022-02-28 20:29:27下载
- 积分:1
-
用tab键代替回车键的例子,共同研究共同学习!
用tab键代替回车键的例子,共同研究共同学习!- Replaces the carriage return key with the tab key the example,
studies together studies together!
- 2022-04-15 01:25:08下载
- 积分:1
-
不规则窗口实现代码。任意画的不规则对话框窗口,甚至有抠的圆孔。...
不规则窗口实现代码。任意画的不规则对话框窗口,甚至有抠的圆孔。-Irregular code window. Arbitrary irregular painting dialog window, or even dig out the hole.
- 2023-03-10 20:55:04下载
- 积分:1
-
VC开发的时钟动画,
可以学习一下。
VC开发的时钟动画,
可以学习一下。-development of the VC clock animation, we can learn from this.
- 2022-01-26 01:01:07下载
- 积分:1
-
利用VB做出一个真正的Vista窗体,VB制作漂亮的界面不再难
利用VB做出一个真正的Vista窗体,VB制作漂亮的界面不再难-The use of VB to make a real Vista form, VB is no longer difficult to create a beautiful interface!!!
- 2022-04-13 03:09:31下载
- 积分:1
-
一个不规则窗体的例子
一个不规则窗体的例子-An example of irregular form
- 2022-02-06 06:11:22下载
- 积分:1
-
一个简单的对话框演示程序,对话框是一个演示如何使用…
一个简单的对话框演示程序,演示对话框是如何使用和开发的-a simple dialog box demo program, the dialog is a demonstration on how to use and development
- 2022-07-25 13:27:43下载
- 积分:1
-
预览式文本文件选择对话框示例, PASCAL + API 编制
预览式文本文件选择对话框示例, PASCAL + API 编制-preview text file selection dialog example, the preparation of API PASCAL
- 2022-02-18 16:17:36下载
- 积分:1
-
一个类似tip的东西,但比编写tip要简单。仅为抛砖引玉。
一个类似tip的东西,但比编写tip要简单。仅为抛砖引玉。-a similar tip things, but more than prepared to simple tip. Only congregate.
- 2023-08-22 08:00:02下载
- 积分:1