Exemple #1
0
uint CSetDlgLists::GetListItems(eWordItems eWhat, const DWORD*& pItems)
{
	uint nCount = 0;

	#undef  LST_ENUM
	#define LST_ENUM(x) case e##x: pItems = x; nCount = LOWORD(countof(x)); break;

	switch (eWhat)
	{
	LST_ENUM(FSizesY);
	LST_ENUM(FSizesX);
	LST_ENUM(FSizesSmall);
	LST_ENUM(SizeCtrlId);
	LST_ENUM(TaskCtrlId);
	LST_ENUM(StatusColorIds);
	LST_ENUM(ImgCtrls);
	LST_ENUM(ExtendFonts);
	default:
		pItems = NULL;
	}

	#undef  LST_ENUM
	_ASSERTE((pItems!=NULL) && (nCount>0) && "Unsupported code");
	return nCount;
}
Exemple #2
0
uint CSetDlgLists::GetListItems(eFillListBoxItems eWhat, const ListBoxItem*& pItems)
{
	uint nCount = 0;

	#undef  LST_ENUM
	#define LST_ENUM(x) case e##x: pItems = x; nCount = LOWORD(countof(x)); break;

	switch (eWhat)
	{
	LST_ENUM(BgOper);
	LST_ENUM(Modifiers);
	LST_ENUM(KeysHot);
	LST_ENUM(Keys);
	LST_ENUM(KeysAct);
	LST_ENUM(CharSets);
	LST_ENUM(ClipAct);
	LST_ENUM(ColorIdx);
	LST_ENUM(ColorIdx16);
	LST_ENUM(ColorIdxSh);
	LST_ENUM(ColorIdxTh);
	LST_ENUM(ThumbMaxZoom);
	LST_ENUM(CRLF);
	LST_ENUM(CopyFormat);
	LST_ENUM(TabBtnDblClickActions);
	LST_ENUM(TabBarDblClickActions);
	default:
		pItems = NULL;
	}

	#undef  LST_ENUM
	_ASSERTE((pItems!=NULL) && (nCount>0) && "Unsupported code");
	return nCount;
}