root/lang/objective-cplusplus/i3/trunk/src/gui-windows/InputWindowPlatform.h @ 34027

Revision 34027, 1.7 kB (checked in by saturday06, 5 years ago)

owata.....orz

Line 
1#pragma once
2
3#include <mil/GuiModule.h>
4#include "Common.h"
5
6namespace i3
7{
8
9class Mediator;
10class InputWindow;
11
12template <typename Child = InputWindow>
13class InputWindowPlatform :
14            public mil::GuiModule<InputWindowPlatform<Child> >
15{
16public:
17    Child& getChild()
18    {
19        return *static_cast<Child*>(this);
20    }
21    InputWindowPlatform(Mediator& mediator);
22    ~InputWindowPlatform();
23
24    void createUI();
25    Mediator& mediator;
26
27    void OnActivate(HWND hwnd, UINT state, HWND hwndActDeact, BOOL fMinimized);
28    void OnActivateApp(HWND hwnd, BOOL fActivate, DWORD dwThreadId);
29    void OnClose(HWND hwnd);
30    void OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify);
31    void OnDestroy(HWND hwnd);
32    void OnKeyDown(HWND hwnd, UINT vk, BOOL fDown, int cRepeat, UINT flags);
33    void OnLButtonDown(HWND hwnd, BOOL fDoubleClick, int x, int y, UINT keyFlags);
34    void OnLButtonUp(HWND hwnd, int x, int y, UINT keyFlags);
35    void OnMouseMove(HWND hwnd, int x, int y, UINT keyFlags);
36    void OnNotify(HWND hwnd, int idCtrl, LPNMHDR pnmh);
37    UINT OnNCHitTest(HWND hwnd, int x, int y);
38    void OnPaint(HWND hwnd);
39    HBRUSH OnCtlColorEdit(HWND hwnd, HDC hdc, HWND hwndChild, int type);
40
41    mil::atomic<HWND> hSharedEdit;
42    mil::atomic<HICON> hSharedIcon;
43protected:
44    HWND hEdit;
45    HMODULE riched20_dll;
46private:
47    struct {
48        int edit_height;
49        int edit_left;
50        int nc_width;
51        int nc_height;
52        int icon_edit_space;
53    } layout;
54    struct {
55#ifdef _WIN32_WCE
56        int is_capturing;
57        int capture_x;
58        int capture_y;
59#endif
60    } ce;
61    HICON icon;
62};
63
64}
Note: See TracBrowser for help on using the browser.