mousehandler

hr hr at hr.com
Sat Oct 27 04:49:44 PDT 2012


hi,
could anyone please explain how an array of Handlers is defined?


void Handler(int, int);

struct WData {
     POINTS mouse;               // Current location of the mouse
     Queue clicks[WM_MOUSELAST - WM_MOUSEFIRST + 1];           // 
Array to hold the coordinates of the clicks
     int mouse_queuing[WM_MOUSELAST - WM_MOUSEFIRST + 1];      // 
Array to tell whether mouse events should be queued
     Handler mouse_handlers[WM_MOUSELAST - WM_MOUSEFIRST + 1]; // 
Array of mouse event handlers
     int refreshing;             // True if autorefershing should 
be done after each drawing event
};


how is that: Handler mouse_handlers[WM_MOUSELAST - WM_MOUSEFIRST 
+ 1] translated to D?

thank you


More information about the Digitalmars-d-learn mailing list