Share via


CToolBarCtrl::MoveButton

Moves a button from one index to another.

BOOL MoveButton( 
   UINT nOldPos, 
   UINT nNewPos  
);

Parameters

  • nOldPos
    The zero-based index of the button to be moved.

  • nNewPos
    The zero-based index of the button's destination.

Return Value

Nonzero if successful; otherwise 0.

Remarks

This member function implements the behavior of the Win32 message TB_MOVEBUTTON, as described in the Windows SDK.

Requirements

Header: afxcmn.h

See Also

Reference

CToolBarCtrl Class

Hierarchy Chart