Files

27 lines
454 B
C++
Raw Permalink Normal View History

2014-10-31 09:05:52 +02:00
//MT5Handler.h
#pragma once
#include <Windows.h>
#include <MetaTraderHandler.h>
2014-10-31 09:05:52 +02:00
class MT5Handler: public MetaTraderHandler
2014-10-31 09:05:52 +02:00
{
public:
MT5Handler(int handle)
: handle_(handle)
{
2024-06-16 13:28:43 +03:00
msg_id_ = WM_TIMER;
}
2014-10-31 09:05:52 +02:00
~MT5Handler() override = default;
private:
void SendTickToMetaTrader() override
{
2024-06-16 13:28:43 +03:00
PostMessage((HWND)handle_, msg_id_, 0, 0);
}
2014-10-31 09:05:52 +02:00
int handle_;
2024-06-16 13:28:43 +03:00
unsigned int msg_id_;
2014-10-31 09:05:52 +02:00
};