home *** CD-ROM | disk | FTP | other *** search
- void MyApp_OnMenuSelect (HWND hwnd, HMENU hmenu, int item, HMENU hmenuPopup, UINT flags)
- {
- BOOL fSimple;
- char szBuff [256];
-
- fSimple = flags != 0xFFFF || hmenu != NULL;
-
- // If menu is closing, set status bar back to normal
-
- SendMessage (hWndStatus, SB_SIMPLE, fSimple, 0);
-
- if (fSimple)
- {
- if (flags & MF_SEPARATOR) szBuff [0] = æ\0Æ;
- else LoadString (hInstance, item, szBuff, sizeof (szBuff));
- SendMessage (hWndStatus, SB_SETTEXT, 255, (LPARAM) szBuff);
- }
- }
-