Make a menu
Posted on 2006-04-20
On my main menu I have a drop down titled 'stuff', which has like 5 sub menu items:
I'd like to have a sub menu for 'Orange', so when the user mouses over, a menu comes out of it with additional items. This is easy to do with the vc++ editor. But I need to read the number of items to put in there from disk, something like:
void CMainFrame::GetDropdownMenuItems(vector<CString> &vItems)
// Populate vItems like 'itemA', 'itemB', 'itemC'
Then the menu should look like:
|- Orange ---- itemA
|- Pear itemB
I'm just not sure where to override what in order to get a chance to dynamically build the sub menu for 'Orange'?