//-----------------------------------------
//             BCCForm Ver 2.41
//    An Easy Resource Editor for BCC
//  Copyright (c) February 2002 by ysama
//-----------------------------------------
#include	"ResEZImage.h"

//----------------------------------
// ダイアログ (IDD_NEW)
//----------------------------------
IDD_NEW DIALOG DISCARDABLE 0, 0, 140, 80
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | DS_MODALFRAME | WS_CAPTION | DS_SETFONT | DS_CENTER | DS_CENTERMOUSE
CAPTION "イメージ初期化"
FONT 9, "ＭＳ 明朝"
{
 CONTROL "16 x 16", IDC_RB16, "BUTTON", WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP | BS_AUTORADIOBUTTON, 16, 22, 52, 16
 CONTROL "32 x 32", IDC_RB32, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 16, 46, 52, 16
 CONTROL "完了", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_DEFPUSHBUTTON, 92, 30, 36, 20
 CONTROL "イメージサイズ", 0, "BUTTON", WS_CHILD | WS_VISIBLE | WS_GROUP | BS_GROUPBOX, 6, 10, 72, 60
}

//----------------------------------
// ダイアログ (IDD_SAVE)
//----------------------------------
IDD_SAVE DIALOG DISCARDABLE 0, 0, 160, 230
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | DS_MODALFRAME | WS_CAPTION | DS_SETFONT | DS_CENTER
CAPTION "保存形式"
FONT 9, "ＭＳ 明朝"
{
 CONTROL "イメージタイプ", 0, "BUTTON", WS_CHILD | WS_VISIBLE | WS_GROUP | BS_GROUPBOX, 4, 2, 148, 68
 CONTROL "ビットマップ", IDC_RBBITMAP, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 12, 12, 68, 14
 CONTROL "アイコン", IDC_RBICON, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 12, 32, 68, 16
 CONTROL "カーソル", IDC_RBCUR, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 12, 52, 68, 16
 CONTROL "Hot Spot", IDC_HOTSPOT, "BUTTON", WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP | BS_PUSHBUTTON, 100, 52, 40, 14
 CONTROL "イメージカラー", 0, "BUTTON", WS_CHILD | WS_VISIBLE | WS_GROUP | BS_GROUPBOX, 4, 76, 148, 128
 CONTROL "モノクローム", IDC_RB2C, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 12, 86, 132, 16
 CONTROL "16色", IDC_RB16C, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 12, 106, 132, 16
 CONTROL "256色", IDC_RB256C, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 12, 126, 132, 16
 CONTROL "16bit Color (65535色)", IDC_RB16BIT, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 12, 146, 132, 16
 CONTROL "24bit Color (1677万色)", IDC_RB24BIT, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 12, 166, 132, 16
 CONTROL "32bit Color (43億色)", IDC_RB32BIT, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 12, 186, 132, 16
 CONTROL "完了", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | WS_GROUP | BS_DEFPUSHBUTTON, 52, 210, 52, 16
}

//----------------------------------
// ダイアログ (IDD_HOTSPOT)
//----------------------------------
IDD_HOTSPOT DIALOG DISCARDABLE 0, 0, 138, 30
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | WS_DLGFRAME | WS_CAPTION | DS_SETFONT | DS_CENTER
CAPTION "ホットスポットの入力"
FONT 8, "ＭＳ 明朝"
{
 CONTROL "X座標", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 3, 30, 9
 CONTROL "0", IDC_HOTSPOTX, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | WS_TABSTOP | ES_AUTOHSCROLL | ES_LEFT, 45, 0, 18, 12, WS_EX_CLIENTEDGE
 CONTROL "Y座標", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 18, 30, 9
 CONTROL "0", IDC_HOTSPOTY, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | WS_TABSTOP | ES_AUTOHSCROLL | ES_LEFT, 45, 15, 18, 12, WS_EX_CLIENTEDGE
 CONTROL "完了", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_DEFPUSHBUTTON, 93, 6, 36, 18
}

