-
一个华丽的界面
使用方法
方法一:
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
-
运用VS2005编辑的示波器图形界面程序。采用对话框模式,可对数据动态显示。...
运用VS2005编辑的示波器图形界面程序。采用对话框模式,可对数据动态显示。-Edit VS2005 use graphical interface of the oscilloscope program. Using dialog box can be used to dynamically display the data.
- 2023-08-04 17:50:04下载
- 积分:1
-
smooth Close Example
平滑的关闭窗口示例-smooth Close Example
- 2022-01-26 04:40:06下载
- 积分:1
-
演示各种窗口的编程实例,包括颜色变换等,内容十分详实
演示各种窗口的编程实例,包括颜色变换等,内容十分详实-demonstration of the various window programming examples, including color transformation, which is very informative
- 2022-01-28 03:44:45下载
- 积分:1
-
生成变色窗口背景 可以很好的修饰窗口有好的效果
生成变色窗口背景 可以很好的修饰窗口有好的效果-generation can change the background window good Modified window good results
- 2022-01-20 23:22:38下载
- 积分:1
-
code review软件的说明书。在很多公司都不作codereview,其实是很有用的...
code review软件的说明书。在很多公司都不作codereview,其实是很有用的-Manual code review software. In many companies do not make codereview, is actually very useful
- 2022-07-26 18:10:59下载
- 积分:1
-
《创建一个不可关闭的对话框》 [代码性质] VC完整应用程序代码 创建一个基于对话框的工程,一切默认即可。 在对话框的属性general中,设置caption为...
《创建一个不可关闭的对话框》 [代码性质] VC完整应用程序代码 创建一个基于对话框的工程,一切默认即可。 在对话框的属性general中,设置caption为空,这样用ctrl+alt+del就发现不到此 程序。 在对话框的属性more stytle 中,选中disable,这样就不能用右键关闭此程序。 删除取消按钮,双击确定按钮,在其对应函数中将 CDialog::OnOK()删除。这样就 不能用回车关闭此程序。如果只是简单的删除确定按钮是不行的。 当然了,要是关闭计算机之类的操作,那就没办法了。 此程序我目前想不到有什么实际用途,不过用来搞恶作剧还是不错的。- "Founds Dialog box Which Cannot Be closed" [ code nature ] the
VC integrity application procedure code to found based on the dialog
box project, all tacitly approve then. In dialog box attribute
general, establishes caption is spatial, like this uses ctrl alt del
not to reach this point on the discovery the procedure. In dialog box
attribute more stytle, selects disable, like this cannot use the right
key to close this procedure. The deletion cancels the button,
double-clicks determines the button, () deletes in its homographic
function CDialog::OnOK. Like this cannot use the carriage return to
close this procedure. If only is the simple deletion determination
button is not good. Natural, if cl
- 2022-10-01 08:05:02下载
- 积分:1
-
led灯的制作,可以制作闪烁的多色显示等,增加界面的美观性。...
led灯的制作,可以制作闪烁的多色显示等,增加界面的美观性。-led to the production of light, can be produced flashing multicolor display, increase the beauty of the interface.
- 2022-12-07 23:10:04下载
- 积分:1
-
方便的可视化控件控件 可是实现自由的拖拉
选中不同大小的区域...
方便的可视化控件控件 可是实现自由的拖拉
选中不同大小的区域-convenient visual control, custom But free tractors selected regions of different sizes
- 2022-03-12 08:22:51下载
- 积分:1
-
这个好习惯网格控制。非常有用的。
This good custom gird control. very usefull.-This is good custom gird control. very usefull.
- 2022-03-12 21:09:23下载
- 积分:1