tagging release
[dasher.git] / trunk / Src / Win32 / Widgets / KeyControl.h
blob29761aa4285689f625d6034656c88fd1f9822030
1 // AlphabetBox.h
2 //
3 /////////////////////////////////////////////////////////////////////////////
4 //
5 // Copyright (c) 2002 Iain Murray, Inference Group, Cavendish, Cambridge.
6 //
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef __KeyBox_h__
10 #define __KeyBox_h__
12 #include "../resource.h"
13 #include "WinWrap.h"
15 namespace Dasher
17 class CDasher;
21 class CKeyBox: public CWinWrap
23 public:
24 CKeyBox(HWND Parent, Dasher::CDasher * pDasher);
25 void PopulateWidgets();
26 std::string GetControlText(HWND Dialog, int ControlID);
27 protected:
28 LRESULT WndProc(HWND Window, UINT message, WPARAM wParam, LPARAM lParam);
29 private:
30 Dasher::CDasher * m_pDasher;
32 HWND CustomBox;
33 HWND slider;
34 HWND uniformbox;
35 int keycoords[18];
36 int ypixels;
37 int mouseposdist;
38 double NewUniform;
40 // Some status flags:
41 bool Editing;
42 bool SelectionSet;
46 #endif /* #ifndef __AlphabetBox_h__ */