Tuesday, March 24, 2009

Attach Menu to Dialog-based Application

1. Create menu resource MYMENU.
2. Use the following code in response to the WM_INITDIALOG message

HMENU hMenu = LoadMenu(hInst, MAKEINTRESOURCE(MYMENU));
SetMenu( hwnd,hMenu);

No comments:

Post a Comment