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

Revision 34909, 1.9 kB (checked in by saturday06, 5 years ago)

iiiiiiiiiiiii

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