mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-13 10:48:08 +00:00
Added projects MtApi4 and MtApi5
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
//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;
|
||||
};
|
||||
Reference in New Issue
Block a user