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.