#pragma once
#include "ExportEngineerpch.h"
//#include "Mstn\MdlApi\vartypes.h"
//#include "Mstn\MdlApi\dlogbox.r.h"
//#include "Mstn\MdlApi\dlogitem.h"

ListCell*			listModel_getEditCell
(
	const MSDialogP   	db,			//	=>	Dialog that contains ComboBox or ListBox
	RawItemHdr*			rItem		//	=>	Reference to  ComboBox or ListBox
);

/** --------------------------------------------------------------------+
|																		|
|	function name:	listModel_getListBoxEditCell						|
|																		|
|	description:	A ListCell is contained by a ListModel that is 		|
|					contained by a ListBox.  The ListModel contains		|
|					an array of ListCell objects.	A reference to the	|
|					currently-selected ListCell is often required to	|
|					obtain or update the ListCell's contents.			|
|																		|
|	note:			If the ListBox is transient you can't use			|
|					you can't use this function							|
|																		|
|	usage:			ListCell *pCell = NULL;								|
|					pCell	= listModel_getListBoxEditCell	(db, LBOX);	|
|																		|
|	returns:		Non-const reference to a ListCell on success		|
|																		|
+--------------------------------------------------------------------- */
ListCell*			listModel_getListBoxEditCell
(
	const MSDialogP   	db,			//	=>	Dialog box that contains our ListBox
	ULong 				nIDListBox,	//	=>	Resource ID of the ListBox
	int* rowIndex,
	int* colIndex
);

//双击ListBox产生编辑框，此编辑框的钩函数
void EditCellHook
(
	DialogItemMessage *dimP
);

//"按工程做法分类"ListBox钩函数
void CellListlingHook
(
	DialogItemMessage       *dimP
);

//"导出"按钮钩函数
void ExportHook
(
	DialogItemMessage       *dimP
);

void ToggleBtnDeleteBlank
(
	DialogItemMessage* dimP
);