1 #pragma unmanaged
2 #include <windows.h>
3 #include <tchar.h>
4 
5 #include "OVUtility.h"
6 
7 typedef struct _tagUICHILD{
8 	HWND    hWnd;
9 	POINT   pt;
10 	SIZE    sz;
11 } UICHILD, *LPUICHILD;
12 
13 extern "C" {
14 // Interfaces
15 // OVIMEUI.cpp
16 BOOL IMEUIRegisterClass( HINSTANCE );
17 BOOL IMEUIUnRegisterClass( HINSTANCE );
18 BOOL MyIsIMEMessage(UINT);
19 //<comment author='b6s'>
20 // Uses the managed UI function instead
21 //void UIPushInputMethod(wchar_t*);
22 //</comment>
23 int UICurrentInputMethod();
24 
25 void UIConstruct();
26 void UIDispose();
27 
28 // UIStatus.cpp
29 void UICreateStatusWindow(HWND);
30 void UIMoveStatusWindow(HWND, int, int);
31 void UIShowStatusWindow();
32 void UIHideStatusWindow();
33 int UIModuleChange();
34 int UIModuleRotate();
35 void UIChangeHalfFull(HWND);
36 void UIChangeChiEng(HWND);
37 void UIChangeSimpifiedOrTraditional(HWND);
38 void UIChangeBoPoMoFoLayout(int index);
39 void UIClearStatusMenuModString();
40 void UISetStatusModStrMenuEach(const char* newName);
41 void UISetStatusModStrMenuAll(int modAmount, const char* modNames[]);
42 void UISetStatusModStrCurrent(int index);
43 
44 // UIComp.cpp
45 void UICreateCompWindow(HWND);
46 void UIMoveCompWindow(int, int);
47 void UIShowCompWindow();
48 void UIHideCompWindow();
49 int UIGetHeight();
50 void UISetCursorPos(int);
51 int UIGetCaretPosX();
52 void UISetCompStr(wchar_t*);
53 void UISetCompCaretPosX(int);
54 void UISetMarkFrom(int);
55 void UISetMarkTo(int);
56 void UIClearCompStr();
57 
58 // UICand.cpp
59 void UICreateCandWindow(HWND);
60 void UIMoveCandWindow(int, int);
61 void UIExpandCandi();
62 void UIShowCandWindow();
63 void UIHideCandWindow();
64 void UISetCandStr(wchar_t*);
65 
66 // UINotify.cpp
67 void UICreateNotifyWindow(HWND);
68 void UIShowNotifyWindow();
69 void UIHideNotifyWindow();
70 void UISetNotifyStr(wchar_t*);
71 }
72