This is a part of the Microsoft Foundation Classes C++ library.
Copyright (C) 1992-1997 Microsoft Corporation
All rights reserved.
This source code is only intended as a supplement to the
Microsoft Foundation Classes Reference and related
electronic documentation provided with the library.
See these sources for detailed information regarding the
Microsoft Foundation Classes product.
-------------------------------------------------------
DRAWCLI Sample Microsoft Foundation Classes Application
-------------------------------------------------------
The DRAWCLI sample application illustrates the integration of OLE container
support with application-specific features, effective use of polymorphism
in C++, and Windows 95 logo compliance.
OLE container support
---------------------
The DRAWCLI was originally a stand-alone drawing application developed using
the MFC classes. The stand-alone version of DRAWCLI was then integrated with
a second skeleton version of DRAWCLI created using AppWizard's OLE Container
feature. This process is similar to how the OLE Visual Editing server tutorial
adds server support to create the Step 7 version of SCRIBBLE.
The design of an MFC OLE container application should look essentially the same,
regardless of whether you're adding OLE functionality to an existing stand-alone
MFC (doc/view) application, or whether you're starting with an AppWizard-generated
OLE container application. The following is a brief description of how DRAWCLI
is separated into application-specific code and OLE container-specific code.
Class CDrawObj, implemented in DRAWOBJ.CPP, is a base class for derived "shape"
classes. This base class handles hit testing of shapes, moving of shapes, and
resizing of shapes. Through the use of polymorphism, DRAWCLI can interact with
objects of different classes through CDrawObj's interface.
Classes CDrawRect and CDrawPoly are derived from CDrawObj. CDrawRect is used to
draw rectangles, rounded rectangles, ellipses, and lines. CDrawPoly is used to
draw polygons. These two classes are independent of DRAWCLI's OLE container
functionality.
Class CDrawOleObj is also derived from CDrawObj, and is used to represent OLE
embedded objects. CDrawOleObj delegates any OLE-specific operation to a contained
CDrawItem object (described below). For generic shape operations, OLE embedded
objects are treated like other shape objects in DRAWCLI because CDrawOleObj is
derived from CDrawObj.
Class CDrawItem, derived from COleClientItem, handles all the OLE-specific behavior
for the OLE embedded object. The implementation of CDrawItem is similar to the
implementation of the COleClientItem-derived classes in the CONTAIN and OCLIENT
samples.
Class CDrawDoc is derived from COleDocument. The document object maintains a
CObjList of CDrawObj objects. CDrawDoc delegates several OLE container-specific
menu commands, such as Edit Paste, Paste Link, and Links, to the base class
COleDocument.
Class CDrawView is derived from CScrollView. The OLE-specific implementation of
CDrawView is similar to the implementation of the view classes in the CONTAIN and
OCLIENT samples. The bulk of DRAWCLI's drawing-specific user interface is also
implemented in CDrawView.
Windows 95 Logo compliance
--------------------------
All MFC applications meet some of the requirements for the Windows 95 logo:
having a Win32 executable, support for long filenames, support for UNC pathnames,
use of system colors and metrics, and compatibility with Windows NT. DRAWCLI
meets the remaining requirements for the Windows 95 logo by including the
following features:
- OLE support. DRAWCLI is an OLE container that stores its files in
the compound file format, supports in-place activation, and acts as a drop
target for drag-and-drop operations.
- MAPI support. DRAWCLI provides a "Send as Mail" message on its File menu,
allowing the user to send a document as a mail attachment.
- Compliance with Win95 shell guidelines, including registration of large and
small icons, use of the system registry instead of an .INI file, and having a
setup and an uninstall program. For the latter, DRAWCLI includes a script
compatible with InstallSHIELD, Stirling Software�s toolkit for creating
setup and uninstall programs.
DRAWCLI also meets the following recommendations for Windows 95 applications:
- Use of tabbed property pages.
- Use of Windows 95 common controls.
- Displays a shortcut menu in response to a right-button mouse click.
- Storing Summary Information with its documents.
In order to use the setup script (SETUP.RUL), you must first install
InstallSHIELD from the \ishield directory on the CD-ROM. Then create a directory
tree with the following structure:
+--+--DISK1
|
+--DATA
|
+--PROGRAM
|
+--SHARED
|
+--SAMPLES
|
+--HELP
In the DATA directory, create a file named README.TXT (you can use this file).
In the PROGRAM subdirectory, place a copy of DRAWCLI.EXE. In the SHARED
subdirectory, place copies of MFC40.DLL, MFCO40.DLL, and MSVCRT40.DLL. In the
SAMPLES subdirectory, create a file called SAMPLE.DRW. In the HELP subdirectory,
create a file called DUMMY.HLP.(DRAWCLI does not currently support online help;
this file is strictly a placeholder for demonstrating the setup program.)
In the DISK1 directory, create an empty file named DISK1.ID. This acts as a
disk identifier.
Using InstallSHIELD's ICOMP.EXE, compress all the DRAWCLI files into a file
named DATA.Z using the following command:
> icomp data\*.* disk1\data.z -i
Using InstallSHIELD's COMPILE.EXE, compile the script SETUP.RUL into SETUP.INS
using the following command:
> compile setup.rul
Using InstallSHIELD's PACKLIST.EXE, compile the file SETUP.LST into SETUP.PKG
using the following command:
> packlist setup.lst
Copy the following files to a floppy disk:
(from \Program Files\Stirling\InstallSHIELD\Program)
- SETUP.EXE
- UNINST.EXE
- _SETUP.DLL
- _SETUP.LIB
(from the directory where you placed DRAWCLI)
- SETUP.INS
- SETUP.PKG
(from your DISK1 subdirectory)
- DISK1.ID
- DATA.Z
The resulting floppy disk can be used to install DRAWCLI.
See the InstallSHIELD documentation for more information.
没有合适的资源?快使用搜索试试~ 我知道了~
一个强大的界面库Prof-UIS.rar
共550个文件
h:145个
cpp:117个
bmp:58个
3星 · 超过75%的资源 需积分: 9 25 下载量 55 浏览量
2010-02-04
23:47:23
上传
评论
收藏 1.46MB RAR 举报
温馨提示
一个强大的界面库Prof-UIS 一个强大的界面库Prof-UIS
资源推荐
资源详情
资源评论
收起资源包目录
一个强大的界面库Prof-UIS.rar (550个子文件)
CINEAPK.AVI 30KB
CINEAPK.AVI 30KB
download.avi 6KB
xptheme.bin 636B
earth.bmp 384KB
ProfUisCubeSideOrange.bmp 192KB
wndavipl.bmp 192KB
wndmirror.bmp 192KB
ProfUisCubeSideWhite.bmp 192KB
ring.bmp 48KB
btpnlane.bmp 48KB
moon.bmp 48KB
toolbar_44_40_32.bmp 41KB
bitmap_s.bmp 40KB
bitmap1.bmp 17KB
TOOLBAR_1_16bit.bmp 14KB
bmp00001.bmp 14KB
TOOLBAR_2_16bit.bmp 8KB
bitmap_i.bmp 7KB
toolbar_.bmp 7KB
tab_imag.bmp 3KB
id_view_.bmp 3KB
toolbar_16_16_8.bmp 3KB
TOOLBAR_1_4bit.bmp 2KB
Toolbar.bmp 2KB
bitmap_t.bmp 2KB
bitmap_t.bmp 2KB
TOOLBAR_2_4bit.bmp 2KB
Toolbar.bmp 1KB
Toolbar.bmp 1KB
Toolbar.bmp 958B
toolbar1.bmp 958B
bitmap1.bmp 886B
toolbar1.bmp 838B
Toolbar.bmp 838B
Toolbar.bmp 838B
toolbar1.bmp 838B
Toolbar.bmp 838B
Toolbar.bmp 718B
Toolbar.bmp 718B
toolbar_.bmp 630B
toolbar_.bmp 598B
toolbar2.bmp 598B
toolbar2.bmp 598B
toolbar2.bmp 598B
bitmap2.bmp 502B
Toolbar.bmp 478B
toolbar2.bmp 478B
toolbar2.bmp 478B
IDR_TOOLBAR_PLAYER.bmp 478B
toolbar2.bmp 478B
IDR_TOOLBAR_UISTYLE.bmp 478B
toolbar2.bmp 478B
toolbar2.bmp 478B
toolbar2.bmp 478B
Toolbar.bmp 478B
Toolbar.bmp 374B
bmp00001.bmp 358B
Toolbar.bmp 358B
Toolbar.bmp 358B
bitmap2.bmp 246B
toolbar4.bmp 238B
extcontrolbar.cpp 430KB
ExtPaintManager.cpp 354KB
ExtPopupMenuWnd.cpp 319KB
ExtToolControlBar.cpp 240KB
ExtDockBar.cpp 199KB
ExtColorCtrl.cpp 93KB
ExtMenuControlBar.cpp 92KB
ChildView.cpp 90KB
ExtCmdManager.cpp 75KB
DRAWVW.CPP 56KB
MainFrm.cpp 41KB
ExtScrollWnd.cpp 40KB
ExtMiniDockFrameWnd.cpp 39KB
PROPSET.CPP 39KB
ExtCmdIcon.cpp 35KB
ExtButton.cpp 35KB
MainFrm.cpp 33KB
MainDlg.cpp 33KB
MAINFRM.CPP 32KB
MainFrm.cpp 28KB
ExtStatusControlBar.cpp 24KB
DRAWOBJ.CPP 23KB
tabdemodlg.cpp 23KB
MainFrm.cpp 21KB
MainFrm.cpp 20KB
exdlgbase.cpp 19KB
ExtResizableDialog.cpp 18KB
MainFrm.cpp 16KB
ExtComboBox.cpp 15KB
ExtColorDlg.cpp 15KB
MainFrm.cpp 14KB
ChildFormView.cpp 14KB
MainFrm.cpp 14KB
ExtHook.cpp 14KB
LogCtrl.cpp 12KB
MainFrm.cpp 12KB
MainFrm.cpp 12KB
MainFrm.cpp 12KB
共 550 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
- jianpanlanyue2012-12-19一般般吧,关键还是我自己不会用。
- gyjdk06012012-07-04一般般吧,关键还是我自己不会用。
zhouqian88423
- 粉丝: 37
- 资源: 134
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功