I found the solution, use CCS_NORESIZE in the style parameter when you create the toolbar, then manually do MoveWindow in OnSize.