LZ35
所属分类:系统编程
开发工具:Visual C++
文件大小:23952KB
下载次数:5
上传日期:2013-01-11 15:14:07
上 传 者:
kylyre32
说明: VC++ 功能的19个功能,包括设置显示器分辨率,IO的应用,以二进制形式查看文件,串行化功能的实现,独特的读写工具,打开PCX格式文件等等
(VC++ 19 functions, including setting the display resolution, the application of IO, view the file in binary form serialization function realization, unique reading and writing tools, open the PCX format file, etc.)
文件列表:
LZ35 (0, 2013-01-11)
LZ35\62 设置显示器分辨率 (0, 2011-01-02)
LZ35\62 设置显示器分辨率\Display.aps (20880, 2001-12-12)
LZ35\62 设置显示器分辨率\Display.clw (1189, 2001-12-12)
LZ35\62 设置显示器分辨率\Display.cpp (2044, 2001-12-05)
LZ35\62 设置显示器分辨率\Display.dsp (4177, 2001-12-05)
LZ35\62 设置显示器分辨率\Display.dsw (539, 2001-12-05)
LZ35\62 设置显示器分辨率\Display.h (1335, 2001-12-05)
LZ35\62 设置显示器分辨率\Display.ncb (58368, 2001-12-12)
LZ35\62 设置显示器分辨率\Display.opt (59904, 2002-01-31)
LZ35\62 设置显示器分辨率\Display.plg (248, 2001-12-05)
LZ35\62 设置显示器分辨率\Display.rc (5369, 2001-12-05)
LZ35\62 设置显示器分辨率\DisplayDlg.cpp (5483, 2001-12-05)
LZ35\62 设置显示器分辨率\DisplayDlg.h (1400, 2001-12-05)
LZ35\62 设置显示器分辨率\res (0, 2011-01-02)
LZ35\62 设置显示器分辨率\resource.h (685, 2001-12-05)
LZ35\62 设置显示器分辨率\res\Display.ico (1078, 2001-12-05)
LZ35\62 设置显示器分辨率\res\Display.rc2 (399, 2001-12-05)
LZ35\62 设置显示器分辨率\StdAfx.cpp (209, 2001-12-05)
LZ35\62 设置显示器分辨率\StdAfx.h (1054, 2001-12-05)
LZ35\63 Vc++中IO的应用 (0, 2011-01-02)
LZ35\63 Vc++中IO的应用\StdAfx.cpp (291, 2001-10-14)
LZ35\63 Vc++中IO的应用\StdAfx.h (769, 2001-10-14)
LZ35\63 Vc++中IO的应用\输出.cpp (360, 2001-10-14)
LZ35\63 Vc++中IO的应用\输出.dsp (4514, 2001-10-14)
LZ35\63 Vc++中IO的应用\输出.dsw (533, 2001-10-14)
LZ35\63 Vc++中IO的应用\输出.ncb (33792, 2001-10-14)
LZ35\63 Vc++中IO的应用\输出.opt (58880, 2002-02-06)
LZ35\63 Vc++中IO的应用\输出.plg (1224, 2001-10-14)
LZ35\64 以二进制形式查看文件 (0, 2011-01-02)
LZ35\64 以二进制形式查看文件\HexShow.aps (28580, 2001-10-16)
LZ35\64 以二进制形式查看文件\HexShow.clw (2270, 2001-10-16)
LZ35\64 以二进制形式查看文件\HexShow.cpp (4227, 2001-10-16)
LZ35\64 以二进制形式查看文件\HexShow.dsp (4576, 2001-10-16)
LZ35\64 以二进制形式查看文件\HexShow.dsw (537, 2001-10-16)
LZ35\64 以二进制形式查看文件\HexShow.h (1367, 2001-10-16)
LZ35\64 以二进制形式查看文件\HexShow.ncb (115712, 2002-01-31)
LZ35\64 以二进制形式查看文件\HexShow.opt (59904, 2002-01-31)
... ...
IPTest.exe demonstrates an MFC-based custom control which is very
similar to the one used in the Windows NT 4.0 "Network" applet in
Control Panel. The custom control can be used in a dialog or a
property page; I haven't tried it in a form.
The control is provided free of charge with the caveat that no
warranty is expressed or implied. Feel free to email me if you
discover any nasty bugs. Comments and suggestions are welcome, too!
Joseph A. Dziedzic
dziedzic@ma.ultranet.com
Changes from the original (September 1997) version:
1) The control now validates fields as data is entered for values
greater than 255. If you want to defer validation until
DDX time (the old mode of operation), specify the style bit
IPAS_NOVALIDATE (defined in IPAddr.h) when creating the control.
2) The DDX_IPAddr routine has been moved into IPAddr.cpp. You can
use this default implementation, or write your own. There is a
version that works with an array of bytes as well as a string of
"."-separated fields.
3) A few tweaks were made so the control matches the one used in
Windows 95/NT's Network Control Panel applet. Specifically,
space is now accepted as an indication to move to the next
address field; focus is advanced to the next address field as
soon as three numeric characters have been entered in a field.
4) The control now has a Create method to allow dynamic creation.
5) A number of bugs were fixed including: handling of the Delete key
and use of the control on a property page.
6) The structure named IPADDR (used to pass IP addresses in Windows
messages) was renamed to avoid a conflict with a typedef in the
include file ras.h; the structure is now called IPA_ADDR. (Most
users of the control won't notice this change.)
7) The messages to and from the control were renamed from IPMxxx
to IPAMxxx to avoid conflicts with the IE 4 common controls DLL.
How to Use the IP Address Custom Control
(See IPTestDlg.h and IPTestDlg.cpp for the code outlined below)
Add a custom control to a dialog resource; size the control to
90 x 13 Dialog Units. Set the Class to "IPAddr" and the style
to 0x50810000 (WS_VISIBLE | WS_CHILD | WS_BORDER | WS_TABSTOP).
Include the low-order bit to disable immediate field validation.
Edit the dialog class definition (.h) file as follows:
Add a member variable after the closing }}AFX_DATA line:
unsigned char m_nAddr[4];
Add the following lines after the DECLARE_MESSAGE_MAP macro:
private:
CIPAddrCtl* m_pIPAddrCtl;
Edit the dialog class implementation (.cpp) file as follows:
Add the following lines after the closing }}AFX_DATA_INIT line:
m_pIPAddrCtl = NULL;
memset(m_nAddr, 0, 4);
Add the following lines after the call to CDialog::DoDataExchange in the
dialog class implementation of ::DoDataExchange:
// Can't hack DDX_Control'ing the IP Address control since the control code subclasses the control behind our back
// Fortunately, that means we can do *one* GetDlgItem call and salt away the returned CWnd-derived
// object pointer for use during the entire dialog
if (NULL == m_pIPAddrCtl)
m_pIPAddrCtl = (CIPAddrCtl*) GetDlgItem(IDC_IPADDR);
ASSERT(NULL != m_pIPAddrCtl);
Add the following line after the closing }}AFX_DATA_MAP line:
DDX_IPAddr(pDX, IDC_IPADDR, m_nAddr);
Note: Default implementations of DDX_IPAddr are supplied in ipaddr.cpp. You can
write your own if the default ones are not adequate for your needs. There are two
DDX routines, one which accepts an array of bytes, and another which accepts a
reference to a CString.
近期下载者:
相关文件:
收藏者: