Main Page | Namespaces | Classes | Compounds | Files | Compound Members | Related Events.h00001 // 00002 // SYNTOPIA. See http://Syntopia.sourceforge.net for details and documentation. 00003 // 00004 // Author of this file: Mikael Hvidtfeldt Christensen (mikaelc@users.sourceforge.net) 00005 // 00006 00007 00008 #ifndef __Events 00009 #define __Events 00010 00011 #include <windows.h> 00012 00013 namespace GUIToolkit { 00014 00015 //#include "WinForm.h" 00016 //#include "GUIControl.h" 00017 00018 class Component; 00019 00021 /* 00022 * Event handling is still a very pre-mature topic in this framework. 00023 * So far the structure is similar to the windows event, except for 00024 * EventSource which is a pointer to the component involved. 00025 */ 00026 struct event { 00027 HWND hwnd; 00028 UINT msg; 00029 WPARAM wParam; 00030 LPARAM lParam; 00031 Component * EventSource; 00032 }; 00033 00038 class EventHandler { 00039 public: 00040 virtual void HandleEvents(event ev) {}; 00041 }; 00042 00043 }; 00044 00045 #endif Docs made by Doxygen. Email: Mikael Christensen |