Hide

SftTabs/DLL 6.5 - Tab Control

Display
Print

IsRegisteredDialog / -Window

Determines whether a given window or dialog is registered with SftTabs/DLL for special tabbed dialog or tabbed window handling, such as accelerator key handling, ESCAPE and TAB key processing, etc.

C

BOOL WINAPI SftTabs_IsRegisteredDialog(HWND hwndDialog);
BOOL WINAPI SftTabs_IsRegisteredWindow(HWND hwndWnd);

Parameters

hwndDialog, hwndWnd

The window handle of the dialog or window to be tested.

Returns

The return value is TRUE if the window is registered with SftTabs/DLL for special tabbed dialog or window handling, otherwise FALSE is returned.

Comments

The IsRegisteredDialog function determines whether a given window or dialog is registered with SftTabs/DLL for special tabbed dialog or tabbed window handling, such as accelerator key handling, ESCAPE and TAB key processing, etc.

A main tabbed dialog or window containing a tab control is registered using SftTabs_RegisterWindow or SftTabs_RegisterDialog. Windows and dialogs based on the C++ class CSftTabsDialog are automatically registered.

Examples

C

    switch (msg) {
    case WM_INITDIALOG:
        SetWindowText(GetDlgItem(hwndDlg, IDC_P1_EDIT1), TEXT("Click another tab"));
        SendMessage(GetDlgItem(hwndDlg, IDC_P1_CHECK1), BM_SETCHECK, 1, 0);

        // initialize page
        SftTabs_SetPageActive(hwndDlg, (HWND) lParam, NULL);
        return !SftTabs_IsRegisteredDialog(GetParent(hwndDlg));
    }

    if (SftTabs_HandleDialogMessage(hwndDlg, msg, wParam, lParam))
        return TRUE;
    if (SftTabs_TransparentControls(hwndDlg, NULL, &msg, &wParam, &lParam, &lResult, 0, 0))
        return (BOOL) lResult;

    return FALSE;

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


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