//----------------------------------
// ダイアログ (IDD_BMPINFO)
//----------------------------------
IDD_BMPINFO DIALOG DISCARDABLE 0, 0, 330, 216
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU | DS_SETFONT | DS_CENTER
CAPTION "ビットマップ情報"
FONT 9, "ＭＳ 明朝"
{
 CONTROL "完了", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, 158, 188, 60, 18
 CONTROL "", IDC_BMTYPE, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 54, 18, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BMWIDTH, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 54, 32, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BMHEIGHT, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 54, 50, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BMWIDTHBYTES, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 54, 68, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BMPLANES, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 54, 86, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BMBITSPIXEL, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 54, 104, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BMBITS, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 54, 126, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BFTYPE, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 168, 18, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BFSIZE, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 168, 36, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BFRESERVED1, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 168, 54, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BFRESERVED2, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 168, 72, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BFOFFBITS, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 168, 90, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BISIZE, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 282, 18, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BIWIDTH, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 282, 36, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BIHEIGHT, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 282, 54, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BIPLANES, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 282, 72, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BIBITCOUNT, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 282, 90, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BICOMPRESSION, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 282, 108, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BISIZEIMAGE, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 282, 126, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BIXPELSPM, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 282, 144, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BIYPELSPM, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 282, 162, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BICLRUSED, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 282, 180, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BICLRIMPT, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 282, 198, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_CLRBIT, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 102, 192, 30, 12, WS_EX_CLIENTEDGE
 CONTROL "解説と検証", IDHELP, "BUTTON", WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, 12, 188, 60, 18
 CONTROL "BITMAP情報（DDB）", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_SUNKEN, 6, 2, 90, 12
 CONTROL "BITMAPFILEHEADER情報", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_SUNKEN, 120, 2, 90, 12
 CONTROL "BITMAPINFOHEADER情報", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_SUNKEN, 234, 2, 90, 12
 CONTROL "カラービット", 0153, "BUTTON", WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 86, 180, 60, 26
 CONTROL "bmType", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 18, 42, 12
 CONTROL "bmWidth", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 36, 42, 12
 CONTROL "bmHeight", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 54, 42, 12
 CONTROL "bmWidthBytes", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 72, 42, 12
 CONTROL "bmPlanes", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 90, 42, 12
 CONTROL "bmBitsPixel", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 108, 42, 12
 CONTROL "bmBits", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 6, 126, 42, 12
 CONTROL "bfType", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 120, 18, 42, 12
 CONTROL "bfSize", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 120, 36, 42, 12
 CONTROL "bfReserved1", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 120, 54, 42, 12
 CONTROL "bfReserved2", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 120, 72, 42, 12
 CONTROL "bfOffBits", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 120, 90, 42, 12
 CONTROL "biSize", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 234, 18, 42, 12
 CONTROL "biWidth", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 234, 36, 42, 12
 CONTROL "biHeight", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 234, 54, 42, 12
 CONTROL "biPlanes", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 234, 72, 42, 12
 CONTROL "biBitCount", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 234, 90, 42, 12
 CONTROL "biCompression", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 234, 108, 42, 12
 CONTROL "biSizeImage", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 234, 126, 42, 12
 CONTROL "biXPels@M", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 234, 144, 42, 12
 CONTROL "biYPels@M", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 234, 162, 42, 12
 CONTROL "biClrUsed", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 234, 180, 42, 12
 CONTROL "biClrImpt", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY, 234, 198, 42, 12
}

//----------------------------------
// ダイアログ (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 "EZImage 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
}

