1. You can place a message in application message queue by
a) SendMessage() b) PostMessage()
c) PeekMessage() d) SetMessage()
|
2. From the following, which is the message that dialog box processes?
a) WM_DESTROY b) WM_QUIT
c) WM_COMMAND d) WM_CLOSE
|
3. The return type of dialog procedure is...
a) BOOL b) LRESULT
c) int d) void
|
4. Find out the odd function
a) BeginPaint()......EndPaint() b) GetDC()..........ReleaseDc()
c) CreateDc().........DeleteDc() d) CreateIC()
|
5. Which API is used to close a modeless dialog box?
a) EndDialog() b) KillDialog()
c) CloseDialog() d) DestroyWindow()
|
6. Which button style is used to group the buttons?
a) BS_AUTOGROUP b) BS_GROUPBOX
c) BS_SETCHECK d) BS_GROUPBUTTON
|
7. Which of the following is the correct declaration for Window Procedure WndProc?
a) LRESULT CALLBACK WndProc(HWND, UINT, LPARAM, WPARAM);
b) LRESULT CALLBACK WndProc(UINT, HWND, WPARAM, LPARAM);
c) LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
d) LRESULT far WndProc(HWND, UINT,WPARAM, LPARAM);
|
8. A child window control sends WM_COMMAND message to the parent window. The handle of child window control is contained in the following message parameter.
a) wParam b) lParam
c) LOWORD (wParam) d) HIWORD (wParam)
|
9. The name of the system defined class for a check box control is-
a) CheckBox b) option
c) RadioButton d) button
|
10. In an MDI application, the responsibility of rearranging/ cascading document windows lies with
a) MDI Client b) MDI Frame Window
c) Main Window d) Child Window
|
11. This message is sent by the windows common controls (TreeView/ ListViews) to the parent window.
a) WM_COMMAND b) WM_COPY
c) WM_CREATE d) WM_NOTIFY
|
12. The function _beginthread() requires this header file.
a) THREAD.H b) PROCESS.H
c) WINDOWS.H d) AFX.H
|
13. While processing WM_PAINT message this GDI function can be used to get the handle of device context.
a) GetDC() b) GetWindowDC()
c) BeginPaint() d) CreateCompatibleDC()
|
14. While writing a DLL this function has to be implemented.
a) LibMain() b) DllMain()
c) LibDll() d) WinDll()
|
15. This API is used to stretch and transfer a bitmap.
a) Bitblt() b) Stretchblt()
c) Patblt() d) Transferblt()
|
|