• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ VectorVariant类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中VectorVariant的典型用法代码示例。如果您正苦于以下问题:C++ VectorVariant类的具体用法?C++ VectorVariant怎么用?C++ VectorVariant使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了VectorVariant类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: F_GUISetState

AUT_RESULT AutoIt_Script::F_GUISetState(VectorVariant &vParams, Variant &vResult)
{
	int nState = SW_SHOW;
	HWND hWnd = NULL;
 	if (vParams.size() > 1) hWnd = vParams[1].hWnd();
	if (vParams.size() > 0) nState = vParams[0].nValue();

	vResult = g_oGUI.SetState(nState, hWnd);

	return AUT_OK;

} // GUISetState()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:12,代码来源:script_gui.cpp


示例2: F_GUICreate

AUT_RESULT AutoIt_Script::F_GUICreate(VectorVariant &vParams, Variant &vResult)
{
	uint	iNumParams = vParams.size();

	int		nStyle		= -1;
	int		nExStyle	= -1;
	int		nW			= -1;
	int		nH			= -1;
	int		nX			= -1;
	int		nY			= -1;
	HWND hParent		= NULL;

	if (iNumParams > 7) hParent = vParams[7].hWnd();
	if (iNumParams > 6) nExStyle = vParams[6].nValue();
	if (iNumParams > 5) nStyle = vParams[5].nValue();
	if (iNumParams > 4) nY = vParams[4].nValue();
	if (iNumParams > 3) nX = vParams[3].nValue();
	if (iNumParams > 2) nH = vParams[2].nValue();
	if (iNumParams > 1) nW = vParams[1].nValue();

	HWND hWnd= g_oGUI.CreateGUI(vParams[0].szValue(), nX, nY,nW, nH, nStyle, nExStyle, hParent);

	if (hWnd == NULL)
	{
		SetFuncErrorCode(1);
		vResult = (HWND)NULL;					// window can not be created
	}
	else
		vResult = hWnd;

	return AUT_OK;

} // GUICreate()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:33,代码来源:script_gui.cpp


示例3: F_GUISetHelp

AUT_RESULT AutoIt_Script::F_GUISetHelp(VectorVariant &vParams, Variant &vResult)
{
	HWND hWnd = NULL;
	if (vParams.size() > 1) hWnd = vParams[1].hWnd();

	vResult = g_oGUI.CreateGuiEx(vParams[0].szValue(), -1,NULL, -1, hWnd);
	return AUT_OK;

} // GUISetHelp()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:9,代码来源:script_gui.cpp


示例4: F_GUISendToDummy

AUT_RESULT AutoIt_Script::F_GUISendToDummy(VectorVariant &vParams, Variant &vResult)
{
	Variant vState;

	if (vParams.size() > 1)	vState = vParams[1];

	vResult= g_oGUI.SendToDummy(vParams[0].nValue(), vState);
	return AUT_OK;

} // GUISendToDummy()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:10,代码来源:script_gui.cpp


示例5: F_GUIDelete

AUT_RESULT AutoIt_Script::F_GUIDelete(VectorVariant &vParams, Variant &vResult)
{
	HWND	hWnd = NULL;						// NULL will be set to delete current GUI

	if (vParams.size() > 0)	hWnd = vParams[0].hWnd();

	vResult = g_oGUI.DeleteGUI(hWnd);
	return AUT_OK;

} // GUIDelete()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:10,代码来源:script_gui.cpp


示例6: F_GUICtrlSetData

AUT_RESULT AutoIt_Script::F_GUICtrlSetData(VectorVariant &vParams, Variant &vResult)
{
	AString sDefault;

	if (vParams.size() > 2) sDefault = vParams[2].szValue();

	vResult = g_oGUI.CtrlSetData(vParams[0].nValue(), vParams[1].szValue(), sDefault.c_str());

	return AUT_OK;

} // GUICtrlSetData()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:11,代码来源:script_gui.cpp


示例7: F_GUICtrlSetLimit

AUT_RESULT AutoIt_Script::F_GUICtrlSetLimit(VectorVariant &vParams, Variant &vResult)
{
	int		nMin = -1;

	if (vParams.size() > 2) nMin = vParams[2].nValue();

	vResult = g_oGUI.CtrlSetLimit(vParams[0].nValue(), vParams[1].nValue(), nMin);

	return AUT_OK;

} // GUICtrlSetLimit()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:11,代码来源:script_gui.cpp


示例8: F_GUICtrlSetResizing

AUT_RESULT AutoIt_Script::F_GUICtrlSetResizing(VectorVariant &vParams, Variant &vResult)
{
	int		nResizing = -1;

	if (vParams.size() > 1) nResizing = vParams[1].nValue();

 	vResult = g_oGUI.CtrlSetResizing(vParams[0].nValue(), nResizing);

	return AUT_OK;

} // GUICtrlSetResizing()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:11,代码来源:script_gui.cpp


示例9: F_GUICtrlSetStyle

AUT_RESULT AutoIt_Script::F_GUICtrlSetStyle(VectorVariant &vParams, Variant &vResult)
{
	int		nExStyle = -1;

	if (vParams.size() > 2) nExStyle = vParams[2].nValue();

	vResult = g_oGUI.CtrlSetStyle(vParams[0].nValue(), vParams[1].nValue(), nExStyle);

	return AUT_OK;

} // GUICtrlSetStyle()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:11,代码来源:script_gui.cpp


示例10: F_GUIGetMsg

AUT_RESULT AutoIt_Script::F_GUIGetMsg(VectorVariant &vParams, Variant &vResult)
{
	GUIEVENT	Event;
	Variant		*pvTemp;
	Variant		vTemp;


	// If we are in event mode then

	// Don't try and get the message if the OnEvent mode is active
	if ( g_oGUI.m_bGuiEventEnabled == true || g_oGUI.GetMsg(Event) == false)
	{
		// No events - add default values
		Event.nGlobalID	= 0;
		Event.sCallback	= "";
		Event.hWnd		= NULL;
		Event.hCtrl		= NULL;
		Event.nCursorX	= 0;
		Event.nCursorY	= 0;
	}
	if ( g_oGUI.m_bGuiEventEnabled == true)
		SetFuncErrorCode(1);

	if (vParams.size() > 0 && vParams[0].nValue() == 1)
	{
		// Advanced return

		// Setup vResult as an Array to hold the 3 values we want to return
		Util_VariantArrayDim(&vResult, 5);

		pvTemp = Util_VariantArrayGetRef(&vResult, 0);	// First element
		*pvTemp = Event.nGlobalID;

		pvTemp = Util_VariantArrayGetRef(&vResult, 1);
		*pvTemp = Event.hWnd;

		pvTemp = Util_VariantArrayGetRef(&vResult, 2);
		*pvTemp = Event.hCtrl;

		pvTemp = Util_VariantArrayGetRef(&vResult, 3);
		*pvTemp = Event.nCursorX;

		pvTemp = Util_VariantArrayGetRef(&vResult, 4);
		*pvTemp = Event.nCursorY;
	}
	else
	{
		// Simple return
		vResult = Event.nGlobalID;
	}

	return AUT_OK;

} // GUIGetMsg()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:54,代码来源:script_gui.cpp


示例11: F_GUISetIcon

AUT_RESULT AutoIt_Script::F_GUISetIcon(VectorVariant &vParams, Variant &vResult)
{
	int		nIcon	= -1;
	HWND	hWnd = NULL;

	if (vParams.size() > 2) hWnd = vParams[2].hWnd();
	if (vParams.size() > 1) nIcon = vParams[1].nValue();

	vResult = g_oGUI.CreateGuiEx(NULL, -1, vParams[0].szValue(), nIcon, hWnd);
	return AUT_OK;

} // GUISetIcon()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:12,代码来源:script_gui.cpp


示例12: F_GUICtrlSetImage

AUT_RESULT AutoIt_Script::F_GUICtrlSetImage(VectorVariant &vParams, Variant &vResult)
{
	uint	iNumParams = vParams.size();
	int		nId = 0, nMode = -1;

	if (iNumParams > 3) nMode = vParams[3].nValue();
	if (iNumParams > 2) nId = vParams[2].nValue();

	vResult = g_oGUI.CtrlSetImage(vParams[0].nValue(), vParams[1].szValue(), nId, nMode);

	return AUT_OK;

} // GUICtrlSetImage()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:13,代码来源:script_gui.cpp


示例13: F_GUICtrlSetPos

AUT_RESULT AutoIt_Script::F_GUICtrlSetPos(VectorVariant &vParams, Variant &vResult)
{
	int nW = -1;
	int nH = -1;

	if (vParams.size() > 4) nH  = vParams[4].nValue();
	if (vParams.size() > 3) nW  = vParams[3].nValue();

	vResult = g_oGUI.CtrlSetPos( vParams[0].nValue(), vParams[1].nValue(), vParams[2].nValue(), nW, nH);

	return AUT_OK;

} // GUICtrlSetPos()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:13,代码来源:script_gui.cpp


示例14: F_BitXOR

AUT_RESULT AutoIt_Script::F_BitXOR(VectorVariant &vParams, Variant &vResult)
{
	uint	iNumParams = vParams.size();
	int		nRes = vParams[0].nValue();

	for (uint i = 1; i < iNumParams; ++i)
		nRes ^= vParams[i].nValue();

	vResult = nRes;

	return AUT_OK;

} // BitXOR()
开发者ID:dzzie,项目名称:au3src,代码行数:13,代码来源:script_math.cpp


