Tuesday, February 19, 2008

EXPLANATION OF THE PROGRAM:

EXPLANATION OF THE PROGRAM:

The program is similar to earlier sample code .The only difference is w.r.t the WM_COMMAND message and lpszMenuName parameter of the WNDCLASS structure.

MAKEINTRESOURCE macro is used define to convert the integer identifier of the menu resources into a character string which can be identified a resource.

WM_COMMAND message is generated when you click a menu item. If the sub menu options selected then wParam parameter will store the ID of that option.

For example ID_MESSAGE and ID_QUIT.

And lParam contains additional information like handle to the control etc.

No comments: