ifc_messageprocessor.h 601 B

1234567891011121314151617181920212223242526
  1. #ifndef __WASABI_IFC_MESSAGEPROCESSOR_H
  2. #define __WASABI_IFC_MESSAGEPROCESSOR_H
  3. #include <bfc/dispatch.h>
  4. #include <windows.h>
  5. class ifc_messageprocessor : public Dispatchable
  6. {
  7. protected:
  8. ifc_messageprocessor() {}
  9. ~ifc_messageprocessor() {}
  10. public:
  11. bool ProcessMessage(MSG *msg); // return true to 'eat' the message
  12. public:
  13. DISPATCH_CODES
  14. {
  15. IFC_MESSAGEPROCESSOR_PROCESS_MESSAGE = 10,
  16. };
  17. };
  18. inline bool ifc_messageprocessor::ProcessMessage(MSG *msg)
  19. {
  20. return _call(IFC_MESSAGEPROCESSOR_PROCESS_MESSAGE, false, msg);
  21. }
  22. typedef ifc_messageprocessor api_messageprocessor; // TODO: CUT!
  23. #endif