-
一个华丽的界面
使用方法
方法一:
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
-
些源码的功能非常强大,其中包含了各控件的使用以及GridView的使用,可进行测试的管理等...
些源码的功能非常强大,其中包含了各控件的使用以及GridView的使用,可进行测试的管理等-Some very powerful source, which includes the use of various controls, as well as the use of GridView can test management. .
- 2022-02-16 07:04:50下载
- 积分:1
-
用labview实现调用子函数,通过这个简化LABVIEW程序复杂度.
用labview实现调用子函数,通过这个简化LABVIEW程序复杂度.-Call subroutine to achieve with the labview
- 2022-06-18 06:17:35下载
- 积分:1
-
VC realize the transparent window, load a bitmap, the desktop has a random displ...
VC实现的透明窗口,加载一个位图,有桌面上随机显示-VC realize the transparent window, load a bitmap, the desktop has a random display
- 2022-09-03 01:30:03下载
- 积分:1
-
实现如何逐渐平滑地关闭窗口的例子
实现如何逐渐平滑地关闭窗口的例子--The example which has realized closing windows smoothly and gradually
- 2022-02-02 08:23:23下载
- 积分:1
-
可以自己随着拖动而改变大小和重叠显示的窗口例子
可以自己随着拖动而改变大小和重叠显示的窗口例子--Windows example which can be draged by oneself to change size and display overlay
- 2022-12-15 13:20:03下载
- 积分:1
-
一个电梯的模拟程序,用VC实现的,有友好的界面,能够直观的模拟电梯运行的状态...
一个电梯的模拟程序,用VC实现的,有友好的界面,能够直观的模拟电梯运行的状态-an elevator simulation program, VC, a friendly interface, visual simulation to run the state Elevator
- 2022-05-23 12:17:31下载
- 积分:1
-
此程序实现了动态切分窗口的功能,间接的方法实现了长久以来困扰我的一个难题...
此程序实现了动态切分窗口的功能,间接的方法实现了长久以来困扰我的一个难题-Realize this process of dynamic segmentation window function, the indirect method of achieving long been one of my problems plagued
- 2023-06-19 06:00:03下载
- 积分:1
-
本代码实现枚举所有打开程序
本代码实现枚举所有打开程序的窗口,将窗口信息列在列表框中。- This code realization enumerates all opens the procedure the
window, in tabulates the window information row in the frame.
- 2022-03-20 05:25:38下载
- 积分:1
-
程序将非客户区中的标题栏、框架栏都贴上具有Windows XP风格的位图,然后在标题栏右端绘上帮助、最小化、最大化、和关闭按钮...
程序将非客户区中的标题栏、框架栏都贴上具有Windows XP风格的位图,然后在标题栏右端绘上帮助、最小化、最大化、和关闭按钮-procedures for non-customers of the district title bar, column framework are affixed with Windows XP-style bitmap, and then the title bar decorated with subguadratic help minimize, maximize, and close button
- 2022-03-16 12:45:17下载
- 积分:1