mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-28 02:57:56 +00:00
24 lines
359 B
C++
Executable File
24 lines
359 B
C++
Executable File
//MT5Handler.h
|
|
|
|
#pragma once
|
|
|
|
#include <Windows.h>
|
|
|
|
using namespace MTApiService;
|
|
|
|
ref class MT5Handler: IMetaTraderHandler
|
|
{
|
|
public:
|
|
MT5Handler()
|
|
{
|
|
msgId = WM_TIMER;
|
|
}
|
|
|
|
virtual void SendTickToMetaTrader(int handle)
|
|
{
|
|
PostMessage((HWND)handle, msgId, 0, 0);
|
|
}
|
|
|
|
private:
|
|
unsigned int msgId;
|
|
}; |