#include <Mstn\MdlApi\dlogbox.r.h>
#include <Mstn\MdlApi\dlogids.r.h>
#include "DialogResource.h"
#include "ExportEngineerStruct.h"

#define LISTBOXWIDTH (90*XC)
#define LISTBOXHEIGHT (25*YC)
DialogBoxRsc DIALOGID_ExportDoor =
{
	DIALOGATTR_DEFAULT | DIALOGATTR_SINKABLE,
	95*XC, 29*YC,
	NOHELP, MHELP,NOHOOK, NOPARENTID,
	TXT_ExportDoor,
	{
		{{ 1*XC,  1*YC,  LISTBOXWIDTH,  LISTBOXHEIGHT},  ListBox, LISTBOXID_ExportDoor, ON, 0, "", "" },
		{{LISTBOXWIDTH-20*XC, LISTBOXHEIGHT+2*YC, BUTTON_STDWIDTH, 0}, PushButton, PUSHBUTTONID_ExportDoor,ON,0,"",""},
		{{LISTBOXWIDTH-8*XC, LISTBOXHEIGHT+2*YC, BUTTON_STDWIDTH, 0}, PushButton, PUSHBUTTONID_CloseDoor,ON,0,"",""},
	}
};

DItem_ListBoxRsc  LISTBOXID_ExportDoor =
{
    NOHELP, MHELP, HOOKID_ListDoor, NOARG,
	LISTATTR_RESIZABLECOLUMNS |
    LISTATTR_DYNAMICSCROLL | LISTATTR_SELBROWSE | LISTATTR_HORIZSCROLLBAR | 
    LISTATTR_COLHEADINGBORDERS | LISTATTR_GRID | LISTATTR_EDITABLE | 
    LISTATTR_NEWCOLHEADORIGIN  |
    LISTATTR_INDEPENDENTCOLS,
    10, 0, "",
    {
		{15 * XC, 20, ALIGN_CENTER |LISTCOLATTR_EDITABLE, "构造类型"	 },
    }
};

DItem_PushButtonRsc PUSHBUTTONID_ExportDoor= 
{ 
	DEFAULT_BUTTON, NOHELP, MHELP, 
	HOOKBTNID_ExportDoor, NOARG,NOCMD , MCMD, "", "导出" 
} 

DItem_PushButtonRsc PUSHBUTTONID_CloseDoor= 
{ 
	NOT_DEFAULT_BUTTON, NOHELP, MHELP, 
	HOOKITEMID_Button_StandardAction , ACTIONBUTTON_CANCEL,NOCMD , MCMD, "", "关闭" 
} 

DItem_TextRsc TEXTID_ListCell_ExportDoor =
{
   NOCMD, LCMD, NOSYNONYM, NOHELP, MHELP, HOOKITEMID_Text_ExportDoor, NOARG, 
   ListBoxCell_MaxCharNum, "", "", "", "", NOMASK, NOCONCAT,
   "", "g_binding.editExportDoorText"
};