TCM_SETEXTENDEDSTYLE

This message sets the extended styles that the tab control will use.

At a Glance

Header file: Commctrl.h
Windows CE versions: 2.0 and later
Related macro: TabCtrl_SetExtendedStyle

Syntax

  1. TCM_SETEXTENDEDSTYLE wParam = (WPARAM)dwExMask;
    lParam = (LPARAM)dwExStyle;

Parameters

dwExMask

Specifies which styles in dwExStyle are to be affected. Only the extended styles in dwExMask will be changed. All other styles will be maintained as is. If this parameter is zero, then all of the styles in dwExStyle will be affected.

dwExStyle

Specifies the extended tab control styles. This value is a combination of Tab Control extended styles.

dwExMask

Allows you to modify one or more extended styles without having to retrieve the existing styles first. For example: if you pass TCS_EX_FLATSEPARATORS for dwExMask and 0 for dwExStyle, the TCS_EX_FLATSEPARATORS style will be cleared, but all other styles will remain the same.

For backward compatibility reasons, the TabCtrl_SetExtendedStyle macro has not been updated to use dwExMask.

Return Values

Returns a DWORD value that contains the previous tab control extended styles.