Message ID for the Request "SetBuddyPosition":
RI_MESSAGE_SETBUDDYPOSITION
Write Memory:
RI_SetBuddyPosition_WriteData(LPARAM id, RI_CSetBuddyPosition data);
Return Values for SetBuddyPosition:
RI_NOERROR = set buddy position succeeded
RI_NOTADDED = set buddy position not succeeded, because the coordinate is not valid.
RI_NOTAV = set buddy position not succeeded, could not set coordinate for this buddyId.
<h2>Description:</h2>set the position for a buddy tracking icon.<br>
<br>
<H2>Example:</H2>
#define USE_LOADLIBRARY
#include "TNSRemoteInterfaceDll.h"
LPARAM GetUniqueID()
{
static LPARAM id = 0;
if (++id == 0) ++id;
return id;
}
inline LRESULT RI_MESSAGE( const UINT request, HWND h_client, LPARAM id )
{
PostMessage(
RI_GetTNS(), request, WPARAM(h_client),
id );
}
LRESULT CDlgMFC_SetBuddyPosition::WindowProc ( UINT message , WPARAM wParam , LPARAM lParam )
{
{
{
}
{
}
{
}
{
}
}
return CDialog::WindowProc( message, wParam, lParam );
}
void CDlgMFC_SetBuddyPosition::foo()
{
LPARAM id = GetUniqueID();
LRESULT sharing_ret = RI_SetBuddyPosition_WriteData( id, data );
return;
else
}