Message ID for the Request "add stop off ponit":
RI_MESSAGE_ADDSTOPPOFFPOINT
Write Memory:
RI_AddStopOffPoint_WriteData(LPARAM id, RI_CAddStopOffPoint data );
Return Values for AddStopOffPoint:
RI_NOERROR = AddStopOffPoint succeeded
RI_NODESC = AddStopOffPoint not succeeded, Description failed
RI_NOTADDED = AddStopOffPoint not succeeded, AddStation failed
RI_NOTLINKABLE = AddStopOffPoint not succeeded, Position not linkableNo Address found
Description:
Adds a stop-off-point to the stationlist.
Example:
#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_AddStopOffPoint::WindowProc ( UINT message , WPARAM wParam , LPARAM lParam )
{
{
}
return CDialog::WindowProc( message, wParam, lParam );
}
void CDlgMFC_AddStopOffPoint::foo()
{
LPARAM id = GetUniqueID();
return;
else
}