//-----------------------------------------
//             BCCForm Ver 2.41
//    An Easy Resource Editor for BCC
//  Copyright (c) February 2020 by ysama
//-----------------------------------------
#include	"ResBCCMaker.h"
#define		TBSTYLE_TOOLTIPS	0x0100
#define		SBT_TOOLTIPS		0x0800

//----------------------------------
// ダイアログ (IDD_MAKE)
//----------------------------------
IDD_MAKE DIALOG DISCARDABLE 0, 0, 420, 320
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | WS_THICKFRAME | WS_CAPTION | WS_SYSMENU | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | DS_SETFONT | DS_CENTER
CAPTION "BCCMaker"
MENU IDM_MAIN
FONT 9, "ＭＳ 明朝"
{
 CONTROL "", IDC_TOOLBAR, "TOOLBARWINDOW32", WS_CHILD | WS_VISIBLE | TBSTYLE_SEP | TBSTYLE_TOOLTIPS, 0, 0, 420, 18
 CONTROL "", IDC_FILETREE, "SYSTREEVIEW32", WS_CHILD | WS_VISIBLE | WS_BORDER | TVS_LINESATROOT | TVS_HASLINES | TVS_HASBUTTONS | TVS_SHOWSELALWAYS, 6, 24, 198, 174, WS_EX_CLIENTEDGE
 CONTROL "追加", IDC_ADD, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 6, 204, 96, 15
 CONTROL "削除", IDC_DEL, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 108, 204, 96, 15
 CONTROL "詳細", IDC_DETAIL, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 384, 66, 30, 15
 CONTROL "", IDC_PROJECT, "EDIT", WS_CHILD | WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL | ES_LEFT, 210, 40, 204, 15, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BCC32OPTION, "EDIT", WS_CHILD | WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL | ES_LEFT, 210, 84, 204, 15, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BRC32OPTION, "EDIT", WS_CHILD | WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL | ES_LEFT, 210, 126, 204, 15, WS_EX_CLIENTEDGE
 CONTROL "", IDC_ASMOPTION, "EDIT", WS_CHILD | WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL | ES_LEFT, 210, 168, 204, 15, WS_EX_CLIENTEDGE
 CONTROL "", IDC_OUTPUT, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_MULTILINE | ES_WANTRETURN | ES_AUTOVSCROLL | ES_AUTOHSCROLL | WS_VSCROLL | WS_HSCROLL | ES_READONLY | ES_LEFT, 6, 226, 408, 82, WS_EX_CLIENTEDGE
 CONTROL "", IDC_STATUSBAR, "MSCTLS_STATUSBAR32", WS_CHILD | WS_VISIBLE | SBT_TOOLTIPS | CCS_TOP | CCS_NOMOVEY, 0, 308, 420, 12
 CONTROL "*.makファイル", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 210, 28, 100, 9
 CONTROL "bcc32−オプション", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 210, 72, 100, 9
 CONTROL "brc32−オプション", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 210, 114, 100, 9
 CONTROL "Assembler−オプション", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 210, 156, 100, 9
}

//----------------------------------
// ダイアログで使用するメニュー
//----------------------------------
IDM_MAIN MENU DISCARDABLE
{
	POPUP "ファイル(&F)"
	{
		MENUITEM "新規(&N)", IDM_NEW
		MENUITEM "データを開く(&O)", IDM_OPEN
		MENUITEM "データの保存(&S)", IDM_SAVE
		MENUITEM "名前をつけて保存(&A)", IDM_SAVEAS
		MENUITEM SEPARATOR
		POPUP "履歴(&H)"
		{
			MENUITEM "(None)", IDM_HISTORY
		}
		MENUITEM SEPARATOR
		MENUITEM "終了(&X)", IDM_EXIT
	}
	POPUP "ツール(&T)"
	{
		MENUITEM "&Make", IDM_MAKE
		MENUITEM SEPARATOR
		MENUITEM "Makeファイルの編集(&E)", IDM_MAKEEDIT
		MENUITEM SEPARATOR
		MENUITEM "実行(&R)", IDM_RUN
		MENUITEM SEPARATOR
		MENUITEM "設定(&S)", IDM_SETTING
	}
	POPUP "ヘルプ(&H)"
	{
		MENUITEM "BCCMakerの使い方", IDM_HELP
		MENUITEM "BCC32のオプション", IDM_OPTION
		MENUITEM "バージョン情報(&V)", IDM_VERSION
	}

}

//----------------------------------
// ダイアログ (IDD_NEW)
//----------------------------------
IDD_NEW DIALOG DISCARDABLE 0, 0, 300, 68
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | WS_THICKFRAME | WS_CAPTION | DS_SETFONT | DS_CENTER
CAPTION "新規makeファイルの作成"
FONT 8, "ＭＳ 明朝"
{
 CONTROL "基点フォールダー", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 7, 11, 105, 11
 CONTROL "", IDC_ORIGIN, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_READONLY | ES_LEFT, 120, 7, 135, 15, WS_EX_CLIENTEDGE
 CONTROL "選択", IDC_SELECT, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 260, 7, 32, 15
 CONTROL "ターゲットフォールダー", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 7, 30, 105, 11
 CONTROL "", IDC_TARGET, "COMBOBOX", WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST | WS_VSCROLL, 120, 26, 135, 45
 CONTROL "makeファイル名(*.mak)", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 7, 48, 105, 11
 CONTROL "", IDC_NAME, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | WS_TABSTOP | ES_AUTOHSCROLL | ES_LEFT, 120, 45, 135, 15, WS_EX_CLIENTEDGE
 CONTROL "OK", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 260, 26, 32, 15
 CONTROL "Cancel", IDCANCEL, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 260, 45, 32, 15
}

//----------------------------------
// ダイアログ (IDD_DETAIL)
//----------------------------------
IDD_DETAIL DIALOG DISCARDABLE 0, 0, 216, 276
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | WS_DLGFRAME | WS_CAPTION | WS_SYSMENU | DS_SETFONT | DS_CENTER
CAPTION "コンパイルオプション詳細"
FONT 8, "ＭＳ 明朝"
{
 CONTROL "終了", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 160, 258, 48, 15
 CONTROL "", IDC_TARGETTYPE, "COMBOBOX", WS_CHILD | WS_VISIBLE | WS_TABSTOP | CBS_DROPDOWNLIST | WS_VSCROLL, 90, 6, 120, 60
 CONTROL "使用する", IDC_MULTITHREAD, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTOCHECKBOX, 90, 24, 120, 12
 CONTROL "", IDC_TARGETDIR, "COMBOBOX", WS_CHILD | WS_VISIBLE | WS_TABSTOP | CBS_DROPDOWNLIST | WS_VSCROLL, 90, 42, 120, 36
 CONTROL "", IDC_OPTIMIZATION, "COMBOBOX", WS_CHILD | WS_VISIBLE | WS_TABSTOP | CBS_DROPDOWNLIST | WS_VSCROLL, 90, 60, 120, 48
 CONTROL "", IDC_INSTRUCTIONSET, "COMBOBOX", WS_CHILD | WS_VISIBLE | WS_TABSTOP | CBS_DROPDOWNLIST | WS_VSCROLL, 90, 78, 120, 60
 CONTROL "", IDC_CALLTYPE, "COMBOBOX", WS_CHILD | WS_VISIBLE | WS_TABSTOP | CBS_DROPDOWNLIST | WS_VSCROLL, 90, 96, 120, 60
 CONTROL "", IDC_LANGUAGETYPE, "COMBOBOX", WS_CHILD | WS_VISIBLE | WS_TABSTOP | CBS_DROPDOWNLIST | WS_VSCROLL, 90, 114, 120, 60
 CONTROL "?", IDC_INCLBTN, "BUTTON", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, 198, 132, 12, 12
 CONTROL "使用する", IDC_PRECOMPILEHEADER, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTOCHECKBOX, 90, 150, 120, 12
 CONTROL "全て表示", IDC_WARNING, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTOCHECKBOX, 90, 168, 120, 12
 CONTROL "", IDC_DEBUG, "COMBOBOX", WS_CHILD | WS_VISIBLE | WS_TABSTOP | CBS_DROPDOWNLIST | WS_VSCROLL, 90, 186, 120, 48
 CONTROL "統合する", IDC_STRINTEG, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTOCHECKBOX, 90, 204, 60, 12
 CONTROL "生成する", IDC_STACKFRAME, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTOCHECKBOX, 90, 222, 60, 12
 CONTROL "表示する", IDC_EXTERRORINFO, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTOCHECKBOX, 90, 240, 60, 12
 CONTROL "実施する", IDC_ENUM2INT, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTOCHECKBOX, 90, 258, 60, 12
 CONTROL "", IDC_INCLPATH, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_READONLY | ES_LEFT, 90, 132, 105, 12, WS_EX_CLIENTEDGE
 CONTROL "実行ファイル形式", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 9, 72, 9
 CONTROL "マルチスレッド", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 27, 72, 9
 CONTROL "出力ディレクトリー", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 45, 72, 9
 CONTROL "最適化", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 63, 72, 9
 CONTROL "命令セット", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 81, 72, 9
 CONTROL "呼出し規約", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 99, 72, 9
 CONTROL "準拠言語仕様", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 117, 72, 9
 CONTROL "インクルードパス", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 135, 72, 9
 CONTROL "ﾌﾟﾘｺﾝﾊﾟｲﾙﾍｯﾀﾞｰ", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 153, 72, 9
 CONTROL "警告表示", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 171, 72, 9
 CONTROL "デバッグ", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 189, 72, 9
 CONTROL "重複文字列を統合", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 207, 72, 9
 CONTROL "ｽﾀｯｸﾌﾚｰﾑ生成", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 225, 72, 9
 CONTROL "拡張エラー情報", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 243, 72, 9
 CONTROL "enumをintにする", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 261, 72, 9
}

