1. What is MSG structure?
2. What function does the API DispatchMessage() perform ?
3. Explain all four parameters to a WndProc() function.
4. Write the three most important members of the structure WNDCLASSEX.
5. How is ShowWindow()different from CreateWindow() ?
6. What is a CALLBACK function? Give an example.
7. How do you establish a message loop in a Windows program?
8. Name any 5 mouse messages.
9. Name any 5 keyboard messages.
10. What are virtual key codes? How they are different from Scan codes? How they are different from ASCII
codes?
11. What arrangements have to be made with the WNDCLASSEX structure of a Window class to start getting
WM_DBLCLKS messages for double clicks of mouse?
12. What are the contents of wParam and lParam for a mouse message?
13. Which APIs are used to set and destroy Timers?
14. What are the contents of wParam and lParam for the WM_COMMAND message related with a menu?
15. Write the steps involved in creating a menu through a resource editor.
16. What are the contents of LOWORD(wParam), HIWORD(wParam) and lParam for messages related with
child window control?
17. A check box is created from a CheckBox class. (T/F)
18. Explain the purpose of the API GetDlgItem()
19. Write a code snippet to demonstrate the use of SendMessage() in context of child window controls.
20. Name any four system control classes.
21. What are common dialogs? Name three common dialogs.
22. What are windows resources?
23. Name any 5 resources.
24. What is the difference between a modal and a modeless dialog box?
25. Name any 5 GDI objects.
26. What are stock GDI objects?
27. What is a clipboard? What are different clipboard formats?
28. How many bytes are there in a UNICODE character?
29. A dynamic link library gives us better speed performance than a static link library. (T/F)
30. What is a Resource Only Library?
31. Show the hierarchical relationship among a Frame window, Client window and Child window in a MDI
application.
32. “While programming for Windows in C using SDK, we simulate Object Oriented Programming”. Justify
this statement
33. In a typical Windows program we have one WinMain() function and one WndProc() function. 34. How is
WndProc() called automatically when there is no explicit call to it in the WinMain() ?
35.When do you get the message WM_PAINT? Why do you trap the WM_PAINT message and not the
WM_CREATE message to write TextOut() in a typical “HelloWorld” program?
36. What is GDI? Why it is advised to use BeginPaint() and EndPaint() in pairs?
37. What happens when you register a window? How is RegisterClassEx()different from CreateWindow()?
38. Is it always necessary to call DefWindowProc() at the end of your WndProc()? If not what extra piece of
code will have to be written by the programmer?
39. What is the difference between the members hIcon and hIconSm of the WNDCLASSEX structure ?
40. How does Windows achieve device independence by the use of GDI?
41. What type of translation is carried out in the API TranslateMessage() ?
|