四条MCSD题目
gyscs 2002-03-11 04:09:20 You write a Wondows-based application by using MFC.You create a scrolling view class by deriving from the MFC library class CScorollView. The source code that implements your class includes the following code fragment:
CMyView::OnLButtonDown(UNIT,CPoint point)
{
CCLientDC dc(this);
OnPrepareDC(&dc);
}
What is the most likely result of the call to the OnPrepareDC function?
A.The clipping region of the view is adjusted to the containing frame
B.The device Contest object is enabled for GDI calls.
C.The view will disable scrolling while drawing takes place.
D.The viewport origin and viewport extents are adjusted to the containing frame.
You create an application for your company.The company has a network connecting several work locations across the country.Computers at all locations have access to a central several work locations across the country.Computers at all locations have access to a central server on this network.The server is located at the read office.You want to package the application files in a single.cab file
What must you have to create the .cab file (Chose all that apply.)
A.the application files
B.the .inf file describing files to be packaged in the .cab file
C.a Software Publisher Certificate
D.the Cabarc utility program
E.the Cabivew utility program
F.the Signcode utility program
You write a Windows-based application by using Platform SDK.In your application,you want to initiate an action whenever the user presses the F2 key.
Which Microsoft Windows message should you respond to?
A.WM_CHAR
B.WM_HOTKEY
C.WM_SYSKEYDOWN
D.WM_KEYDOWN
E.WM_SETHOTKEY
F.WM_GETHOTKEY
You design a Windows-based application by using MFC.Users can enable or disable error logging by clicking the Log Errors command on the Tools menu of Your application.Error logging is indicated by a check mark displayed next to the log Errors command on the Tools menu.The state of the menu item is stored in a Boolean class member variable named m_bLogErrors.
How should you manage the menu item?
A.Write an ON_UPDATE_COMMAND_UI handler function,and add it to the message map.
Call the CCmdUI::SetRadio function from within the handler
B.Write an ON_COMMAND handler function,and add it to the message map.
Call the CcmdUI::Enable function from within the handler.
C.Write an ON_UPDATE_COMMAND_UI handler function,and add it to the message map.
Call the CCmdUI::Enable function from within the handler.
D.Write an ON_COMMAND handler function,and add it to the message map.
Call the CCmdUI::SetCheck function from within the handler.
E.Write an ON_UPDATE_COMMAND_UI handler function,and add it to the message map.
Call the CCmdUI::SetCheck Function from within the handler.
F.Write an ON_COMMAND handler function,and add it to the message map.
Call the CCmdUI::SetRadio function from within the handler.
分别该怎么做啊,再写一下为什么,谢谢