The TBN_QUERYINSERT notification message notifies the toolbar’s parent window whether a button may be inserted to the left of the specified button while the user is customizing a toolbar. This message is sent in the form of a WM_NOTIFY message.
TBN_QUERYINSERT ptbn = (TBNOTIFY FAR *) lParam;
Returns TRUE to allow a button to inserted in front of the given button or FALSE to prevent the button from being inserted.