昨天做了下,出现了一个奇怪的问题,在vc6.vs2005下跑的很好
在evc下就是不行
网上找了下,发现有个老外也有这个问题
引用如下:
I want to create a owner draw menu on SDI.
After i change the menu item to this:
pMyMenu->ModifyMenu(i, MF_BYPOSITION | MF_OWNERDRAW, 0, (LPCTSTR)pMenuData);
when I call HMENU hMenu = (pMyMenu->GetSubMenu(i))->GetSafeHmenu();
hMenu return NULL. But when I delete the ModifyMenu(..), the hMenu will return normal handle for the sub menu.
This code can normally run on visual C++.
How can i do it . Is any one have owner draw menu sample for SDI program. thanks.
同样的问题