Message ID for the Request "NaviControls":
RI_MESSAGE_NAVICONTROLS
Write Memory:
RI_NaviControls_WriteData(LPARAM id, RI_CNaviControls data );
Return Values for NaviControls:
RI_NOERROR = transfer to Control.
RI_NODESC = Navigator is not in Navigation Mode.
Description:
Zoom in, out or skip station in navigation, simulation or tracking mode.
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_NaviControls::WindowProc ( UINT message , WPARAM wParam , LPARAM lParam )
{
{
}
return CDialog::WindowProc( message, wParam, lParam );
}
void CDlgMFC_NaviControls::foo()
{
LPARAM id = GetUniqueID();
return;
else
}