Skip to content

Commit

Permalink
Move win32 related definitions and imports from UI/Mouse to Lang/Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
dingmaotu committed Sep 13, 2017
1 parent 33d2b4e commit 4af9cdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
7 changes: 7 additions & 0 deletions Lang/Win32.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ int MessageBeep(int uType);
int GetSystemMetrics(int nIndex);
int ExitWindowsEx(int uFlags,int dwReserved);
int SwapMouseButton(int fSwap);
//--- added by mql4-lib
short GetAsyncKeyState(int nVirtKey);
#import

//---- Window Messages
Expand Down Expand Up @@ -452,6 +454,11 @@ int SwapMouseButton(int fSwap);
#define IDNO 7
#define IDCLOSE 8
#define IDHELP 9

//---- added by mql4-lib
//--- virtual key codes for the mouse
#define VK_LBUTTON 0x01
#define VK_RBUTTON 0x02
//+------------------------------------------------------------------+
//| Get system defined error code message |
//+------------------------------------------------------------------+
Expand Down
10 changes: 1 addition & 9 deletions UI/Mouse.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,7 @@
//+------------------------------------------------------------------+
#property strict

#include "../Lang/Native.mqh" // for SM_SWAPBUTTON and SM_MOUSEPRESENT

#import "user32.dll"
short GetAsyncKeyState(int nVirtKey);
int GetSystemMetrics(int nIndex);
#import

#define VK_LBUTTON 0x01
#define VK_RBUTTON 0x02
#include "../Lang/Win32.mqh"
//+------------------------------------------------------------------+
//| Detecting Mouse input |
//+------------------------------------------------------------------+
Expand Down

0 comments on commit 4af9cdb

Please sign in to comment.