mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-28 11:07:48 +00:00
25 lines
373 B
C++
Executable File
25 lines
373 B
C++
Executable File
//MT4Handler.h
|
|
|
|
#pragma once
|
|
|
|
#include <Windows.h>
|
|
|
|
using namespace MTApiService;
|
|
|
|
ref class MT4Handler: IMetaTraderHandler
|
|
{
|
|
public:
|
|
MT4Handler()
|
|
{
|
|
msgId = RegisterWindowMessage("MetaTrader4_Internal_Message");
|
|
}
|
|
|
|
virtual void SendTickToMetaTrader(int handle)
|
|
{
|
|
PostMessage((HWND)handle, msgId, 2, 1);
|
|
}
|
|
|
|
private:
|
|
unsigned int msgId;
|
|
};
|