Skip to content

Windows_Message - DfBaseWindow

Sends a message to the Windows message queue

Type: Procedure

Parameters

Parameter Type Description
iWindowsMessage integer Specifies the message to be sent
iParam1 Longptr Specifies additional message-specific information
iParam2 Longptr Specifies additional message-specific information

Syntax

Procedure Windows_Message integer iWindowsMessage Longptr iParam1 Longptr iParam2

Call Example

Send Windows_Message iWindowsMessage iParam1 iParam2

Description

Use of this method requires Windows API knowledge about the message being sent and the control that will process the message.

Sample

This sample shows how to use WindowsMessage to retrieve the progress bar position DataFlex cProgressBar object.

Function Position Returns Integer
    If (Window_Handle(self)) Begin
        Function_Return (WindowsMessage(PBM_GETPOS, 0, 0))
    End
    Else ;
        Function_Return 0
End_Function

Sample

This sample shows how to use WindowsMessage to retrieve a handle to the next sibling of a passed node in a DataFlex TreeView object.

Function NextSibling Handle hItem returns Handle
    Move (WindowsMessage(TVM_GETNEXTITEM, TVGN_NEXT, hItem)) To hItem

    Function_Return hItem

End_Function