Jump to content

WpEndConversation: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:wpEndConversation}} This instance method is called to notify the object that the drag or drop operation is complete. ==Syntax== _wpEndConversation(somSelf, ulItemID, fResult) ==Parameters== ;''somSelf'' (WPObject *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPObject. ;''ulItemID'' (ULONG) - input :This is the *ulItemID* from the DRAGITEM that was contained within the DRAGINFO..."
 
(No difference)

Latest revision as of 06:39, 16 November 2025

This instance method is called to notify the object that the drag or drop operation is complete.

Syntax

_wpEndConversation(somSelf, ulItemID, fResult)

Parameters

somSelf (WPObject *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPObject.
ulItemID (ULONG) - input
This is the *ulItemID* from the DRAGITEM that was contained within the DRAGINFO structure when the object was dropped.
fResult (ULONG) - input
Flag indicating whether the operation was performed successfully. See `DM_ENDCONVERSATION` in the *Presentation Manager Programming Reference* for more information about this parameter.

Returns

mresreturn (MRESULT) - returns
See `DM_ENDCONVERSATION` in the *Presentation Manager Programming Reference* for a description of the return value.

How to Override

This method should be overridden if the object needs to do any actions once the drag or drop operation is complete.

Usage

This method is generally called only by the system as the folder containing the object processed by the `DM_ENDCONVERSATION` message.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */
ULONG ulItemID;
ULONG fResult; /* Flag indicating whether the operation was performed successfully. */
MRESULT mresreturn;

mresreturn = _wpEndConversation(somSelf, ulItemID,
                fResult);

Remarks

The **wpEndConversation** method is called when the object receives a `DM_ENDCONVERSATION` message. See `DM_ENDCONVERSATION` in the *Presentation Manager Programming Reference* for more information.

Related Methods