-
一个猜数字游戏的程序,在程序的开始自动生成100内的数字,用户可以根据提示信息输入猜测答案...
一个猜数字游戏的程序,在程序的开始自动生成100内的数字,用户可以根据提示信息输入猜测答案-A number guessing game program, the beginning of the program automatically generates 100 the figures, the user can be prompted to enter information to guess the answer
- 2022-05-18 12:49:56下载
- 积分:1
-
一个锁定桌面的例子
一个锁定桌面的例子--A example for locking the desktop
- 2022-03-03 11:18:17下载
- 积分:1
-
一个被人忽略的控件CTabControl,实现页面切换,非常实用.
一个被人忽略的控件CTabControl,实现页面切换,非常实用.-err
- 2023-04-06 11:55:04下载
- 积分:1
-
创建2000风格的向导对话框
创建2000风格的向导对话框-create 2000-style Wizard dialog
- 2022-04-13 16:35:59下载
- 积分:1
-
自动重绘窗体内控件的VC控件,包含源代码和一个例子
自动重绘窗体内控件的VC控件,包含源代码和一个例子-Automatically redraw the window controls the VC controls the body, including source code and an example
- 2022-05-24 09:47:32下载
- 积分:1
-
实现“双对话框”的内容列表,移动左右,一个单一的移动,可以…
实现对话框中两个列表框内容的左右移动,可以单个移动,也可以全部移动-achieve two dialog box lists the contents move around, a single mobile, can all mobile
- 2022-04-19 20:01:53下载
- 积分:1
-
本范例是VC 写的,初学者可以读读. 它在界面上划分了16个显示区域,可设置区域是否选择....
本范例是VC 写的,初学者可以读读. 它在界面上划分了16个显示区域,可设置区域是否选择.-example of this was the VC, beginners can read. Its interface is divided into 16 regional shows, choosing whether to set up regional.
- 2022-04-10 03:51:50下载
- 积分:1
-
一个华丽的界面
使用方法
方法一:
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
-
This is a VC was made in the transparent window method.
这是一个用VC++写的有关透明窗的实现方法。-This is a VC was made in the transparent window method.
- 2022-11-10 02:45:03下载
- 积分:1
-
形状怪异的多边形窗体
形状怪异的多边形窗体-polygon shapes strange forms
- 2022-02-13 20:31:15下载
- 积分:1