Mercurial > projects > hoofbaby
comparison deps/Platinum/ThirdParty/Neptune/Source/System/Win32/NptWin32MessageQueue.h @ 0:3425707ddbf6
Initial import (hopefully this mercurial stuff works...)
author | fraserofthenight |
---|---|
date | Mon, 06 Jul 2009 08:06:28 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3425707ddbf6 |
---|---|
1 /***************************************************************** | |
2 | | |
3 | Neptune - Win32 Message Queue | |
4 | | |
5 | (c) 2001-2008 Gilles Boccon-Gibod | |
6 | Author: Gilles Boccon-Gibod (bok@bok.net) | |
7 | | |
8 ****************************************************************/ | |
9 | |
10 #ifndef _NPT_WIN32_MESSAGE_QUEUE_ | |
11 #define _NPT_WIN32_MESSAGE_QUEUE_ | |
12 | |
13 /*---------------------------------------------------------------------- | |
14 | includes | |
15 +---------------------------------------------------------------------*/ | |
16 #include <windows.h> | |
17 #include <TCHAR.h> | |
18 #include "NptStrings.h" | |
19 #include "NptMessaging.h" | |
20 #include "NptSimpleMessageQueue.h" | |
21 | |
22 /*---------------------------------------------------------------------- | |
23 | NPT_Win32MessageQueue | |
24 +---------------------------------------------------------------------*/ | |
25 class NPT_Win32WindowMessageQueue : public NPT_MessageQueue | |
26 { | |
27 public: | |
28 NPT_Win32WindowMessageQueue(); | |
29 ~NPT_Win32WindowMessageQueue(); | |
30 | |
31 // NPT_MessageQueue methods | |
32 virtual NPT_Result PumpMessage(NPT_Timeout timeout = NPT_TIMEOUT_INFINITE); | |
33 virtual NPT_Result QueueMessage(NPT_Message* message, | |
34 NPT_MessageHandler* handler); | |
35 | |
36 NPT_Result HandleMessage(NPT_Message* message, NPT_MessageHandler* handler); | |
37 | |
38 private: | |
39 static LRESULT CALLBACK WindowProcedure(HWND window, | |
40 UINT message, | |
41 WPARAM wparam, | |
42 LPARAM lparam); | |
43 HWND m_WindowHandle; | |
44 TCHAR m_ClassName[16]; | |
45 HINSTANCE m_hInstance; | |
46 }; | |
47 | |
48 #endif // _NPT_WIN32_MESSAGE_QUEUE_ | |
49 |