Possible Duplicate:
InsertMenu/AppendMenu - How to add Icons to menu and submenus using C++ and win32
你好,我有一个 C++ 菜单,这是它的代码
HMENU hMenu = CreateMenu();
HMENU hFileMenu = CreatePopupMenu;
HMENU HFileOpen = CreateMenu;
AppendMenu(hFileMenu, MF_STRING, (UINT)hFileOpen, "Open");
AppendMenu(hMenu, MF_STRING | MF_POPUP, (UINT)hFileMenu, "File");
SetMenu(hwnd,hMenu);
我一直在互联网上查找,但找不到有关如何为菜单项制作位图的教程。 我想为 hFileOpen 添加位图。 我该怎么做?
最佳答案
关于c++ - 如何在 c++ win32 API 中向菜单项添加图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12663717/