Help Center

CTab.SetMinTabWidthmethod

Sets the width and height of tabs in a fixed-width or owner-drawn tab control.

WindowsmethodCTab.incdocumented

Syntax

FUNCTION SetMinTabWidth (BYVAL hTab AS HWND, BYVAL cx AS LONG) AS LONG

Parameters

NameDescription
hTabHandle to the tab control.
cxMinimum width to be set for a tab control item. If this parameter is set to -1, the control will use the default tab width.

Return value

Returns a value that represents the previous minimum tab width.

Description

Sets the width and height of tabs in a fixed-width or owner-drawn tab control.

Example

CTab.SetMinTabWidth(hTab, 50)

Reference

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