⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 apb.htm

📁 24小时学会vc++
💻 HTM
📖 第 1 页 / 共 2 页
字号:
	<BR>	8. <TT>BLACK_BRUSH</TT>, <TT>DKGRAY_BRUSH</TT>, <TT>GRAY_BRUSH</TT>, <TT>HOLLOW_BRUSH</TT>,	<TT>LTGRAY_BRUSH</TT>, <TT>NULL_BRUSH</TT>, and <TT>WHITE_BRUSH</TT><BR>	<BR>	9. <TT>CBrush</TT><BR>	<BR>	10. <TT>Ellipse</TT></DL><H2><FONT COLOR="#000077"><B>Hour 13 Quiz</B></FONT></H2><DL>	<DD>1. Serif fonts include Courier, Garamond, and Times Roman; sans-serif fonts include	Arial, Tahoma, and MS Sans Serif.<BR>	<BR>	2. <TT>ANSI_FIXED_FONT</TT>, <TT>ANSI_VAR_FONT</TT>, <TT>DEVICE_DEFAULT_FONT</TT>,	<TT>DEFAULT_GUI_FONT</TT>, <TT>OEM_FIXED_FONT</TT>, and <TT>SYSTEM_FONT</TT><BR>	<BR>	3. The font escapement is the angle in tenths of a degree that a line of text forms	with the bottom of the page.<BR>	<BR>	4. A glyph is an individual character.<BR>	<BR>	5. <TT>CFont</TT><BR>	<BR>	6. Decorative, Modern, Roman, Script, Swiss, and Dontcare<BR>	<BR>	7. <TT>DEFAULT_PITCH</TT>, <TT>FIXED_PITCH</TT>, and <TT>VARIABLE_PITCH</TT><BR>	<BR>	8. <TT>SetFont</TT></DL><H2><FONT COLOR="#000077"><B>Hour 14 Quiz</B></FONT></H2><DL>	<DD>1. <TT>SetIcon</TT><BR>	<BR>	2. The hotspot<BR>	<BR>	3. <TT>ClipCursor</TT><BR>	<BR>	4. <TT>SetCapture</TT><BR>	<BR>	5. <TT>SetCursor</TT><BR>	<BR>	6. <TT>WM_SETCURSOR</TT><BR>	<BR>	7. 16x16<BR>	<BR>	8. <TT>BeginWaitCursor</TT></DL><H2><FONT COLOR="#000077"><B>Hour 15 Quiz</B></FONT></H2><DL>	<DD>1. <TT>CBitmap</TT><BR>	<BR>	2. <TT>CPalette</TT><BR>	<BR>	3. Memory DC<BR>	<BR>	4. <TT>BitBlt</TT><BR>	<BR>	5. 256<BR>	<BR>	6. 20<BR>	<BR>	7. <TT>WM_QUERYNEWPALETTE</TT> and <TT>WM_PALETTECHANGED</TT><BR>	<BR>	8. <TT>WM_QUERYNEWPALETTE</TT> is sent to an application when it moves into the foreground.	<TT>WM_PALETTECHANGED </TT>is sent to an application after the system palette has	been updated.</DL><H2><FONT COLOR="#000077"><B>Hour 16 Quiz</B></FONT></H2><DL>	<DD>1. The Orientation property can be set to either horizontal (left-right) or vertical	(up-down).<BR>	<BR>	2. Auto-buddy<BR>	<BR>	3. The <TT>CSpinButtonCtrl::SetRange</TT> member function is used to set the minimum	and maximum limits for an up-down control.<BR>	<BR>	4. The control tab order determines which control is paired with the up-down control.	The up-down control must follow the buddy control in the tab order.<BR>	<BR>	5. Tick marks<BR>	<BR>	6. The <TT>CSliderCtrl::SetRange</TT> member function is used to set the minimum	and maximum limits for an up-down control.<BR>	<BR>	7. The <TT>CProgressCtrl::SetRange</TT> member function is used to set the minimum	and maximum limits for an up-down control.</DL><H2><FONT COLOR="#000077"><B>Hour 17 Quiz</B></FONT></H2><DL>	<DD>1. Masked and unmasked. Masked image lists include a mask used to draw the image	transparently.<BR>	<BR>	2. If items are often added to the image list, the grow-by parameter reduces the	number of costly internal resize operations performed by the image list.<BR>	<BR>	3. A transparent image is an image that allows part of the background surface to	be visible.<BR>	<BR>	4. The color mask is used to determine the color in the bitmap that is treated as	the transparent color. The image list uses this information to create a mask for	the image.<BR>	<BR>	5. <TT>ILD_TRANSPARENT</TT><BR>	<BR>	6. The <TT>ILD_BLENDxx</TT> styles are used to combine the image with the system	highlight color.<BR>	<BR>	7. You are always responsible for destroying the bitmap or icon used as a source	for the image stored in the image list. The image list will keep a copy of the image	internally.	<P>8. An overlapped image is made up of two combined image list items.</DL><H2><FONT COLOR="#000077"><B>Hour 18 Quiz</B></FONT></H2><DL>	<DD>1. There are four list view styles: Icon, Small Icon, Report, and List.<BR>	<BR>	2. Icon view uses a 32x32 icon. Small icon view uses a 16x16 icon.<BR>	<BR>	3. <TT>LVN_BEGINLABELEDIT</TT> and <TT>LVN_ENDLABELEDIT</TT><BR>	<BR>	4. You will receive <TT>LVN_ENDLABELEDIT</TT> with the <TT>LV_ITEM</TT> <TT>pszText</TT>	member set to <TT>NULL</TT> or the <TT>iItem</TT> member set to <TT>-1</TT>.<BR>	<BR>	5. <TT>SetWindowLong</TT><BR>	<BR>	6. First, you must initialize the <TT>LV_COLUMN</TT> structure, then call <TT>CListCtrl</TT>'s	<TT>InsertColumn</TT> member function.<BR>	<BR>	7. Call <TT>CListCtrl</TT>'s <TT>SetItem</TT> text member function.<BR>	<BR>	8. <TT>-1</TT></DL><H2><FONT COLOR="#000077"><B>Hour 19 Quiz</B></FONT></H2><DL>	<DD>1. <TT>TVN_BEGINLABELEDIT</TT> and <TT>TVN_ENDLABELEDIT</TT><BR>	<BR>	2. <TT>TVN_BEGINDRAG</TT> is sent when the drag operation begins, <TT>WM_MOUSEMOVE</TT>	is sent when the mouse is being moved, and <TT>WM_LBUTTONUP</TT> is sent when the	user releases the primary mouse button.<BR>	<BR>	3. The first image is displayed when the tree view item is in its normal state. The	second image is displayed when the item is selected.<BR>	<BR>	4. <TT>CTreeCtrl::DeleteAllItems()</TT><BR>	<BR>	5. The properties for any view can be changed in the <TT>PreCreateWindow</TT> function.<BR>	<BR>	6. The <TT>TVS_HASLINES</TT> is equivalent to the Has lines property; <TT>TVS_LINESATROOT</TT>	is the same as the Lines at root property, <TT>TVS_BUTTONS</TT> is the same as the	Has buttons property, and the <TT>TVS_EDITLABELS</TT> style is equivalent to the	Edit labels property.<BR>	<BR>	7. Unlike the list view control, where items are referred to by an index, items in	a tree view control are referred to through an <TT>HTREEITEM</TT> handle.<BR>	<BR>	8. Images stored in a tree view control can be any size.	<P>9. Use the <TT>TVI_FIRST</TT> symbol when calling <TT>CTreeCtrl::InsertItem</TT>:</DL><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF"><TT>m_tree.InsertItem( szLabel, 1, 1, hParent, TVI_FIRST );</TT></FONT></PRE></BLOCKQUOTE><PRE><FONT COLOR="#0066FF"><TT></TT></FONT></PRE><H2><FONT COLOR="#000077"><B>Hour 20 Quiz</B></FONT></H2><DL>	<DD>1. In the Components and Controls Gallery<BR>	<BR>	2. Visual Fox Pro, Visual Basic, Access 95, and Delphi are just a few of the development	tools that support ActiveX controls.<BR>	<BR>	3. Examples of events fired from ActiveX controls include mouse clicks, pressed buttons,	and expiring timers.<BR>	<BR>	4. Examples of properties exposed by ActiveX controls are the font and background	color used by a control.<BR>	<BR>	5. A grid control, such as the Microsoft FlexGrid<BR>	<BR>	6. False<BR>	<BR>	7. In AppWizard step two, the ActiveX Controls check box must be selected.<BR>	<BR>	8. A function that is exposed by the control and called by the control's container	<P>9. False</DL><H2><FONT COLOR="#000077"><B>Hour 21 Quiz</B></FONT></H2><DL>	<DD>1. Call the <TT>GetDeviceCaps</TT> function and ask for <TT>RASTERCAPS</TT> information.	Check the <TT>RC_BITBLT</TT> bit in the result. (See Listing 21.2.)<BR>	<BR>	2. The five MFC view functions that are most commonly overridden for printing are</DL><OL>	<UL>		<LI><TT>OnPreparePrinting</TT><BR>		<BR>				<LI><TT>OnBeginPrinting</TT><BR>		<BR>				<LI><TT>OnPrepareDC</TT><BR>		<BR>				<LI><TT>OnPrint</TT><BR>		<BR>				<LI><TT>OnEndPrinting</TT><BR>		<BR>			</UL></OL><DL>	<DD>3. These functions are called once for each print job:</DL><OL>	<UL>		<LI><TT>OnPreparePrinting</TT><BR>		<BR>				<LI><TT>OnBeginPrinting</TT><BR>		<BR>				<LI><TT>OnEndPrinting</TT><BR>		<BR>			</UL></OL><DL>	<DD>These functions are called once for each printed page:</DL><OL>	<UL>		<LI><TT>OnPrepareDC</TT><BR>		<BR>				<LI><TT>OnPrint</TT><BR>		<BR>			</UL></OL><DL>	<DD>4. <TT>CPrintInfo</TT><BR>	<BR>	5. <TT>OnBeginPrinting</TT><BR>	<BR>	6. About 1,440<BR>	<BR>	7. Set the <TT>CPrintInfo::m_bContinue</TT> member variable to <TT>TRUE</TT><BR>	<BR>	8. The positive direction is up--the bottom of the page is usually a large negative	number.<BR>	<BR>	9. The positive direction is to the right.	<P>10. <TT>OnEndPrinting</TT></DL><H2><FONT COLOR="#000077"><B>Hour 22 Quiz</B></FONT></H2><DL>	<DD>1. Persistence is the capability of an object to remember its state between executions.<BR>	<BR>	2. Serialization is the act of storing the state of an object for the purpose of	loading it at another time.<BR>	<BR>	3. Serialization is the act of storing the state of a persistent object to an archive;	deserialization is the act of reading data from an archive and re-creating a persistent	object.<BR>	<BR>	4. <TT>CArchive</TT><BR>	<BR>	5. <TT>Serialize</TT><BR>	<BR>	6. <TT>SerializeElements</TT></DL><H2><FONT COLOR="#000077"><B>Hour 23 Quiz</B></FONT></H2><DL>	<DD>1. A form view is always modeless, whereas a dialog box can be either modal or	modeless. A form view fits into the Document/View architecture and receives view	messages from the MFC framework; a dialog box does not.<BR>	<BR>	2. A dialog box resource used in a form view must have the following attributes:	<P>	<UL>		<LI><TT>Style</TT>: Child<BR>		<BR>				<LI><TT>Border</TT>: None<BR>		<BR>				<LI><TT>Visible</TT>: Unchecked<BR>		<BR>				<LI><TT>Titlebar</TT>: Unchecked<BR>		<BR>			</UL>	<DD>3. You must call <TT>ResizeParentToFit</TT> twice during <TT>OnInitialUpdate</TT>:</DL><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF"><TT>ResizeParentToFit( FALSE );</TT><TT>ResizeParentToFit();</TT></FONT></PRE></BLOCKQUOTE><PRE><FONT COLOR="#0066FF"><TT></TT></FONT></PRE><DL>	<DD>4. <TT>OnInitialUpdate</TT> is called when the form view is initially displayed	and is a good place to perform one-time initializations for your form view. <TT>OnUpdate</TT>	is called when the document wants to notify the view that the document has been updated;	it's also called after <TT>OnInitialUpdate</TT>.<BR>	<BR>	5. To prevent an MDI child window from being resized, you must change the style of	the frame that contains the form window. By default, this is the <TT>CChildFrame</TT>	class. Masking off the <TT>WS_THICKFRAME</TT> style bits during <TT>PreCreateWindow</TT>	will create a frame window that cannot be resized. If you make this modification,	you might also want to mask off the <TT>WS_MAXIMIZEBOX</TT> style bit; this will	disable the Maximize button on the form view.<BR>	<BR>	6. <TT>UpdateAllViews</TT><BR>	<BR>	7. A document template resource string, an icon used for the view, and the menu used	for the view<BR>	<BR>	8. <TT>CEditView</TT><BR>	<BR>	9. <TT>CScrollView</TT>	<P>10. <TT>CMultiDocTemplate</TT></DL><H2><FONT COLOR="#000077"><B>Hour 24 Quiz</B></FONT></H2><DL>	<DD>1. An ActiveX interface is a group of related functions that are grouped together.<BR>	<BR>	2. <TT>IUnknown</TT><BR>	<BR>	3. The ActiveX Control Test Container, Visual Basic, Internet Explorer, Access, Word,	Excel, PowerPoint, and many others.<BR>	<BR>	4. Ambient, Extended, Stock, and Custom<BR>	<BR>	5. Stock and Custom<BR>	<BR>	6. <TT>DDP</TT> and <TT>DDX</TT><BR>	<BR>	7. <TT>COleCtrl</TT>, <TT>COleControlModule</TT>, and <TT>COlePropertyPage</TT><BR>	<BR>	8. Ambient properties<BR>	<BR>	9. Subclassing is a method of borrowing functionality from another window or control.<BR>	<BR>	10. <TT>DoSuperclassPaint</TT></DL><CENTER><P><HR><A HREF="../apa/apa.htm"><IMG SRC="../button/previous.gif" WIDTH="128" HEIGHT="28"ALIGN="BOTTOM" ALT="Previous chapter" BORDER="0"></A><A HREF="../index.htm"><IMGSRC="../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>&copy; <A HREF="../copy.htm">Copyright</A>, Macmillan Computer Publishing. Allrights reserved.</CENTER></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -