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

C++ AddKey函数代码示例

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

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



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

示例1: DeleteTrack

void Cinematic::New() {
	
	projectload = false;
	
	numbitmap = -1;
	numbitmapsuiv = -1;
	fx = -1;
	key = NULL;
	
	DeleteTrack();
	DeleteAllBitmap();
	DeleteAllSound();
	
	AllocTrack(0, 100, 30.f);
	FillKeyTemp(&pos, angz, 0, -1, -1, INTERP_BEZIER, 0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF, 1.f, -1, 1, NULL, &posgrille, angzgrille, 1.f);
	AddKey(&KeyTemp, true, true, true);
	FillKeyTemp(&pos, angz, 100, -1, -1, INTERP_BEZIER, 0x00FFFFFF, 0x00FFFFFF, 0x00FFFFFF, 1.f, -1, 1, NULL, &posgrille, angzgrille, 1.f);
	AddKey(&KeyTemp, true, true, true);
	this->lightd = this->lightchoose = this->light;
	
	SetCurrFrame(GetStartFrame());
	
	projectload = true;
	
	FlashBlancEnCours = false;
	
}
开发者ID:temojin,项目名称:ArxLibertatis,代码行数:27,代码来源:Cinematic.cpp


示例2: EndEdit

BOOL CHtmlProperties::Show( CReg *pReg)
{
	EndEdit();

	// Destroy properties list
	GetPropList().Destroy();

	// Lose list items
	GetListCtrl().Destroy();

	// Rebuild header
	GetListCtrl().GetHeader().Destroy();
	GetListCtrl().GetHeader().AddHeaderItem( 120, "Name" );
	GetListCtrl().GetHeader().AddHeaderItem( 120, "Value" );

	if ( pReg == NULL ) 
	{	LoadList();
		RedrawWindow();
		return FALSE;
	} // end if

	// Add variables
	AddKey( pReg, pReg->GetKey( "vars" ) );
	AddKey( pReg, pReg->GetKey( "lvars" ) );
	AddKey( pReg, pReg->GetKey( "dvars" ) );

//	AddDynamic( pReg );

	// Loadup the list
	LoadList();

	RedrawWindow();

	return TRUE;
}
开发者ID:sanyaade-webdev,项目名称:wpub,代码行数:35,代码来源:HtmlProperties.cpp


示例3: AddKey

void Bar::AddKey(KeyInfo& (*key)(), Callback cb)
{
	KeyInfo& k = (*key)();
	AddKey(k.key[0], cb);
	AddKey(k.key[1], cb);
	AddKey(k.key[2], cb);
	AddKey(k.key[3], cb);
}
开发者ID:AbdelghaniDr,项目名称:mirror,代码行数:8,代码来源:Bar.cpp


示例4: NWidgetHorizontal

/** Construct the top row keys (cancel, ok, backspace). */
static NWidgetBase *MakeTopKeys(int *biggest_index)
{
	NWidgetHorizontal *hor = new NWidgetHorizontal();
	int key_height = FONT_HEIGHT_NORMAL + 2;

	AddKey(hor, key_height, 6 * 2, WWT_TEXTBTN,    WID_OSK_CANCEL,    STR_BUTTON_CANCEL,  biggest_index);
	AddKey(hor, key_height, 6 * 2, WWT_TEXTBTN,    WID_OSK_OK,        STR_BUTTON_OK,      biggest_index);
	AddKey(hor, key_height, 2 * 2, WWT_PUSHIMGBTN, WID_OSK_BACKSPACE, SPR_OSK_BACKSPACE, biggest_index);
	return hor;
}
开发者ID:J0anJosep,项目名称:OpenTTD,代码行数:11,代码来源:osk_gui.cpp


示例5: NWidgetHorizontalLTR

/** Construct the asdfg row keys. */
static NWidgetBase *MakeAsdfgKeys(int *biggest_index)
{
	NWidgetHorizontal *hor = new NWidgetHorizontalLTR();
	int key_height = FONT_HEIGHT_NORMAL + 6;

	AddKey(hor, key_height, 4, WWT_IMGBTN, WID_OSK_CAPS, SPR_OSK_CAPS, biggest_index);
	for (int widnum = WID_OSK_ASDFG_FIRST; widnum <= WID_OSK_ASDFG_LAST; widnum++) {
		AddKey(hor, key_height, 2, WWT_PUSHBTN, widnum, 0x0, biggest_index);
	}
	return hor;
}
开发者ID:J0anJosep,项目名称:OpenTTD,代码行数:12,代码来源:osk_gui.cpp


示例6: DisplayCharacters

void DisplayCharacters(int nval,int indicator,int j)   //indictor value is 0 for anuswara ,1 for consonants , 2 for vowels
{
    int k = j ;   // --------index for glyph codes---//



    while(kFlag.n_back>=1)
    {
        AddKey(VK_BACK);
        kFlag.n_back--;
    }
    if(indicator==SINGLE)
    {
        while(single_key[nval].k_val[k]!=-1)
        {
            AddKey(single_key[nval].k_val[k]);
            k++;
        }
    }
    else if(indicator == SLASH)
    {
        while(double_key_slash[nval].k_val[k]!=-1)
        {

            AddKey(double_key_slash[nval].k_val[k]);
            k++;
        }

    }
    else if(indicator == EE)
    {
        while(double_key_ee[nval].k_val[k]!=-1)
        {

            AddKey(double_key_ee[nval].k_val[k]);
            k++;
        }

    }
    else if(indicator == F_OTTU)
    {
        while(double_key_F[nval].k_val[k]!=-1)
        {

            AddKey(double_key_F[nval].k_val[k]);
            k++;
        }

    }

    kFlag.n_back = -1;
}
开发者ID:kannadiga,项目名称:kuvempu,代码行数:52,代码来源:Hemavathi1_99.cpp


示例7: AddKey

RESPONSE_HEADER_RESULT ResponseHeaderBuilder::AddBinaryHeaders(
	SIZE_T ContentLength,
	LPCSTR MimeType)
{
	if (!MimeType || !*MimeType)
	{
		return RESPONSE_HEADER_NEED_CONTENT_MIME;
	}

	AddKey("Content-Type", MimeType);
	AddKey("Content-Length", IntToStr(ContentLength));
	AddKey("Connection", "close");

	return RESPONSE_HEADER_OK;
}
开发者ID:LightenPan,项目名称:HTTP,代码行数:15,代码来源:HTTPResponse.cpp


示例8: PtInKey

void CKeyControl::OnLButtonDown(UINT nFlags, CPoint point) 
{
	CLinkListNode<KEY> *pNode = PtInKey(point);

	if (PtInKey(point))
	{
		if (GetAsyncKeyState(VK_CONTROL) & 0x8000)
		{
			pNode->m_Data.m_bSelected = !pNode->m_Data.m_bSelected;

			Redraw();
		}
		else
		{
			TrackKey(pNode, KeyToPos(&pNode->m_Data), point);
		}

		return;
	}
	
	AddKey(point);

	InvalidateRect(NULL, TRUE);
	
	CStatic::OnLButtonDown(nFlags, point);
}
开发者ID:Joincheng,项目名称:lithtech,代码行数:26,代码来源:KeyControl.cpp


示例9: sprintf

/*=========================================================================
   WriteString : Writes a string to the ini file
*========================================================================*/
void CIniFile::WriteString (CCHR *pSection, CCHR *pKey, CCHR *pValue)
{
	EFIND List;
	char  Str [255];

	if (ArePtrValid (pSection, pKey, pValue) == FALSE) { return; }
	if (FindKey  (pSection, pKey, &List) == TRUE)
	{
		sprintf (Str, "%s=%s%s", List.KeyText, pValue, List.Comment);
		FreeMem (List.pKey->pText);
		List.pKey->pText = (char *)malloc (strlen (Str)+1);
		strcpy (List.pKey->pText, Str);
	}
	else
	{
		if ((List.pSec != NULL) && (List.pKey == NULL)) // section exist, Key not 
		{
			AddKey (List.pSec, pKey, pValue);
		}
		else
		{
			AddSectionAndKey (pSection, pKey, pValue);
		}
	}
}
开发者ID:zhlgh603,项目名称:contron-psm70,代码行数:28,代码来源:IniFile.cpp


示例10: assert

// --[  Method  ]---------------------------------------------------------------
//
//  - Class     : CSplineTCB
//  - Prototype : bool Parse(CAdvancedParser* pParser)
//
//  - Purpose   : Gets the data parsing the keys from a source.
//
// -----------------------------------------------------------------------------
bool CSplineTCB::Parse(CAdvancedParser* pParser)
{
	assert(pParser);
	assert(pParser->Ready());

	Delete();

	CSplineTCB::TKey key;

	while(pParser->ReadKeyFloat("#time", '=', &key.fTime, CAdvancedParser::SEARCH_FROMCURPOS))
	{
		int nError = 0;

		if(!pParser->ReadKeyVector3("#value",      '=', &key.v3Value,     CAdvancedParser::SEARCH_INCURLINE)) nError++;
		if(!pParser->ReadKeyFloat  ("#tension",    '=', &key.fTension,    CAdvancedParser::SEARCH_INCURLINE)) nError++;
		if(!pParser->ReadKeyFloat  ("#continuity", '=', &key.fContinuity, CAdvancedParser::SEARCH_INCURLINE)) nError++;
		if(!pParser->ReadKeyFloat  ("#bias",       '=', &key.fBias,       CAdvancedParser::SEARCH_INCURLINE)) nError++;

		if(!nError)
		{
			AddKey(key);
		}
		else
		{
			LOG.Write("\nERROR - CSplineTCB::Parse(): missed some field parsing a line.");
			return false;
		}
	}

	return true;
}
开发者ID:fernandojsg,项目名称:sgzsourcepack,代码行数:39,代码来源:CurveSplineTCB.cpp


示例11: XRCCTRL

bool COptionsPageConnectionSFTP::LoadPage()
{
	wxListCtrl* pKeys = XRCCTRL(*this, "ID_KEYS", wxListCtrl);
	if (!pKeys)
		return false;
	pKeys->InsertColumn(0, _("Filename"), wxLIST_FORMAT_LEFT, 150);
	pKeys->InsertColumn(1, _("Comment"), wxLIST_FORMAT_LEFT, 100);
	pKeys->InsertColumn(2, _("Data"), wxLIST_FORMAT_LEFT, 350);
	
	// Generic wxListCtrl has gross minsize
	wxSize size = pKeys->GetMinSize();
	size.x = 1;
	pKeys->SetMinSize(size);

	wxString keyFiles = m_pOptions->GetOption(OPTION_SFTP_KEYFILES);
	wxStringTokenizer tokens(keyFiles, _T("\n"), wxTOKEN_DEFAULT);
	while (tokens.HasMoreTokens())
		AddKey(tokens.GetNextToken(), true);

	bool failure = false;

	SetCtrlState();

	return !failure;
}
开发者ID:AbelTian,项目名称:filezilla,代码行数:25,代码来源:optionspage_connection_sftp.cpp


示例12: FindKey

VariableDATA *Array::ModuleGet(const char *key) {
    ARRAY_COUNT_TYPE i = -1;

    i = FindKey(key);

    if (i == -1) {
        AnsiString tmp(key);
        AddKey(&tmp, COUNT);
        ADD_VARIABLE(0, PIF);
    }

    if (i < COUNT) {
        ARRAY_COUNT_TYPE target_node = i / ARRAY_INCREMENT;
        ARRAY_COUNT_TYPE d_count     = i % ARRAY_INCREMENT;
        NODE *CURRENT = FIRST;
        for (ARRAY_COUNT_TYPE k = 0; k < target_node; k++) {
            CURRENT = CURRENT->NEXT;
        }
        ENSURE_ELEMENTS(CURRENT, d_count);
        ArrayElement *ELEMENTS = CURRENT->ELEMENTS;
        if (!ELEMENTS [d_count]) {
            CREATE_VARIABLE(ELEMENTS [d_count], PIF);
        }
        return ELEMENTS [d_count];
    }
    ARRAY_COUNT_TYPE target = i;
    while (COUNT < target) {
        ADD_MULTIPLE_VARIABLE2;
    }
    ADD_VARIABLE(0, PIF);
    return 0;
}
开发者ID:Devronium,项目名称:ConceptApplicationServer,代码行数:32,代码来源:Array.cpp


示例13: switch

void CRegisterDlg::OnReceiveComplete(void)
{

	switch (m_ContextObject->InDeCompressedBuffer.GetBuffer(0)[0])
	{

	case TOKEN_REG_PATH:
		{

			AddPath((char*)(m_ContextObject->InDeCompressedBuffer.GetBuffer(1)));
			break;
		}

	case TOKEN_REG_KEY:
		{

			AddKey((char*)(m_ContextObject->InDeCompressedBuffer.GetBuffer(1)));
			break;
		}

	default:
		// 传输发生异常数据
		break;

	}
}
开发者ID:zibility,项目名称:Remote,代码行数:26,代码来源:RegisterDlg.cpp


示例14: AddKey

CRKey* CReg::GetKey(LPCTSTR pKey)
{_STTEX();
	LPREGKEY prk = AddKey( pKey );
	if ( prk == NULL ) return NULL;

	return prk->key;
}
开发者ID:aminsyed,项目名称:rulib,代码行数:7,代码来源:Reg.cpp


示例15: GetKeyHandle

FKeyHandle FRichCurve::UpdateOrAddKey(float InTime, float InValue, const bool bUnwindRotation)
{
	// Search for a key that already exists at the time and if found, update its value
	for (int32 KeyIndex = 0; KeyIndex < Keys.Num(); ++KeyIndex)
	{
		float KeyTime = Keys[KeyIndex].Time;

		if (KeyTime > InTime)
		{
			// All the rest of the keys exist after the key we want to add
			// so there is no point in searching
			break;
		}

		if (FMath::IsNearlyEqual(KeyTime, InTime))
		{
			Keys[KeyIndex].Value = InValue;

			return GetKeyHandle(KeyIndex);
		}
	}

	// A key wasnt found, add it now
	return AddKey(InTime, InValue, bUnwindRotation);
}
开发者ID:ErwinT6,项目名称:T6Engine,代码行数:25,代码来源:CurveBase.cpp


示例16: IniKey

IniKey* IniSection::AddKey(const char* keyName,const char* value)
{
	IniKey* pKey = new IniKey(this);
	pKey->SetKeyName(keyName);
	pKey->SetValue(value);

	return AddKey(pKey);
}
开发者ID:mobinsheng,项目名称:MBSLib,代码行数:8,代码来源:MIniFile.cpp


示例17: AddKeys

bool Keyboard::AddKeys(const char * keys)
{
	for (const char * j = keys; *j; ++j)
	{
		if (!AddKey(*j))return false;

	}
	return true;
}
开发者ID:kstamant244,项目名称:GameEngine,代码行数:9,代码来源:Keyboard.cpp


示例18: RandAddSeedPerfmon

std::vector<unsigned char> CKeyStore::GenerateNewKey()
{
    RandAddSeedPerfmon();
    CKey key;
    key.MakeNewKey();
    if (!AddKey(key))
        throw std::runtime_error("CKeyStore::GenerateNewKey() : AddKey failed");
    return key.GetPubKey();
}
开发者ID:FuzzyBearBTC,项目名称:CoiledCoin,代码行数:9,代码来源:keystore.cpp


示例19: dlg

void COptionsPageConnectionSFTP::OnAdd(wxCommandEvent& event)
{
	wxFileDialog dlg(this, _("Select file containing private key"), _T(""), _T(""), wxFileSelectorDefaultWildcardStr, wxFD_OPEN | wxFD_FILE_MUST_EXIST);
	if (dlg.ShowModal() != wxID_OK)
		return;

	const wxString file = dlg.GetPath();

	AddKey(dlg.GetPath(), false);
}
开发者ID:AbelTian,项目名称:filezilla,代码行数:10,代码来源:optionspage_connection_sftp.cpp


示例20: defined

bool Association::AddKey(DcmDataset *query, const DcmTagKey& tag, int value)
{
        static char temp[16];
#if defined(_WINDOWS)
        sprintf_s(temp, 16, "%i", value);
#else
        snprintf(temp, 16, "%i", value);
#endif
        return AddKey(query, tag, temp);
}
开发者ID:151706061,项目名称:ginkgocadx,代码行数:10,代码来源:dicomassociation.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ AddLabel函数代码示例发布时间:2022-05-30
下一篇:
C++ AddKalimdorScripts函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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