diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-07-06 21:43:13 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-07-06 21:43:13 +0200 |
commit | 209ad8702634e72d8cb528d3df181e2300a31115 (patch) | |
tree | dd80891eda325a8f21ff9e751d333699e9a9c779 /Tools/BiomeVisualiser/BiomeViewWnd.h | |
parent | Added missing "Colors", Documented the code + Cleanup. (diff) | |
download | cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.gz cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.bz2 cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.lz cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.xz cuberite-209ad8702634e72d8cb528d3df181e2300a31115.tar.zst cuberite-209ad8702634e72d8cb528d3df181e2300a31115.zip |
Diffstat (limited to 'Tools/BiomeVisualiser/BiomeViewWnd.h')
-rw-r--r-- | Tools/BiomeVisualiser/BiomeViewWnd.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Tools/BiomeVisualiser/BiomeViewWnd.h b/Tools/BiomeVisualiser/BiomeViewWnd.h new file mode 100644 index 000000000..d8ad8d182 --- /dev/null +++ b/Tools/BiomeVisualiser/BiomeViewWnd.h @@ -0,0 +1,46 @@ +
+// BiomeViewWnd.h
+
+// Declares the cBiomeViewWnd class representing the window that displays biomes
+
+#include "WndProcThunk.h"
+#include "BiomeRenderer.h"
+#include "BiomeCache.h"
+#include "Pixmap.h"
+
+
+
+
+
+class cBiomeViewWnd
+{
+public:
+ cBiomeViewWnd(void);
+
+ bool Create(HWND a_ParentWnd, LPCTSTR a_Title);
+
+protected:
+ HWND m_Wnd;
+ CWndProcThunk<cBiomeViewWnd> m_Thunk;
+
+ cBiomeRenderer m_Renderer;
+ cPixmap m_Pixmap;
+
+ bool m_IsLButtonDown;
+ POINT m_MouseDown;
+
+ LRESULT WndProc(HWND a_Wnd, UINT a_Msg, WPARAM wParam, LPARAM lParam);
+
+ // Message handlers:
+ LRESULT OnClose (void);
+ LRESULT OnCommand (WPARAM wParam, LPARAM lParam);
+ LRESULT OnLButtonDown(WPARAM wParam, LPARAM lParam);
+ LRESULT OnMouseMove (WPARAM wParam, LPARAM lParam);
+ LRESULT OnLButtonUp (WPARAM wParam, LPARAM lParam);
+ LRESULT OnPaint (void);
+ LRESULT OnTimer (WPARAM wParam);
+} ;
+
+
+
+
|