Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

HandleWindowMessage

The parent window of a tab control and the windows or dialogs used as pages of a tab control call SftTabs_HandleWindowMessage to pass messages on to SftTabs/DLL so they can be processed.

C

BOOL WINAPI SftTabs_HandleWindowMessage(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT * lplResult);

Parameters

hwnd

The window handle of the destination window.

message

Message ID.

wParam, lParam

Message parameters.

lplResult

Pointer to an LRESULT value. This field will be set to the result of the processed message.

Returns

The return value is TRUE if the message was processed by SftTabs/DLL, otherwise FALSE.

Comments

The HandleWindowMessage function is called by the parent window of a tab control and the windows or dialogs used as pages of a tab control to pass messages on to SftTabs/DLL so they can be processed.

If this function is not called, certain features of SftTabs/DLL may not appear to be working correctly, such as accelerator keys, tab switching, ESCAPE and TAB key handling, etc. For dialogs (as opposed to windows) with tab controls, use the SftTabs_HandleDialogMessage function instead.

Example

This C++ example handles unprocessed messages for a CView based window containing a tab control:

LRESULT CSampleView::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
    LRESULT lRes;
    if (SftTabs_HandleWindowMessage(m_hWnd, message, wParam, lParam, &lRes))
        return lRes;
    // call base class
    return CView::WindowProc(message, wParam, lParam);
}

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


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