Variables
AddStopOffPoint_CurrentPosition: Add a stop off point from the current position to the stationlist

Variables

const UINT RI_MESSAGE_ADDSTOPPOFFPOINT_CURRENTPOSITION = RegisterWindowMessage(TEXT("RI_MESSAGE_ADDSTOPPOFFPOINT_CURRENTPOSITION"))
 

Detailed Description

Variable Documentation

const UINT RI_MESSAGE_ADDSTOPPOFFPOINT_CURRENTPOSITION = RegisterWindowMessage(TEXT("RI_MESSAGE_ADDSTOPPOFFPOINT_CURRENTPOSITION"))

Message ID for the Request "add stop off point from current position":
RI_MESSAGE_ADDSTOPPOFFPOINT_CURRENTPOSITION

Write Memory:

This function has no writer.

Read Memory:

This function has no reader.

Return Values for AddStopOffPoint_CurrentPosition:

RI_NOERROR = Current Position succeeded
RI_NOTADDED = Current Position not succeeded

Description:

Adds the current position to the stationlist.

Example:

#define USE_LOADLIBRARY
#include "TNSRemoteInterfaceDll.h"
LPARAM GetUniqueID()
{
//generate unique ID
static LPARAM id = 0;
if (++id == 0) ++id; // do not use 0 !!!!!
return id;
}
inline LRESULT RI_MESSAGE( const UINT request, HWND h_client, LPARAM id )
{
//check if RI handle is valid
if ( !IsWindow( RI_GetTNS() ) )
//send the request
PostMessage( RI_GetTNS(), request, WPARAM(h_client), id );
return RI_NOERROR;
}
LRESULT CDlgMFC_AddStopOffPoint_CurrentPosition::WindowProc ( UINT message , WPARAM wParam , LPARAM lParam )
{
//check messages for answer from RI
{
if ( (LRESULT)wParam == RI_NOERROR )
//Current Position succeeded. errorcode (0)
else
//Current Position not succeeded. errorcode (-1)
}
return CDialog::WindowProc( message, wParam, lParam );
}
void CDlgMFC_AddStopOffPoint_CurrentPosition::foo()
{
LPARAM id = GetUniqueID();
if ( RI_MESSAGE( RI_MESSAGE_ADDSTOPPOFFPOINT_CURRENTPOSITION, GetSafeHwnd(), id ) == RI_NOERROR )
//message sending succeeded
else
//navigation software not running
}

© PTV Group 2020 Generated on Wed Apr 15 2020 12:47:52 for by doxygen 1.8.8