Window::SendMessage

Description

Sends a message to the window and does not return until the window procedure has processed the message.

Syntax

LRESULT SendMessage( uint msg, DWORD wParam = 0, DWORD lParam = 0 )

Parameters

msg
[input] Specifies the message to be sent.
wParam
[input] Specifies additional message-dependent information.
lParam
[input] Specifies additional message-dependent information.

Return

The result of the message processing; its value depends on the message sent.

Examples

EX1

int Window_SendMessage_ex1()
{
    GraphPage gp;
    gp.Create("origin.otp");

    Window myWindow = gp.GetWindow();
    myWindow.SendMessage(WM_CLOSE);
    if(gp.IsValid())
        out_str("Error: gp should be destroy.");
    return 0;
}

Remark

See Also

header to Include

origin.h