-
Notifications
You must be signed in to change notification settings - Fork 3
/
UyghurEditMain.h
124 lines (110 loc) · 2.9 KB
/
UyghurEditMain.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#ifndef UEDITMAIN_H
#define UEDITMAIN_H 1
#include <windows.h>
#include <commctrl.h>
#include <shlwapi.h>
#include <io.h>
#include "UEditWin.h"
#include "CDialog.h"
#include "UCaptionButton.h"
#include "UMessageBox.h"
#include "UCommon.h"
#include "UFileDialog.h"
#include "resource.h"
#include "ortaq.h"
#define UYGHUREDIT_NAME TEXT("UyghurEdit")
#define UYGHUREDIT_VERSION TEXT("UyghurEdit 3.5(2017/07/18), Aptor: Gheyret T.Kenji")
class UyghurEditMain
{
public:
UyghurEditMain();
~UyghurEditMain();
BOOL UInit(HINSTANCE hThisInstance);
int URun(LPSTR lpszArgument);
void UShowWindow(int val);
LRESULT UProcessMessage(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
private:
wchar_t *_app_ResBuf;
UEditWin *_pEditWin;
HINSTANCE _gHInstance;
HWND _ghWnd;
HWND _ghEditWin;
HWND _ghStatusBar;
HWND _ghToolBar;
HWND _ghRebar;
HMODULE mhImla;
CDialog *_Kunupka;
CDialog *_Elipbe;
CDialog *_About;
UCaptionButton _UCaption;
UMessageBox m_UMsgBox;
wchar_t *UGetTextFromResource(UINT textID);
int UGetLangResource(UINT resID);
void USetMenuText();
void UShowKunupka();
void UShowAbout();
void UShowElipbe();
void UOnOpen();
int UShowAgahlandurush(wchar_t *msgKey,UINT mb);
void UProcessCommand(HWND hwnd,WPARAM wParam, LPARAM lParam);
void UYengiHojjet();
void USetMenu_ToolStatus();
TBBUTTON _tbNew;
TBBUTTON _tbOpen;
TBBUTTON _tbSave;
TBBUTTON _tbPrint;
TBBUTTON _tbCut;
TBBUTTON _tbCopy;
TBBUTTON _tbPaste;
TBBUTTON _tbUndo;
TBBUTTON _tbRedo;
TBBUTTON _tbFind;
TBBUTTON _tbFindCon;
TBBUTTON _tbSpel;
TBBUTTON _tbUEY;
TBBUTTON _tbULY;
TBBUTTON _tbUSY;
TBBUTTON _tbUMY;
TBBUTTON _tbRTL;
TBBUTTON _tbSep;
TBBUTTON _tbTIZ;
BOOL UOnSize(WPARAM wParam, LPARAM lParam);
void UCreateToolBar();
void UShowMenuHelp(UINT menuID);
void UUpdateStatusbar();
void UCreateStatusPane(void);
void UProcessNotify(WPARAM wp,LPARAM lp);
void USetWindowsTitle(void);
int USaveDialog(void);
void UReadFromCodePage(int codePage);
void UOnSaveAs();
void UOnSave();
BOOL UOnClose();
void UOnToULY();
void UOnToULYINF();
void UOnToUEY_TXT();
void UOnToUEY_PRG();
void UOnToUEY_INF();
void UOnPrint();
void UOnSaveAsHTML();
void UOnUyghurToSlawiyan();
void UOnSlawiyanToUyghur();
void UOnUyghurToTurk();
void UOnTurkToUyghur();
void USetWindowLayout(UINTERFACE_LANG lang);
RECT m_rcU,m_rcL;
HWND _UUBut,_ULBut;
void UPaintCaptionBut(HWND hWnd);
void UCalcCaptionButPos(HWND hWnd);
void UHojjetTashlandi(WPARAM wParam, LPARAM lParam);
void UMeasureItem(WPARAM wParam, LPARAM lParam);
void UDrawItem(WPARAM wParam, LPARAM lParam);
void UKunupkaOzgert();
IZLAR m_Izlar;
void USetFileName(wchar_t *fileName,ULONG Pos);
void USetIzMenu();
void USaveFile();
void UIzniOqush(int izPos);
bool UNormalmu();
};
#endif