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

//----------------------------------
// ダイアログ (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 8, "ＭＳ 明朝"
{
 CONTROL "完了", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, 165, 189, 48, 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, 33, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BMHEIGHT, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 54, 51, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BMWIDTHBYTES, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 54, 69, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BMPLANES, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 54, 87, 42, 12, WS_EX_CLIENTEDGE
 CONTROL "", IDC_BMBITSPIXEL, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_AUTOHSCROLL | ES_LEFT, 54, 105, 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, 18, 189, 48, 18
 CONTROL "BITMAP情報", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_SUNKEN, 6, 3, 90, 12
 CONTROL "BITMAPFILEHEADER情報", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_SUNKEN, 120, 3, 90, 12
 CONTROL "BITMAPINFOHEADER情報", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_SUNKEN, 234, 3, 90, 12
 CONTROL "カラービット", 0153, "BUTTON", WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 87, 180, 60, 27
 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_DUMP)
//----------------------------------
IDD_DUMP DIALOG DISCARDABLE 0, 0, 480, 360
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | DS_MODALFRAME | DS_3DLOOK | DS_CENTER
CAPTION "ビットマップ情報のダンプ"
FONT 8, "ＭＳ 明朝"
{
 CONTROL "終了", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, 204, 333, 48, 15
 CONTROL "", IDC_EDIT, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_READONLY | ES_MULTILINE | ES_WANTRETURN | WS_VSCROLL | ES_LEFT, 3, 3, 468, 318, WS_EX_CLIENTEDGE
}

//----------------------------------
// ダイアログ (IDD_HELP)
//----------------------------------
IDD_HELP DIALOG DISCARDABLE 0, 0, 480, 360
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | DS_MODALFRAME | DS_3DLOOK | DS_CENTER
CAPTION "BMPViewerのヘルプ"
FONT 8, "ＭＳ 明朝"
{
 CONTROL "終了", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, 204, 333, 48, 15
 CONTROL "", IDC_EDIT, "EDIT", WS_CHILD | WS_BORDER | WS_VISIBLE | ES_READONLY | ES_MULTILINE | ES_WANTRETURN | WS_VSCROLL | ES_LEFT, 3, 3, 468, 318, WS_EX_CLIENTEDGE
}

//----------------------------------
// ダイアログ (IDD_VERSION)
//----------------------------------
IDD_VERSION DIALOG DISCARDABLE 0, 0, 213, 63
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | WS_THICKFRAME | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | DS_SETFONT | DS_CENTER
CAPTION "ヴァージョン情報"
FONT 8, "ＭＳ 明朝"
{
 CONTROL IDI_ICON, 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_SUNKEN | SS_ICON, 24, 21, 18, 18
 CONTROL "OK", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | BS_DEFPUSHBUTTON, 159, 21, 33, 18
 CONTROL "BMPViewer By BCCSkelton Copyright (c) 2002 By ysama", 0, "STATIC", WS_CHILD | WS_VISIBLE | SS_NOTIFY | SS_SUNKEN | SS_CENTER, 69, 12, 72, 36
}

//----------------------------------
// ダイアログで使用するイメージ
//----------------------------------
IDI_ICON	ICON	DISCARDABLE	"Icon.ico"

//----------------------------------
// ダイアログ (IDD_SELECTCLR)
//----------------------------------
IDD_SELECTCLR DIALOG DISCARDABLE 0, 0, 159, 144
EXSTYLE WS_EX_DLGMODALFRAME
STYLE WS_POPUP | DS_MODALFRAME | WS_CAPTION | DS_SETFONT
CAPTION "保存するビットマップの色指定"
FONT 8, "ＭＳ 明朝"
{
 CONTROL "OK", IDOK, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_DEFPUSHBUTTON, 120, 60, 30, 18
 CONTROL "モノクローム", IDC_RADIOBOX01, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 15, 24, 90, 12
 CONTROL "16色ビットマップ", IDC_RADIOBOX04, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 15, 42, 90, 12
 CONTROL "256色ビットマップ", IDC_RADIOBOX08, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 15, 60, 90, 12
 CONTROL "65536色ビットマップ", IDC_RADIOBOX16, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 15, 78, 90, 12
 CONTROL "Trueカラー(24bit）", IDC_RADIOBOX24, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 15, 96, 90, 12
 CONTROL "Trueカラー(32bit)", IDC_RADIOBOX32, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_AUTORADIOBUTTON, 15, 114, 90, 12
 CONTROL "ビットマップの種類", 0, "BUTTON", WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 6, 9, 102, 126
}

//-------------------------
// メニュー（IDM_MAIN）
//-------------------------
IDM_MAIN MENU DISCARDABLE
{
	POPUP "ファイル(&F)"
	{
		MENUITEM "データを開く(&O)", IDM_OPEN
		MENUITEM "データの保存(&S)", IDM_SAVE, GRAYED
		MENUITEM "名前をつけて保存(&A)", IDM_SAVEAS, GRAYED
		MENUITEM SEPARATOR
		MENUITEM "終了(&X)", IDM_EXIT
	}
	POPUP "情報(&I)", GRAYED
	{
		MENUITEM "ビットマップ情報(&I)", IDM_INFO
		MENUITEM SEPARATOR
		MENUITEM "ビットマップ情報のダンプ(&D)", IDM_DUMP
	}
	POPUP "ヘルプ(&H)"
	{
		MENUITEM "ビットマップ情報のヘルプ(&H)", IDM_HELP
		MENUITEM SEPARATOR
		MENUITEM "ヴァージョン情報(&V)", IDM_VERSION
	}

}

//--------------------------------
// アクセラレーター (IDA_ACCEL)
//--------------------------------
IDA_ACCEL ACCELERATORS DISCARDABLE
{
 VK_F1, IDHELP, VIRTKEY, NOINVERT
 VK_RETURN, IDOK, VIRTKEY, NOINVERT
 VK_ESCAPE, IDCANCEL, VIRTKEY, NOINVERT
 VK_ESCAPE, IDNO, VIRTKEY, NOINVERT
 VK_RETURN, IDYES, VIRTKEY, NOINVERT
}