示例15: F_GUISetCursor

AUT_RESULT AutoIt_Script::F_GUISetCursor(VectorVariant &vParams, Variant &vResult)
{
	uint	iNumParams = vParams.size();
	int		n = 2;								// Default is ID 2
	int		nOverride = 0;
	HWND	hWnd = NULL;

	if (iNumParams > 0)	n = vParams[0].nValue();
	if (iNumParams > 1)	nOverride = vParams[1].nValue();
	if (iNumParams > 2) hWnd = vParams[2].hWnd();

	g_oGUI.SetCursor(n, nOverride, hWnd);

	return AUT_OK;

} // GUISetCursor()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:16,代码来源:script_gui.cpp


示例16: F_GUISetCoord

AUT_RESULT AutoIt_Script::F_GUISetCoord(VectorVariant &vParams, Variant &vResult)
{
	uint	iNumParams = vParams.size();
	int nW = -1;
	int nH = -1;
	HWND hWnd = NULL;

	if (iNumParams > 2) nW = vParams[2].nValue();
	if (iNumParams > 3) nH = vParams[3].nValue();
	if (iNumParams > 4) hWnd = vParams[4].hWnd();

	vResult = g_oGUI.SetCoord(vParams[0].nValue(), vParams[1].nValue(), nW, nH, hWnd);

	return AUT_OK;

} // GUISetCoord()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:16,代码来源:script_gui.cpp


示例17: F_GUIStartGroup

AUT_RESULT AutoIt_Script::F_GUIStartGroup(VectorVariant &vParams, Variant &vResult)
{
	HWND hWnd = NULL;

	if (vParams.size() > 0) hWnd = vParams[0].hWnd();

	if (g_oGUI.m_nNumWindows == 0)
	{
		vResult = 0;							// Default is 1
		return AUT_OK;
	}

	g_oGUI.GroupStart(hWnd);

	return AUT_OK;

} // GUIStartGroup()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:17,代码来源:script_gui.cpp


示例18: F_GUICtrlSetFont

AUT_RESULT AutoIt_Script::F_GUICtrlSetFont(VectorVariant &vParams, Variant &vResult)
{
	uint	iNumParams	= vParams.size();
	int		nWeight		= -1;
	AString sFont;								// Blank by default
	int		nAttribute	= -1;


	if (iNumParams > 4) sFont = vParams[4].szValue();
	if (iNumParams > 3) nAttribute = vParams[3].nValue();
	if (iNumParams > 2) nWeight = vParams[2].nValue();

	vResult = g_oGUI.CtrlSetFont(vParams[0].nValue(), vParams[1].fValue(), nWeight, sFont.c_str(), nAttribute);

	return AUT_OK;

} // GUICtrlSetFont()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:17,代码来源:script_gui.cpp


示例19: F_GUISetOnEvent

AUT_RESULT AutoIt_Script::F_GUISetOnEvent(VectorVariant &vParams, Variant &vResult)
{
	int		nTemp1, nTemp2, nTemp3, nTemp4;

	// Check that this user function exists
	if (Parser_FindUserFunction(vParams[1].szValue(), nTemp1, nTemp2, nTemp3, nTemp4) == false)
	{
		FatalError(IDS_AUT_E_UNKNOWNUSERFUNC);
		return AUT_ERR;
	}
	else
	{
		HWND hWnd = NULL;
		if (vParams.size() > 2) hWnd = vParams[2].hWnd();
		vResult = g_oGUI.SetOnEvent(vParams[0].nValue(), vParams[1].szValue(), hWnd);

		return AUT_OK;
	}

} // GUISetOnEvent()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:20,代码来源:script_gui.cpp


示例20: F_GUIRead

AUT_RESULT AutoIt_Script::F_GUIRead(VectorVariant &vParams, Variant &vResult)
{
	uint	iNumParams = vParams.size();
	char *szText;
	int nState;
	int nControl = -1;

	if (iNumParams > 0) nControl = vParams[0].nValue();

	szText = g_oGUI.Read(nControl, nState);
	if (nState <0 && szText != NULL)
	{
		vResult = szText;
		delete [] szText;						// We are responsible for deleting memory
	}
	else
		vResult = nState;

	return AUT_OK;

} // GUIRead()
开发者ID:infam0us,项目名称:AutoIT-Plus,代码行数:21,代码来源:script_gui.cpp



注:本文中的VectorVariant类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ VectorView类代码示例发布时间:2022-05-31
下一篇:
C++ VectorValues类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap