hey, i have a sub-menu in my program which has a new, open, save, cut, copy, and paste button. however, i'd like to have a space between the first 3 and the last 3. how can i do this? thanks
hey, i have a sub-menu in my program which has a new, open, save, cut, copy, and paste button. however, i'd like to have a space between the first 3 and the last 3. how can i do this? thanks
Registered Linux User #380033. Be counted: http://counter.li.org
MF_SEPARATOR.
Code:AppendMenu(hMenu, MF_SEPARATOR, someID, NULL);
and i would place that where in my code? because it doesn't work here:
i get this error:Code:tbb[2].iBitmap = STD_FILESAVE; tbb[2].fsState = TBSTATE_ENABLED; tbb[2].fsStyle = TBSTYLE_BUTTON; tbb[2].idCommand = ID_FILE_SAVEAS; AppendMenu(hTool, MF_SEPARATOR, someID, NULL); tbb[3].iBitmap = STD_COPY; tbb[3].fsState = TBSTATE_ENABLED; tbb[3].fsStyle = TBSTYLE_BUTTON; tbb[3].idCommand = ID_EDIT_COPY;
warning: passing arg 1 of `AppendMenuA' from incompatible pointer type
Registered Linux User #380033. Be counted: http://counter.li.org
ow! You mean in Toolbar, that you didn't mention that you were working with toolbars
Well... try TBSTYLE_SEP
sweet thanks.
haha, yea..i can see how you'd think i was referring to menu's rather than toolbars. usually i just use SEPERATOR though for those..
Registered Linux User #380033. Be counted: http://counter.li.org