-
拖动滚动条实现对话框的移动及对话框上控件的移动,而不会出现闪烁现象。利用此原理,可实现控件的无闪烁移动。...
拖动滚动条实现对话框的移动及对话框上控件的移动,而不会出现闪烁现象。利用此原理,可实现控件的无闪烁移动。-Drag the scroll bar to achieve the dialog dialog controls movement and the movement, with no flicker. Take advantage of this principle, can realize the control flicker-free movement.
- 2022-05-26 15:54:54下载
- 积分:1
-
This sample shows how to use 32
This sample shows how to use 32-bit (alpha channel) images with toolbars and
command bars. It also displays them only if running on Windows XP with themes
enabled, while it displays standard 4-bit images in other cases.
- 2022-05-06 07:46:48下载
- 积分:1
-
一个不错的颜色拾取器
一个不错的颜色拾取器-a good color for picking
- 2023-05-21 01:55:03下载
- 积分:1
-
demonstration SDI single
演示SDI的单窗口显示内容可修改的表格式数据,并且有嵌入的滚动字幕显示,自动日期显示,自动保存窗口状态和数据内容,下次自动调用重显-demonstration SDI single-window content can modify the form of data and is embedded subtitles rolling, the automatic date display, automatic window state and the preservation of data, the next automatically called weight
- 2022-01-30 21:59:15下载
- 积分:1
-
SourceCode Dialog Windows Application return SID, UserName and DomainName.
Выв...
SourceCode Dialog Windows Application return SID, UserName and DomainName.
Выводит имя текущего пользователя и имя домена на экран.(RUS)
+Russian comments
- 2022-11-11 04:30:03下载
- 积分:1
-
子窗口,SDK编程,仅供参考 !
子窗口,SDK编程,仅供参考 !-Sub-window, SDK programming, for reference purposes only!
- 2023-01-10 03:25:04下载
- 积分:1
-
问题的提出:我们在编制程序时,经常要用到清屏处理,如dos下的cls,Turbo C下的clrscr()等都具有清屏功能,但这些均为一般意义的清屏, 并未显示其...
问题的提出:我们在编制程序时,经常要用到清屏处理,如dos下的cls,Turbo C下的clrscr()等都具有清屏功能,但这些均为一般意义的清屏, 并未显示其清屏规律.而有时为了达到清屏的艺术美观,往往对清屏有一些具体要求,如:开幕清屏 闭幕清屏 上清屏 下清屏 中清屏.为此,这里 用C语言编制了几个子函数,用于程序中时,既可达到清屏的目的,有能增加屏幕的艺术美观. 子函数及演示程序:-the problem : we in the preparation of procedures, regular use of the screen, such as the dos cls, Turbo C under the clrscr () so with the screen, but these are general sense of the screen does not show the screen law. And sometimes in order to achieve the screen beauty of art often on the screen that there are some specific requirements, such as : opening screen closing supernatant Ping-ping-ping under which the screen. To that end, here with C language several Functions for the procedure, can achieve the purpose of the screen, the screen will increase the artistic aesthetic. Functions and Demonstration Program :
- 2022-08-09 18:16:14下载
- 积分:1
-
自定义的通过对话框实现的安装程序向导的程序.
自定义的通过对话框实现的安装程序向导的程序.-custom dialog achieved through the installation wizard procedure.
- 2022-06-13 20:55:36下载
- 积分:1
-
通过窗口句柄得到执行文件名
通过窗口句柄得到执行文件名- Obtains through the window sentence handle carries out the
filename
- 2022-03-24 10:21:17下载
- 积分: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