📄 apa.htm
字号:
<LI>Redo, which is used to reverse an undo, is performed by pressing Ctrl+Y.<BR>
<BR>
<LI>LineCut, which removes or "cuts" the current line and places it on
the Clipboard, is performed by pressing Ctrl+L.<BR>
<BR>
<LI>Cut removes any marked text from the editor and places it on the Clipboard. This
command is performed by pressing Ctrl+X.<BR>
<BR>
<LI>Copy copies any marked text to the Clipboard but unlike the Cut command, doesn't
remove the text from the editor. If no text is marked, the current line is copied.
This command is performed by pressing Ctrl+C.<BR>
<BR>
<LI>Paste copies the Clipboard contents into the editor at the insertion point. This
command is performed by pressing Ctrl+V.
</UL>
<P>This is only a small list of the available keyboard commands. To see a complete
list, select Keyboard from the Help menu.
<H2><FONT COLOR="#000077"><B>What Is InfoViewer?</B></FONT></H2>
<P>InfoViewer is the online help system integrated into Developer Studio. Usually,
the indexes used by the InfoViewer are copied to your hard disk, and the actual database
remains on the CD. This spares a great deal of hard disk space. If you would like
to speed up InfoViewer, run Visual C++ setup again and install InfoViewer to the
hard disk. Select a custom installation procedure and make sure you check the InfoViewer
box.
<H3><FONT COLOR="#000077"><B>Why Use InfoViewer?</B></FONT></H3>
<P>Because Visual C++ is not sold with a documentation set, InfoViewer is the only
documentation that is included with the product. Although the online documentation
is also available from Microsoft in book form, it costs you extra.</P>
<P>InfoViewer has several advantages over hard-copy documentation:
<UL>
<LI>It is fully searchable. There's a saying, "You can't search dead wood,"
and it applies perfectly to the difference between hard copy documentation and Developer
Studio's InfoViewer. Suppose you're having a problem with a list box control. In
a few seconds, you can search the entire documentation set, including the MSDN library
if you have it, and immediately begin looking up relevant information.<BR>
<BR>
<LI>You can add annotations. You can add Post-it notes to your hard-copy documentation
too, but InfoViewer's annotations are guaranteed to stick to the page.<BR>
<BR>
<LI>You get context-sensitive help that brings up InfoViewer when you press the F1
key. When's the last time you pressed F1 and had a book fall off the bookshelf and
open to the correct page?<BR>
<BR>
<LI>InfoViewer is completely integrated into Developer Studio. One of the tabs in
the project workspace window displays the InfoViewer table of contents. The current
topic is displayed in a Developer Studio child window.<BR>
<BR>
<LI>Last, but not least, you can always print out a hard copy when needed, and you
don't even need a copying machine.
</UL>
<H3><FONT COLOR="#000077"><B>Using InfoViewer</B></FONT></H3>
<P>You interact with the InfoViewer help system in two windows:
<UL>
<LI>The contents pane is displayed in the project workspace window.<BR>
<BR>
<LI>The information topic is an MDI child window.
</UL>
<H4><FONT COLOR="#000077">Getting Context-Sensitive Help</FONT></H4>
<P>To get context-sensitive help from InfoViewer, press F1. You select a topic based
on the current window and cursor position, and you see the InfoViewer window containing
context-sensitive help. If you press F1 while editing a source file, help is provided
for the word under the cursor. If there is more than one possible help topic, you
see a list of choices.</P>
<P>Open a new document for editing, as described earlier in this chapter, and enter
the source code provided in Listing A.3.
<H4><FONT COLOR="#000077">TYPE: Listing A.3. Testing InfoViewer's context-sensitive
help.</FONT></H4>
<PRE><FONT COLOR="#0066FF"><TT>int main()</TT>
<TT>{</TT>
<TT> return 0;</TT>
</FONT></PRE>
<P><TT>}</TT> Every word in this example has a help topic. To get context-sensitive
help, move the cursor to any word in Listing A.3 and press the F1 key. The help topic
is displayed in a dockable window next to your source code. To return the windows
to their original sizes and hide the InfoViewer window, press Escape.
<H4><FONT COLOR="#000077">Searching for Help Using a Keyword</FONT></H4>
<P>To search the InfoViewer keyword list, open the Search dialog box by selecting
Search from the Help menu or by right-clicking in the InfoViewer window. The Search
dialog box enables you to select a help topic by entering a keyword. The keyword
list box scrolls as you make your entry, which is helpful when you're not quite sure
how to spell a keyword.</P>
<P>The Search dialog box also enables you to create a query in order to find a topic.
You can use a query to search the entire contents, a subset of the contents, or the
results of the last query. The last option is useful when you're narrowing the scope
of a search. You can apply the query to the entire contents of InfoViewer or to only
the titles of each topic.</P>
<P>A query can be as simple as a single word, or it can be used to look for words
that are adjacent or close to each other. You can use the <TT>AND</TT>, <TT>OR</TT>,
<TT>NEAR</TT>, and <TT>NOT</TT> operators to create queries. Operators aren't required
to be capitalized, although it helps to set off the operator from your search items.
For example, to find all the topics where the words <I>dialog</I> and <I>tab</I>
are close to each other, use the following query:</P>
<PRE><FONT COLOR="#0066FF"><TT>dialog NEAR tab</TT>
</FONT></PRE>
<P>To look for topics where the word <I>main</I> is found but exclude any topics
that contain the word <I>WinMain</I>, use the following query:</P>
<PRE><FONT COLOR="#0066FF"><TT>main NOT WinMain</TT>
</FONT></PRE>
<H4><FONT COLOR="#000077">Browsing Through the Contents Window</FONT></H4>
<P>A third way to use InfoViewer is to browse through the contents pane in the project
workspace window. The contents pane displays the titles for every available topic,
arranged in an easy-to-use tree view.</P>
<P>When the InfoViewer contents tree is completely collapsed, the contents pane displays
the titles for the top level of the available topics. The titles displayed at the
top level are somewhat like the titles of a series of books; the icon even looks
like a book. When the book icon is closed, a plus sign appears next to the book title,
indicating that the book can be opened to display its contents. Click the plus sign
to open the book icon and expand the contents tree to display the contents of the
open book. Topics are represented by icons that look like a page of text. To display
the selected topic, click the topic icon; the InfoViewer topic window opens. Clicking
the plus sign also changes the plus sign to a minus, which you can click to close
the book.</P>
<CENTER>
<P>
<HR>
<A HREF="../ch24/ch24.htm"><IMG SRC="../button/previous.gif" WIDTH="128" HEIGHT="28"
ALIGN="BOTTOM" ALT="Previous chapter" BORDER="0"></A><A HREF="../apb/apb.htm"><IMG
SRC="../button/next.gif" WIDTH="128" HEIGHT="28" ALIGN="BOTTOM" ALT="Next chapter"
BORDER="0"></A><A HREF="../index.htm"><IMG SRC="../button/contents.gif" WIDTH="128"
HEIGHT="28" ALIGN="BOTTOM" ALT="Contents" BORDER="0"></A> <BR>
<BR>
<BR>
<IMG SRC="../button/corp.gif" WIDTH="284" HEIGHT="45" ALIGN="BOTTOM" ALT="Macmillan Computer Publishing USA"
BORDER="0"></P>
<P>© <A HREF="../copy.htm">Copyright</A>, Macmillan Computer Publishing. All
rights reserved.
</CENTER>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -