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

//----------------------------------
// ダイアログ (IDD_MAIN)
//----------------------------------
IDD_MAIN DIALOG DISCARDABLE 0, 0, 282, 220
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | WS_THICKFRAME | WS_CAPTION | WS_SYSMENU | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | DS_SETFONT | DS_CENTER
CAPTION "BatchGood"
MENU IDM_MAIN
FONT 9, "ＭＳ 明朝"
{
 CONTROL "", IDC_FILETREE, "SYSTREEVIEW32", WS_CHILD | WS_VISIBLE | WS_BORDER | TVS_LINESATROOT | TVS_HASLINES | TVS_HASBUTTONS | TVS_SHOWSELALWAYS, 4, 20, 148, 88, WS_EX_CLIENTEDGE
 CONTROL "開く", IDC_OPEN, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 4, 108, 72, 15
 CONTROL "閉じる", IDC_CLOSE, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 80, 108, 72, 15
 CONTROL "詳細", IDC_DETAIL, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 248, 17, 30, 14
 CONTROL "", IDC_BCC32OPTION, "EDIT", WS_CHILD | WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL | ES_LEFT, 158, 32, 120, 15, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BRC32OPTION, "EDIT", WS_CHILD | WS_BORDER | WS_TABSTOP | ES_AUTOHSCROLL | ES_LEFT, 158, 62, 120, 15, WS_EX_CLIENTEDGE
 CONTROL "", IDC_INCLPATH, "EDIT", WS_CHILD | WS_BORDER | ES_AUTOHSCROLL | ES_LEFT | ES_READONLY, 158, 92, 120, 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, 4, 124, 274, 81, WS_EX_CLIENTEDGE
 CONTROL "", IDC_TOOLBAR, "TOOLBARWINDOW32", WS_CHILD | WS_VISIBLE | TBSTYLE_SEP | TBSTYLE_TOOLTIPS, 0, 0, 0, 0
 CONTROL "", IDC_STATUSBAR, "MSCTLS_STATUSBAR32", WS_CHILD | WS_VISIBLE | SBT_TOOLTIPS | CCS_TOP | CCS_NOMOVEY, 0, 0, 0, 0
 CONTROL "bcc32c−オプション", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 158, 20, 80, 9
 CONTROL "brc32−オプション", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 158, 50, 80, 9
 CONTROL "インクルードパス", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 158, 80, 80, 9
}

//----------------------------------
// ダイアログで使用するメニュー
//----------------------------------
IDM_MAIN MENU DISCARDABLE
{
	POPUP "ファイル(&F)"
	{
		MENUITEM "ファイルを開く(&O)", IDM_OPEN
		MENUITEM "ファイルを閉じる(&C)", IDM_CLOSED
		MENUITEM SEPARATOR
		MENUITEM "終了(&X)", IDM_EXIT
	}
	POPUP "ツール(&T)"
	{
		MENUITEM "バッチファイルを作る(&M)", IDM_MAKEBATCH
		MENUITEM SEPARATOR
		MENUITEM "バッチファイルの編集(&E)", IDM_BATCHEDIT
		MENUITEM SEPARATOR
		MENUITEM "バッチファイルの実行(&R)", IDM_RUN
		MENUITEM SEPARATOR
		MENUITEM "設定(&S)", IDM_SETTING
	}
	POPUP "ヘルプ(&H)"
	{
		MENUITEM "BatchGoodの使い方", IDM_HELP
		MENUITEM "BCC32Cのオプション", IDM_OPTION
		MENUITEM "バージョン情報(&V)", IDM_VERSION
	}

}

