BCGControlBar Pro for MFC
int CBCGPPopupMenu::InsertSeparator ( int  iInsertAt = -1)

Inserts separator at the specified position.

The zero-based index of the position at which the separator was inserted. It is -1 if the specified position is invalid.

Inserts a separator into the popup menu at the specified position. If the specified by iInsertAt position is -1 the separator is added at the end of the popup menu.

iInsertAtSpecifies the zero-based index of the position to insert the separator.