Window::GetSafeHwnd

Description

This function returns the window handle

Syntax

HWND GetSafeHwnd( )

Parameters

Return

Returns the window handle for a window.

Returns NULL if the Window class is not attached to a window.

Examples

EX1

int Window_GetSaftHwnd_ex1()
{
    // make active window iconized
    WorksheetPage myDlg = Project.WorksheetPages(0);
    Window winDlg = myDlg.GetWindow();
    MessageBox(winDlg.GetSafeHwnd(), "Hello", "Test", MB_OK);
    return 0;
}

Remark

See Also

header to Include

origin.h