Files
Gitcloned-NoMeiryoUI/program/FontSel.h
Tatsu 8ed740fb7a ・ソースファイルをprogramフォルダに移動し、整理しやすくした。
git-svn-id: file:///H/repositry/noTahoma/noMeiryoUI/trunk@130 2be31de6-1b40-1d45-9c1f-7f81fcd71ed7
2016-09-21 12:27:22 +00:00

58 lines
1.1 KiB
C++

/*
noMeiryoUI (C) 2005,2012-2016 Tatsuhiko Shoji
The sources for noMeiryoUI are distributed under the MIT open source license
*/
#pragma once
#include <vector>
#include <windows.h>
#include "Resource.h"
#include "basedialog.h"
#include "TwrCombobox.h"
#include "TwrCheckbox.h"
extern bool useResource;
struct FontInfo {
LOGFONT logFont;
std::vector<int> charsetList;
};
class FontSel :
public BaseDialog
{
private:
TwrCombobox *m_fontNameList;
TwrCombobox *m_fontSizeList;
TwrCombobox *m_ChersetList;
TwrCombobox *m_styleList;
TwrCheckbox *m_underline;
TwrCheckbox *m_strike;
LOGFONT selectedFont;
LOGFONT *previousFont;
void applyResource();
void setCharset(void);
void setStyle(void);
INT_PTR onOK(void);
protected:
INT_PTR OnInitDialog();
INT_PTR OnCommand(WPARAM wParam);
public:
FontSel(HWND parent, int resource);
virtual ~FontSel(void);
LOGFONT getSelectedFont() {
return selectedFont;
}
void setPreviousFont(LOGFONT *item) {
previousFont = item;
}
void setNoMeiryoUI();
void setNoTahoma();
};