How do I create a menu seperator (in a Win32 program). I've got the following code;
Code:
// Creates sub menu
hSubMenu = CreatePopupMenu();
AppendMenu(hSubMenu, MF_STRING, IDC_MENU_NEW, "&New");
AppendMenu(hSubMenu, MF_STRING, IDC_MENU_OPEN, "&Open");
AppendMenu(hSubMenu, MF_STRING, IDC_MENU_SAVE, "&Save");
AppendMenu(hSubMenu, MF_STRING, IDC_MENU_SAVEAS, "Save &As");
AppendMenu(hSubMenu, MF_STRING, IDC_MENU_SEP1, ""); //Like this to be a seperator
AppendMenu(hSubMenu, MF_STRING, IDC_MENU_EXIT, "E&xit");
AppendMenu(hMenu, MF_STRING | MF_POPUP, (UINT)hSubMenu, "&File");
Thanks