//----------------------------------
// ダイアログ (IDD_SETUP)
//----------------------------------
IDD_SETUP DIALOG DISCARDABLE 0, 0, 300, 118
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | WS_DLGFRAME | WS_CAPTION | WS_SYSMENU | DS_CENTER
CAPTION "Make, BCC32, BRC32, Assembler等の設定"
FONT 8, "ＭＳ 明朝"
{
 CONTROL "終了", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_DEFPUSHBUTTON, 126, 98, 48, 15
 CONTROL "MAKEへのパス", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 9, 75, 9
 CONTROL "", IDC_MAKEPATH, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_READONLY | ES_LEFT, 90, 6, 165, 15, WS_EX_CLIENTEDGE
 CONTROL "検索", IDC_MAKEBTN, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 261, 6, 30, 15
 CONTROL "BCCへのパス", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 27, 75, 9
 CONTROL "", IDC_BCCPATH, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_READONLY | ES_LEFT, 90, 24, 165, 15, WS_EX_CLIENTEDGE
 CONTROL "検索", IDC_BCCBTN, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 261, 24, 30, 15
 CONTROL "BRCへのパス", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 45, 75, 9
 CONTROL "", IDC_BRCPATH, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_READONLY | ES_LEFT, 90, 42, 165, 15, WS_EX_CLIENTEDGE
 CONTROL "検索", IDC_BRCBTN, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 261, 42, 30, 15
 CONTROL "Assemblerのパス", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 63, 75, 9
 CONTROL "", IDC_ASMPATH, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_READONLY | ES_LEFT, 90, 60, 165, 15, WS_EX_CLIENTEDGE
 CONTROL "検索", IDC_ASMBTN, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 261, 60, 30, 15
 CONTROL "エディターのパス", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 81, 75, 9
 CONTROL "", IDC_EDITPATH, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_READONLY | ES_LEFT, 90, 78, 165, 15, WS_EX_CLIENTEDGE
 CONTROL "検索", IDC_EDITBTN, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 261, 78, 30, 15
}

//----------------------------------
// ダイアログ (IDD_HELP)
//----------------------------------
IDD_HELP DIALOG DISCARDABLE 0, 0, 252, 216
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | WS_THICKFRAME | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | DS_CENTER
CAPTION "BCC32のオプション"
FONT 8, "ＭＳ 明朝"
{
 CONTROL "終了", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, 102, 195, 48, 15
 CONTROL "", IDC_EDIT, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_MULTILINE | ES_WANTRETURN | WS_HSCROLL | WS_VSCROLL | ES_READONLY | ES_LEFT, 6, 6, 240, 180, WS_EX_CLIENTEDGE
}

//----------------------------------
// ダイアログ (IDD_VERSION)
//----------------------------------
IDD_VERSION DIALOG DISCARDABLE 0, 0, 160, 64
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | DS_MODALFRAME | DS_3DLOOK | DS_CENTER
CAPTION "バージョン情報"
FONT 9, "Times New Roman"
{
 CONTROL IDI_ICON, 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_ICON, 4, 10, 18, 18
 CONTROL "", IDC_VERTXT, "STATIC", SS_CENTER | SS_SUNKEN | WS_CHILD | WS_VISIBLE, 32, 4, 106, 26
 CONTROL "OK", IDOK, "BUTTON", BS_PUSHBUTTON | BS_CENTER | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 66, 42, 26, 12
}

//----------------------
// ポップアップメニュー
//----------------------
IDM_POPUP MENU DISCARDABLE
{
	POPUP "ポップアップ"
	{
		MENUITEM "追加", IDC_ADD
		MENUITEM SEPARATOR
		MENUITEM "削除", IDC_DEL
	}
}

//--------------------------
// イメージ（IDI_ICON）
//--------------------------
IDI_ICON	ICON	DISCARDABLE	"Icon.ico"

//--------------------------
// イメージ（IDI_TOOLBAR）
//--------------------------
IDI_TOOLBAR	BITMAP	DISCARDABLE	"BCCMaker.bmp"

//--------------------------
// イメージ（IDI_CLOSE）
//--------------------------
IDI_CLOSE	BITMAP	DISCARDABLE	"CLOSE.bmp"

//--------------------------
// イメージ（IDI_CPPBMP）
//--------------------------
IDI_CPPBMP	BITMAP	DISCARDABLE	"CPP.bmp"

//--------------------------
// イメージ（IDI_RCBMP）
//--------------------------
IDI_RCBMP	BITMAP	DISCARDABLE	"RC.bmp"

//--------------------------
// イメージ（IDI_ASMBMP）
//--------------------------
IDI_ASMBMP	BITMAP	DISCARDABLE	"ASM.bmp"

//--------------------------
// イメージ（IDI_OBJBMP）
//--------------------------
IDI_OBJBMP	BITMAP	DISCARDABLE	"OBJ.bmp"

//--------------------------
// イメージ（IDI_LIBBMP）
//--------------------------
IDI_LIBBMP	BITMAP	DISCARDABLE	"LIB.bmp"

//--------------------------
// イメージ（IDI_DOC）
//--------------------------
IDI_DOC	BITMAP	DISCARDABLE	"DOC.bmp"
