|
|

|
#1. You are developing an MFC-MDI application that uses DDX. One of the requirements for your application is that the data between each form view and its dialog box controls must be updated through DDX whenever the form view is activated or deactivated. To fulfill this requirement, you override OnActivatcView for your form view. Your form view's OnActivateVicw contains the following code: void CViewl::OnActivateView(BOOL bActivate, CView* pActivatcVicw, CVicw* pDcactivcVicw) {//TODO: store/restore dialog control data HERE. CFormView: :OnActivateView(bActivate, pActivateView, pDeactiveView);) You must write the code indicated by the //TODO comment.
Which code fragment should you insert in place of the //TODO comment?
Показать комментарии к этому вопросу (0)
Добавить комментарии
Ссылка на этот вопрос
|
|
#2. You want to use a form view in your MFC-MDI application. You add a Close button to the dialog resource that will be used with the form View. You then add to the form view class a button click handler for the Close button You want the button click handler for the Close button to close the MIDI child window that contains the form view.
What must you do in the button click handler of the Close button to accomplish this goal?
Показать комментарии к этому вопросу (0)
Добавить комментарии
Ссылка на этот вопрос
|
|
#3. You are writing a Windows-based application by using MFC. Your application uses a CForm View-derived object to manage a dialog box. You add the Microsoft Web Browser control to your project. You drag the control to your dialog box, but you do not see the control when Visual C++ is running in debug mode.
How can you make the Web Browser control appear?
Показать комментарии к этому вопросу (0)
Добавить комментарии
Ссылка на этот вопрос
|
|
#5. You write a Windows-based SDI application that uses a set of Microsoft Windows controls for input. To simplify the design of your application, you create a form by using the Visual C++ resource editor. You derive a class from the standard MFC CFormView class, and you use this class as the default view in your application. You want to resize the main frame window of the application to match the size of the form you have designed.
What should you do?
Показать комментарии к этому вопросу (0)
Добавить комментарии
Ссылка на этот вопрос
|
|
#6. You are modifying a change-password dialog box for a number of applications that are used internally by your company. You arc using an edit control named Editi to accept the user's password. You want to require a minimum length for passwords. You also want the control to retain focus until the user has entered a password that is valid by company rules.
What should you do to meet these requirements?
Показать комментарии к этому вопросу (0)
Добавить комментарии
Ссылка на этот вопрос
|
|
#7. You are using Visual C++ to create a COM component that will scan files for conformance to validity constraints. The component might be used by many client programs at the same time. To avoid duplicate scanning, the component maintains an internal list of files it has scanned. The component does not persist this list when it unloads.
Which type of COM component should you create?
Показать комментарии к этому вопросу (0)
Добавить комментарии
Ссылка на этот вопрос
|
|
#10. You design a COM component for use by many user interface applications in your company. One of the interface methods for the component defines a parameter for an IP address as a string in the format nnn.nnn.nnn.nnn. The component's type library defines this parameter as both an input and an output parameter. When the interface method is called, the component validates the IP address. If the current user is forbidden to access that address, then the component should change the parameter to the string 0.0.0.0 and display this string within the application.
Which type of COM component should you design?
Показать комментарии к этому вопросу (0)
Добавить комментарии
Ссылка на этот вопрос
|
|
|
|
ген. 0.089
|
Дата сервера 10:04 09-01-2009
|
Разработал Zip © 2006
|
|
 |
|
|