//----------------------------------
// ダイアログ (IDD_DETAIL)
//----------------------------------
IDD_DETAIL DIALOG DISCARDABLE 0, 0, 216, 150
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, 159, 130, 48, 15
 CONTROL "", IDC_TARGETTYPE, "COMBOBOX", WS_CHILD | WS_VISIBLE | WS_TABSTOP | CBS_DROPDOWNLIST | CBS_AUTOHSCROLL, 90, 6, 120, 72
 CONTROL "使用する", IDC_MULTITHREAD, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTOCHECKBOX, 90, 25, 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_CALLTYPE, "COMBOBOX", WS_CHILD | WS_VISIBLE | WS_TABSTOP | CBS_DROPDOWNLIST | WS_VSCROLL, 90, 79, 120, 60
 CONTROL "?", IDC_INCLBTN, "BUTTON", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, 198, 97, 12, 12
 CONTROL "全て表示する", IDC_WARNING, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTOCHECKBOX, 90, 114, 120, 12
 CONTROL "", IDC_INCLPATH, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_READONLY | ES_LEFT, 90, 96, 105, 14, WS_EX_CLIENTEDGE
 CONTROL "実行ファイル形式", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 9, 72, 10
 CONTROL "マルチスレッド", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 27, 72, 10
 CONTROL "出力ディレクトリー", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 45, 72, 10
 CONTROL "最適化", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 63, 72, 10
 CONTROL "呼出し規約", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 81, 72, 10
 CONTROL "インクルードパス", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 99, 72, 10
 CONTROL "警告表示", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 115, 72, 10
}

//----------------------------------
// ダイアログ (IDD_SETUP)
//----------------------------------
IDD_SETUP DIALOG DISCARDABLE 0, 0, 300, 96
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | WS_DLGFRAME | WS_CAPTION | WS_SYSMENU | DS_CENTER
CAPTION "bcc32c, brc32等の設定"
FONT 8, "ＭＳ 明朝"
{
 CONTROL "終了", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_DEFPUSHBUTTON, 244, 78, 48, 15
 CONTROL "bcc32cへのパス", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 9, 75, 9
 CONTROL "", IDC_BCCPATH, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_READONLY | ES_LEFT, 90, 6, 165, 15, WS_EX_CLIENTEDGE
 CONTROL "検索", IDC_BCCBTN, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 261, 6, 30, 15
 CONTROL "brc32へのパス", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 27, 75, 9
 CONTROL "", IDC_BRCPATH, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_READONLY | ES_LEFT, 90, 24, 165, 15, WS_EX_CLIENTEDGE
 CONTROL "検索", IDC_BRCBTN, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 261, 24, 30, 15
 CONTROL "エディターのパス", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 45, 75, 9
 CONTROL "", IDC_EDITPATH, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_READONLY | ES_LEFT, 90, 42, 165, 15, WS_EX_CLIENTEDGE
 CONTROL "検索", IDC_EDITBTN, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON, 261, 42, 30, 15
 CONTROL "tdsフィルを削除する", IDC_DELTDS, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTOCHECKBOX, 90, 60, 120, 12
 CONTROL "resフィルを削除する", IDC_DELRES, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTOCHECKBOX, 90, 78, 120, 12
}

//----------------------------------
// ダイアログ (IDD_HELP)
//----------------------------------
IDD_HELP DIALOG DISCARDABLE 0, 0, 360, 300
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | WS_THICKFRAME | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | DS_CENTER
CAPTION "コンパイラーオプション"
FONT 10, "ＭＳ 明朝"
{
 CONTROL "終了", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, 156, 282, 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, 348, 268, WS_EX_CLIENTEDGE
}

//----------------------------------
// ダイアログ (IDD_VERSION)
//----------------------------------
IDD_VERSION DIALOG DISCARDABLE 0, 0, 160, 54
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, 67, 38, 26, 12
}

//----------------------
// ポップアップメニュー
//----------------------
IDM_POPUP MENU DISCARDABLE
{
	POPUP "ポップアップ"
	{
		MENUITEM "開く", IDC_OPEN
		MENUITEM SEPARATOR
		MENUITEM "閉じる", IDC_CLOSE
	}
}

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

//--------------------------
// イメージ（IDI_TOOLBAR）
//--------------------------
IDI_TOOLBAR	BITMAP	DISCARDABLE	"BatchGood.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_LIBBMP）
//--------------------------
IDI_LIBBMP	BITMAP	DISCARDABLE	"LIB.bmp"

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