-
绘图demo 可以绘制直线、圆、矩形等的单文档程序
绘图demo 可以绘制直线、圆、矩形等的单文档程序-Drawing demo can draw a straight line, circle, rectangle, etc. Single Document procedures
- 2023-04-28 06:55:03下载
- 积分:1
-
大家知道消息只是从一个视图到另一个视图,而CBroadcaster可以广播消息到多个视图。
大家知道消息只是从一个视图到另一个视图,而CBroadcaster可以广播消息到多个视图。-we knew only from a view to another view, and can CBroadcaster broadcasting news of a number of View.
- 2023-03-30 04:50:03下载
- 积分:1
-
MFC Dialog
将MFC基于对话框编程中的大部分控件都用在一个对话框上,包含了各个控件的使用方法。-MFC Dialog-based programming will be in the majority of controls are used in a dialog box that contains various control use.
- 2022-08-05 23:36:15下载
- 积分:1
-
一个得意的对话框程序,主要对VC中控件的熟悉,主要功能是显示对话框、用对话框运行程序、控件与变量之间的相关联...
一个得意的对话框程序,主要对VC中控件的熟悉,主要功能是显示对话框、用对话框运行程序、控件与变量之间的相关联--A self-satisfied program about dialog box, it`s helpful to learn VC controls, its main function is showing a dialog box, running through dialog box, and inter-relations between control and variables
- 2023-05-19 18:25:03下载
- 积分:1
-
Winmain function, handwritten code, and generates a windows window
Winmain函数的手写代码,生成一个windows窗口-Winmain function, handwritten code, and generates a windows window
- 2022-03-23 04:07:20下载
- 积分:1
-
异形窗口实例,可重用代码,界面精美
异形窗口实例,可重用代码,界面精美-Examples of special-shaped windows, reusable code, interface exquisite
- 2022-01-28 03:08:38下载
- 积分:1
-
形如Word中标尺的例子
形如Word中标尺的例子--Example that similar to the rule in word
- 2022-07-27 21:35:55下载
- 积分: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
-
背景后,在视图窗口的操作程序可以装载…
在程序的运行后在视图窗体的背景上可以加载一个背景图片很好看的啊!-procedures in the operation of the View window after the background can be loaded on a background image to see the good ah!
- 2022-08-17 01:10:26下载
- 积分:1
-
VC实现多视图分割,支持sdi,mdi
VC实现多视图分割,支持sdi,mdi-VC realize multi-view segmentation, support sdi, mdi
- 2022-12-02 13:50:07下载
- 积分:1