//-------------------------
// メニュー（IDM_MAINMENU）
//-------------------------
IDM_MAINMENU MENU DISCARDABLE
{
	POPUP "ファイル(&F)"
	{
		MENUITEM "新規イメージ(&N)", IDM_NEW
		MENUITEM "イメージを開く(&O)", IDM_OPEN
		MENUITEM "イメージの保存", IDM_SAVE
		MENUITEM "名前を付けて保存(&A)", IDM_SAVEAS
		MENUITEM SEPARATOR
		POPUP "履歴(&H)"
		{
			MENUITEM "(None)", IDM_HISTORY
		}
		MENUITEM SEPARATOR
		MENUITEM "EZImageの終了(&E)", IDM_EXIT
	}
	POPUP "編集(&E)"
	{
		MENUITEM "元に戻す(&U)", IDM_UNDO, GRAYED
		MENUITEM "イメージの一部をコピー(&C)", IDM_COPY
		MENUITEM "イメージの一部を貼り付け(&P)", IDM_PASTE, GRAYED
		MENUITEM SEPARATOR
		POPUP "図形の選択(&S)"
		{
			MENUITEM "点(&D)", IDM_DOT, CHECKED
			MENUITEM "線(&L)", IDM_LINE
			MENUITEM "矩形(&B)", IDM_BOX
			MENUITEM "楕円(&E)", IDM_ELLIPSE
			MENUITEM "塗潰矩形'&F)", IDM_BOXF
			MENUITEM "塗潰楕円(&L)", IDM_ELLIPSEF
			MENUITEM "塗潰し(&P)", IDM_PAINT
		}
		POPUP "色の選択(&C)"
		{
			MENUITEM "色選択ダイアログ(&D)", IDM_COLDLG
			MENUITEM SEPARATOR
			MENUITEM "色を取得(&T)", IDM_GETCOL
		}
		POPUP "ビットシフト(&S)"
		{
			MENUITEM "右シフト", IDM_SHIFTR
			MENUITEM "左シフト", IDM_SHIFTL
			MENUITEM "上シフト", IDM_SHIFTU
			MENUITEM "下シフト", IDM_SHIFTD
		}
		POPUP "反転(&T)"
		{
			MENUITEM "左右(&V)", IDM_LANDR
			MENUITEM "上下(&V)", IDM_UANDD
		}
		MENUITEM SEPARATOR
		MENUITEM "クリップボードへコピー(&C)", IDM_CLIPCOPY
		MENUITEM "クリップボードから貼付(&V)", IDM_CLIPPASTE
	}
	POPUP "表示(&D)"
	{
		MENUITEM "イメージ情報ダイアログの表示(&D)", IDM_DISPLAY
	}
	POPUP "ヘルプ(&H)"
	{
		MENUITEM "ヘルプ(&H0", IDM_HELP
		MENUITEM "ショートカットキー(&S)", IDM_SHORTCUT
		MENUITEM "バージョン情報(&V)", IDM_VERSION
	}
}

//--------------------------
// イメージ（IDI_TBAR）
//--------------------------
IDI_TBAR	BITMAP	DISCARDABLE	"EZImage.bmp"

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

//--------------------------
// イメージ（IDI_SPOIT）
//--------------------------
IDI_SPOIT	CURSOR	DISCARDABLE	"Spoit.cur"

//--------------------------------
// アクセラレーター (IDA_ACCEL)
//--------------------------------
IDA_ACCEL ACCELERATORS DISCARDABLE
{
 VK_RETURN, IDOK, VIRTKEY, NOINVERT
 VK_ESCAPE, IDCANCEL, VIRTKEY, NOINVERT
 VK_N, IDM_NEW, VIRTKEY, CONTROL, NOINVERT
 VK_O, IDM_OPEN, VIRTKEY, CONTROL, NOINVERT
 VK_S, IDM_SAVE, VIRTKEY, CONTROL, NOINVERT
 VK_X, IDM_EXIT, VIRTKEY, CONTROL, NOINVERT
 VK_U, IDM_UNDO, VIRTKEY, CONTROL, NOINVERT
 VK_SPACE, IDM_COPY, VIRTKEY, NOINVERT
 VK_SPACE, IDM_PASTE, VIRTKEY, CONTROL, NOINVERT
 VK_C, IDM_CLIPCOPY, VIRTKEY, CONTROL, NOINVERT
 VK_V, IDM_CLIPPASTE, VIRTKEY, CONTROL, NOINVERT
 VK_F1, IDM_HELP, VIRTKEY, NOINVERT
 VK_F2, IDM_SHORTCUT, VIRTKEY, NOINVERT
 VK_F3, IDM_VERSION, VIRTKEY, NOINVERT
}

#include	"IconView_DLL.rc"