四条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.

分别该怎么做啊,再写一下为什么,谢谢
...全文
34 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
wwtmw 2002-03-26
  • 打赏
  • 举报
回复
..
gyscs 2002-03-26
  • 打赏
  • 举报
回复
谢谢各位
expert_zh 2002-03-25
  • 打赏
  • 举报
回复
1.d 应该不是b,因为它的功能肯定不是enable device,而是configure或adjust device
2.bc 不太清楚
3.c F2是系统键
4.e 我就是这么用的
iamxia 2002-03-25
  • 打赏
  • 举报
回复
.
cvip11 2002-03-24
  • 打赏
  • 举报
回复
1. d 2. b .3. c. 4. d
gyscs 2002-03-11
  • 打赏
  • 举报
回复
说说为什么啊,谢谢
idoloveyou 2002-03-11
  • 打赏
  • 举报
回复
1. B
2. AD (not sure)
3. D
4. E

16,472

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