-
Notifications
You must be signed in to change notification settings - Fork 3
/
SetFont.h
50 lines (44 loc) · 1.41 KB
/
SetFont.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
#ifndef USETFONT_H
#define USETFONT_H 1
#include <windows.h>
#include <io.h>
#include "resource.h"
#include "UCommon.h"
#include "UCaptionButton.h"
#include "ortaq.h"
class USetFont
{
private:
UEDIT m_UEFont;
BOOL UOnInitDialog();
HFONT m_UygFont;
HFONT m_LocFont;
HINSTANCE mUyghurEditInst;
HWND m_hWnd;
// UCaptionButton _mCaptionBut;
void UCreateFont(HDC dc);
void UFillQurArlighi();
void UFillUyghurFace();
void UFillLocalFace();
void UFillFontPoint();
static int CALLBACK EnumFontFamProcU(ENUMLOGFONTEX *lpelf, NEWTEXTMETRICEX *lpntm, DWORD FontType, LPARAM lParam);
static int CALLBACK EnumFontFamProcL(ENUMLOGFONTEX *lpelf, NEWTEXTMETRICEX *lpntm, DWORD FontType, LPARAM lParam);
int qurIgizligi;
BOOL UGetCheckBoxVal(UINT id);
void USetCheckBoxVal(UINT id,BOOL val);
void USetSelectItem(UINT id, wchar_t *item);
int UGetSelectedItem(UINT id,wchar_t *str);
public:
USetFont(LPUEDIT Uef);
void UShowSample();
void UGetSettings(LPUEDIT Uef);
void UAddString(UINT ctrlID,wchar_t *str);
virtual ~USetFont();
enum { IDD = IDD_SETFONT };
void SetTexts();
INT_PTR UShowModal(HINSTANCE hInstance, HWND hwndParent);
BOOL UOnInitDialog(HWND wnd);
void UUpdateData();
void UOnPaint(HWND wnd);
};
#endif