c++ - Editing system menu using InsertMenuItem() not working correctly -
i trying add together "about" menu item in sec place of scheme menu, it's showing last!
hmenu hsystemmenu = getsystemmenu(hwnd, false); menuiteminfo mii_system; mii_system.cbsize = sizeof(menuiteminfo); mii_system.fmask = miim_string | miim_id; mii_system.wid = 1005; mii_system.dwtypedata = "about"; insertmenuitem(hsystemmenu, 1, false, &mii_system);
bool winapi insertmenuitem( _in_ hmenu hmenu, _in_ uint uitem, _in_ bool fbyposition, _in_ lpcmenuiteminfo lpmii ); fbyposition [in] type: bool
controls meaning of uitem. if parameter false, uitem menu item identifier. otherwise, menu item position.
i'm guessing want position 1, not item id 1. in case, want true.
c++ winapi
No comments:
Post a Comment