Help Center

CToolbar.MoveButtonmethod

Moves a button from one index to another.

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION MoveButton (BYVAL hToolbar AS HWND, BYVAL uOldPos AS DWORD, BYVAL uNewPos AS DWORD) AS BOOLEAN

Parameters

NameDescription
hToolbarHandle to the toolbar control.
uOldPosZero-based index of the button to be moved.
uNewPosZero-based index where the button will be moved.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Moves a button from one index to another.

Reference

  • Include file CToolbar.inc
  • Defined in AfxNova/CToolbar.inc:963
  • Documented in Windows/WIndows Controls/CToolbar Class.md
  • Topic: CToolbar Class