https://www.google.com/contributor/welcome/?utm_source=publisher&utm_medium=banner&utm_campaign=2376261057261409

Search This Blog

Search with our Site

Custom Search

Sunday, January 8, 2012

CS410 Assignment No 4 Solution & Discussion Fall 2011

Q1 [Marks: 10]
Suppose an application has a window and 2 menu resources, one is IDM_MENU1 and second is IDM_MENU2. While registering the window class in this application, we make IDM_MENU1 the class menu. Now, we have 2 scenarios:
1. We give the menu handle of IDM_MENU2 during creating the window.
2. We give NULL as the menu during creating the window.
You have to tell which menu will be associated to the window in both cases.



Q2 [marks: 10]

Suppose we have an application that creates an overlapped window with a push button on it. We have coded the window procedure of the window in such a way that when the button is pressed a message box appears. A smart user makes a very good observation about our application. He say,” When I click the button, a message box appears. I drag the message box to a side using mouse and try to click the button again only to find that I cannot do it now. Now I click OK button of message box and message box disappears. After it I can again click the push button of the window.”
Explain to the user the reason of his/her observation.

No comments:

Post a Comment