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

//----------------------------------
// ダイアログ (IDD_ICON)
//----------------------------------
IDD_ICON DIALOG DISCARDABLE 0, 0, 400, 332
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_SETFONT | DS_CENTER
CAPTION "アイコン情報"
MENU IDM_FORM_MENU
FONT 9, "ＭＳ Ｐ明朝"	//"Times New Roman"
{
 CONTROL "", IDC_LISTVIEW, "SYSLISTVIEW32", WS_CHILD | WS_VISIBLE | WS_BORDER | LVS_REPORT, 4, 24, 390, 60, WS_EX_CLIENTEDGE
 CONTROL 0, IDC_ICONVIEW, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_SUNKEN | SS_CENTERIMAGE | SS_NOTIFY | SS_ICON, 13, 102, 96, 96
 CONTROL 0, IDC_BMPVIEW, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_SUNKEN | SS_CENTERIMAGE | SS_NOTIFY | SS_BITMAP, 151, 102, 96, 96
 CONTROL 0, IDC_MSKVIEW, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_SUNKEN | SS_CENTERIMAGE | SS_NOTIFY | SS_BITMAP, 289, 102, 96, 96
 CONTROL "", IDC_EDIT, "EDIT", WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL | ES_READONLY | ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE, 4, 202, 390, 116, WS_EX_CLIENTEDGE
 CONTROL "", IDC_TOOLBAR, "TOOLBARWINDOW32", WS_CHILD | WS_VISIBLE | WS_BORDER | TBSTYLE_SEP | TBSTYLE_TOOLTIPS, 0, 0, 400, 17
 CONTROL "", IDC_STATUSBAR, "MSCTLS_STATUSBAR32", WS_CHILD | WS_VISIBLE | CCS_TOP | CCS_NOMOVEY | SBT_TOOLTIPS, 0, 322, 400, 10
 CONTROL "アイコン（カーソル）", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_CENTER, 13, 90, 96, 10
 CONTROL "カラービットマップ", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_CENTER, 151, 90, 96, 10
 CONTROL "マスクビットマップ", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_CENTER, 289, 90, 96, 10
}

//----------------------------------
// ダイアログ (IDD_SAVE)
//----------------------------------
IDD_SAVE DIALOG DISCARDABLE 0, 0, 85, 80
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | DS_MODALFRAME | WS_CAPTION | DS_SETFONT | DS_CENTER
CAPTION "保存形式"
FONT 9, "ＭＳ 明朝"
{
 CONTROL "アイコン", IDC_RBICON, "BUTTON", WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP | BS_AUTORADIOBUTTON, 12, 14, 56, 16
 CONTROL "カーソル", IDC_RBCUR, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 12, 32, 56, 16
 CONTROL "完了", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP | BS_DEFPUSHBUTTON, 16, 58, 52, 16
 CONTROL "イメージタイプ", 0, "BUTTON", WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 5, 4, 74, 50
}

//----------------------------------
// ダイアログ (IDD_HOTSPOT)
//----------------------------------
IDD_HOTSPOT DIALOG DISCARDABLE 0, 0, 85, 80
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | DS_MODALFRAME | WS_CAPTION | DS_SETFONT | DS_CENTER
CAPTION "保存形式"
FONT 9, "ＭＳ 明朝"
{
 CONTROL "", IDC_HOTSPOTX, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | WS_GROUP | WS_TABSTOP | ES_AUTOHSCROLL | ES_LEFT, 48, 18, 18, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_HOTSPOTY, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | WS_TABSTOP | ES_AUTOHSCROLL | ES_LEFT, 48, 37, 18, 12, WS_EX_CLIENTEDGE
 CONTROL "完了", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP | BS_DEFPUSHBUTTON, 16, 58, 52, 16
 CONTROL "X座標", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 10, 21, 24, 8
 CONTROL "Y座標", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 10, 40, 24, 8
 CONTROL "ホットスポット", 0, "BUTTON", WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 5, 4, 74, 50
}

//----------------------------------
// ダイアログで使用するメニュー
//----------------------------------
IDM_FORM_MENU MENU DISCARDABLE
{
	POPUP "ファイル(&F)"
	{
		MENUITEM "アイコンを開く(&O)", IDM_OPEN
		MENUITEM "アイコンの保存(&S)", IDM_SAVE
		MENUITEM "名前をつけて保存(&A)", IDM_SAVEAS
		MENUITEM SEPARATOR
		MENUITEM "構成ビットマップの保存(&S)", IDM_BMPSAVE
		MENUITEM SEPARATOR
		MENUITEM "終了(&X)", IDM_EXIT
	}
	POPUP "編集(&E)"
	{
		MENUITEM "イメージの追加(&A)", IDM_ADD
		MENUITEM "イメージの削除(&D)", IDM_DELETE
	}
	POPUP "表示(&V)"
	{
		MENUITEM "ビットマップの表示(&D)", IDM_DISPLAY
	}
	POPUP "ヘルプ(&H)"
	{
		MENUITEM "ヘルプ(&H)", IDM_HELP
		MENUITEM "バージョン情報(&V)", IDM_VERSION
	}

}
//----------------------------------
// ダイアログ (IDD_VERSION)
//----------------------------------
IDD_VERSION DIALOG DISCARDABLE 0, 0, 232, 52
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | DS_MODALFRAME | WS_CAPTION | DS_SETFONT | DS_CENTER
CAPTION "バージョン情報"
FONT 9, "Times New Roman"
{
 CONTROL IDI_ICON, 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_SUNKEN | SS_ICON | SS_CENTERIMAGE, 8, 8, 36, 36, WS_EX_CLIENTEDGE
 CONTROL "IconViewer Ver 2.0\r\n(c) Copyright 2021 by ysama\r\nAll rights reserved", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_SUNKEN | SS_CENTER, 56, 10, 120, 32, WS_EX_CLIENTEDGE
 CONTROL "OK", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, 184, 16, 40, 20
}

//--------------------------
// イメージ（IDI_TBAR）
//--------------------------
IDI_TBAR	BITMAP	DISCARDABLE	"IconViewer.bmp"
IDI_ICON	ICON	DISCARDABLE	"IconViewer.ico"

//--------------------------------
// アクセラレーター (IDA_ACCEL)
//--------------------------------
IDA_ACCEL ACCELERATORS DISCARDABLE
{
 VK_RETURN, IDOK, VIRTKEY, NOINVERT
 VK_ESCAPE, IDCANCEL, VIRTKEY, NOINVERT
 VK_O, IDM_OPEN, VIRTKEY, CONTROL, NOINVERT
 VK_S, IDM_SAVE, VIRTKEY, CONTROL, NOINVERT
 VK_X, IDM_EXIT, VIRTKEY, CONTROL, NOINVERT
 VK_F1, IDM_VERSION, VIRTKEY, NOINVERT
}
