DOCUMENT AND VIEW ARCHITECTURE
1. What is keyboard accelerator?
The keyboard accelerator resource consists of a table of key combinations' with associated command ids a keyboard accelerator entry does not have to be associated with a menu item.
2. What are the two text editing tools?
Windows itself supplies two text editing tools edit control and windows rich edit common control both canbe used as controls within dialogs. But both can also be made to look like view windows. The MFC library supports this versatility with the CEDITVIEW and CRICHEDIT VIEW CLASSES
THE CEDITVIEW CLASS: - This c:lass is based oil the, windows edit control so it inherits all the edit limitations.
CRICHEDITVIEW CLASS: - This class uses the rich edit control so it supports mixed formats and large quantities of text.
3. What are the steps to be followed to build floating pop up menus? ',' .
1. Use the menu editor to insert anew, empty menu in your project's resource file .
2. Type some characters in the left top-level item, and then add your menu items in the resulting pop-up menu.
4. What is message line?
A message, line pane displays a string that the program supplies dynamically.
- Toolbar and status bar enablement and position
5. What are the functions that treat registry data as either CString objects or unsigned integers.?
- Get profileInt
- Write Profile Int
- Get Profile String
- Write Profile String
6. What are the two CFramewndmember functions?
The MFC' iibrary provides two CFrameWnd memher functions, save bar state and load bar state, her saving and' loading control bar status to and from the registry the functions process the size and position of the status bar and docked toolbars. they don't process the position of floating toolbars.
7. What is serialization?
The objects can be saved on disk when a program outs and then can be restored when the program
is restarted this process of saving and restarting' objects is called serialization.
8. What are the processing steps should be taken place for ach object in thecollection?
1: The object's class is identified
2. Heap storage is allocated for the object
3. The Object's data is loaded into the newly,allocated storage.
4. A pointer to the new object is stored in the collection '
9. What are the steps to be taken for connecting me open to serialization code? .
The steps are
1. Prompt the user to select a file
2. Calls the virtual function c document: : on open document for the already existing document object. This function opens the 'file, calls. CDocument : : delete contents; arid constructs a C archive object set for loading. It then calls the document's serialize function, which loads data from the archive.
3. Calls the view's on initial update function.
10. Explain loading and storing documents in MDI?
In MDI applications, documents are loaded and stored the same way as in SDI application~ but With two important differences: a new document object is constructed each time a document file is loaded from disk, and the document object is destroyed when tlie child window is closed.
11. Explain splitter window?
A split or window appears as a special type of frame window that holds several views in panes the application can split the window on creation, on the user can split the window by choosing a menu command or by dragging a splitter box 01\ the window's scroll bar. After the window has been, split the user can moue the splitters to adjust the relative. sizes of the panes it can be used in both SDI and MDI applications.
12. What is dynamic and static splitter window?
. .
Dynamic splitter window: - It allows the user to Split the window at any time by choosing a menu item or by dragging' a splitter. box located on the scroll bar the panes in it generally use the same view class.
Static splitter window: - The panes of a static splitter window are defined when the window is first created and they cannot be changed.
13. What are the resources of splitting the window? .
When appwizard generates an application with a splitter frame, it includes a split option in the project's view menu. The ID- Window-Split command Id is mapped in the C view
. class within the MFC library,
14. How a COM client calls an out-of-process?
Com links the EXE components in different process there its remoting arch, which usually involves remote procedure call (RPCS). In an RPC the client makes a calls to a special,
DLL called a proxy .The proxy sends a stream of data to a stub which is inside a DLL in the components process when the client calls a component fn., the proxy allies the stud by sending a message to the component program, which is processed by a fid den window
15. What are dynamic link libraries?
'Windows allQws dynamic linking, which means that specially constructed libraries can beloaded and linked at runtime. The MFC developers succeeded in combining all . the application framework classes into a few ready-built DLLs. This means that you can statically or dynamically link the application framework classes into your application. In, addition, you can create your own extension DLLs that build on the MFC DLLs.
16. What is an application framework?
Application framework is an integrated collection of object-oriented software components that' offers all that's needed for a generic application
17. Mention some of the program elements?
Some of the program elements used are
- The WinMain function
- The CMyApp class.
- Application start up.
- The CMyApp::InitInstance member function.
No comments:
Post a Comment