|
File Viewer File Menu Items
The standard file viewer File menu has the following four items (as well as
separators), two of which are optional. A file viewer can add other items to the
menu, but in most cases there is no need for other items.
Menu item string
| Result of selecting the menu item
| "&Open File for Editing"
| Locates and starts the application that can open and edit the file. After
successfully starting the application, the file viewer should hide its window
immediately, shut down, and eventually return from IFileViewer::Show, after which the Quick View process terminates. If the file viewer fails to
start the application, it should display the following message.
There is no application available that can open this file.
| Separator
| Not applicable.
| "Page Set&up" (optional)
| Activates the standard Page Setup dialog box (or an application-specific
dialog box if desired), the results of which affect the display of the file in the
viewport window. The effects of the Page Setup command last only for the
duration of the file viewer and do not affect the contents of the disk file. This menu
item should appear if the file viewer supports printing and only if the Print
menu item appears as well.
| "&Print\tCtrl+P" (optional)
| Activates the standard Print/Printer Setup property sheet. Any changes made to
the printer setup that would affect the display of the file in the viewport
window last only for the duration of the file viewer and do not affect the
contents of the disk file. This menu item should appear only if the file viewer
supports printing a file without starting the full application.
| Separator
| Not applicable.
| "E&xit"
| Hides the window, closes the file, destroys all the windows, performs other
necessary cleanup, and returns with the NOERROR error code from IFileViewer::Show. The window should be hidden before cleanup happens to avoid marring its
appearance, when the system destroys the toolbar and other controls.
|
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|