Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

Windows Messages

WM_CLOSE

The WM_CLOSE message notifies a window that the user clicked the Close button in the tab control.

Parameters

hwnd = (HWND) wParam;

Window handle of the tab control.

Comments

A parent window can process this message, typically by closing itself or a dependent window. This message only occurs if the fSendWMCLOSE member of the SFTTABS_CONTROL was defined as TRUE. Otherwise, the tab control sends the SFTTABSN_CLOSEBUTTON notification to the tab control's parent window.

WM_CONTEXTMENU

The WM_CONTEXTMENU message notifies a window that the user clicked the right mouse button in the tab control.

Parameters

hwnd = (HWND) wParam;

Window handle of the tab control.

xPos = LOWORD(lParam);

Horizontal position of the cursor, in screen coordinates, at the time of the mouse click.

yPos = HIWORD(lParam);

Vertical position of the cursor, in screen coordinates, at the time of the mouse click.

Comments

A window can process this message by displaying a context menu using the TrackPopupMenu or TrackPopupMenuEx function.

WM_CTLCOLORSTATIC

The WM_CTLCOLORSTATIC message is sent to the parent window of a tab control.

Comments

Using GetCtlColors and SetCtlColors is the preferred method to change color attributes. Although a tab control generates WM_CTLCOLOR messages, the WM_CTLCOLOR message handling is provided for compatibility with SftTabs 2.0 only.

WM_QUERYENDSESSION

The WM_QUERYENDSESSION message is sent to a page of a tabbed dialog when the user chooses to switch to another page or to end the tabbed dialog.

Returns

The return value specifies what action is to be taken. Return TRUE to prevent the tab control from switching to another page, or return FALSE to allow switching to another tab.

Comments

This message is only used for tabbed dialogs implemented using the C API and the techniques shown in Implementing Tabbed Dialogs. The C++ implementation of tabbed dialogs does not generate or use this message.

If a page (or dialog procedure) doesn't handle this message, tab switching is automatic and always possible.

See Also C/C++ API | C++ Classes | Notifications


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.