当前位置: 首页>>代码示例>>C++>>正文


C++ UpdateFile函数代码示例

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


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

示例1: UpdateFile

void DialogAFProperties::OnEnChangeEditContents() {
	if ( EditControlEnterHit( &m_editContents ) ) {
		UpdateFile();
		if ( file && file->bodies.Num() && MessageBox( "Apply to all bodies ?", "Contents", MB_YESNO | MB_ICONQUESTION ) == IDYES ) {
			for ( int i = 0; i < file->bodies.Num(); i++ ) {
				file->bodies[i]->contents = file->contents;
			}
			bodyDlg->LoadFile( file );
		}
	}
}
开发者ID:BielBdeLuna,项目名称:StormEngine2,代码行数:11,代码来源:DialogAFProperties.cpp

示例2: UpdateData

void DialogAFConstraintUniversal::OnDeltaposSpinUniversalLimitYaw(NMHDR *pNMHDR, LRESULT *pResult) {
	LPNMUPDOWN pNMUpDown = reinterpret_cast<LPNMUPDOWN>(pNMHDR);
	if ( pNMUpDown->iDelta < 0 ) {
		m_limitYaw += 1.0f;
	}
	else {
		m_limitYaw -= 1.0f;
	}
	UpdateData( FALSE );
	UpdateFile();
	*pResult = 0;
}
开发者ID:AndreiBarsan,项目名称:doom3.gpl,代码行数:12,代码来源:DialogAFConstraintUniversal.cpp

示例3: UpdateData

void DialogAFConstraintSpring::OnDeltaposSpinLimitMaxLength(NMHDR *pNMHDR, LRESULT *pResult) {
	LPNMUPDOWN pNMUpDown = reinterpret_cast<LPNMUPDOWN>(pNMHDR);
	if ( pNMUpDown->iDelta < 0 ) {
		m_maxLength += 1.0f;
	}
	else {
		m_maxLength -= 1.0f;
	}
	UpdateData( FALSE );
	UpdateFile();
	*pResult = 0;
}
开发者ID:Deepfreeze32,项目名称:idtech4cdk,代码行数:12,代码来源:DialogAFConstraintSpring.cpp

示例4: UpdateData

void DialogAFBody::OnDeltaposSpinAnglesRoll( NMHDR *pNMHDR, LRESULT *pResult ) {
	LPNMUPDOWN pNMUpDown = reinterpret_cast<LPNMUPDOWN>( pNMHDR );
	if( pNMUpDown->iDelta < 0 ) {
		cm_angles_roll += 1;
	} else {
		cm_angles_roll -= 1;
	}
	cm_angles_roll = idMath::AngleNormalize360( cm_angles_roll );
	UpdateData( FALSE );
	UpdateFile();
	*pResult = 0;
}
开发者ID:revelator,项目名称:Revelation,代码行数:12,代码来源:DialogAFBody.cpp

示例5: UpdateData

void DialogAFConstraintBallAndSocket::OnDeltaposSpinBasLimitAxisPitch(NMHDR *pNMHDR, LRESULT *pResult) {
	LPNMUPDOWN pNMUpDown = reinterpret_cast<LPNMUPDOWN>(pNMHDR);
	if ( pNMUpDown->iDelta < 0 ) {
		m_limitAxisPitch += 1.0f;
	}
	else {
		m_limitAxisPitch -= 1.0f;
	}
	UpdateData( FALSE );
	UpdateFile();
	*pResult = 0;
}
开发者ID:Kaan88,项目名称:doom3.gpl,代码行数:12,代码来源:DialogAFConstraintBallAndSocket.cpp

示例6: if

void DialogAFConstraintBallAndSocket::OnDeltaposSpinBasLimitPyramidAngle1(NMHDR *pNMHDR, LRESULT *pResult) {
	LPNMUPDOWN pNMUpDown = reinterpret_cast<LPNMUPDOWN>(pNMHDR);
	if ( pNMUpDown->iDelta < 0 ) {
		m_pyramidAngle1 += 1.0f;
	}
	else if ( m_pyramidAngle1 > 0.0f ) {
		m_pyramidAngle1 -= 1.0f;
	}
	UpdateData( FALSE );
	UpdateFile();
	*pResult = 0;
}
开发者ID:Kaan88,项目名称:doom3.gpl,代码行数:12,代码来源:DialogAFConstraintBallAndSocket.cpp

示例7: if

void DialogAFConstraintUniversal::OnDeltaposSpinUniversalLimitPyramidAngle2(NMHDR *pNMHDR, LRESULT *pResult) {
	LPNMUPDOWN pNMUpDown = reinterpret_cast<LPNMUPDOWN>(pNMHDR);
	if ( pNMUpDown->iDelta < 0 ) {
		m_pyramidAngle2 += 1.0f;
	}
	else if ( m_pyramidAngle2 > 0.0f ) {
		m_pyramidAngle2 -= 1.0f;
	}
	UpdateData( FALSE );
	UpdateFile();
	*pResult = 0;
}
开发者ID:AndreiBarsan,项目名称:doom3.gpl,代码行数:12,代码来源:DialogAFConstraintUniversal.cpp

示例8: ZeroMemory

void EM_UserInfo::SetGroupName(LPCTSTR lpszGroupName)
{
	if (strlen(lpszGroupName) >= DISPLAY_NAME)
	{
		// Badly error
		::MessageBox(0, "Group Name too long", 0, 0);
	}
	ZeroMemory(m_szGroupName, DISPLAY_NAME);
	strcpy(m_szGroupName, lpszGroupName);
	// 写进文件
	UpdateFile();
}
开发者ID:test2zhou,项目名称:MyIM,代码行数:12,代码来源:EM_UserInfo.cpp

示例9: UpdateFile

void DialogAFProperties::OnBnClickedCheckSelfcollision()
{
    UpdateFile();
    if ( file && file->bodies.Num() && MessageBox( "Apply to all bodies ?", "Self Collision", MB_YESNO | MB_ICONQUESTION ) == IDYES )
    {
        for ( int i = 0; i < file->bodies.Num(); i++ )
        {
            file->bodies[i]->selfCollision = file->selfCollision;
        }
        bodyDlg->LoadFile( file );
    }
}
开发者ID:revelator,项目名称:Revelator-Doom3,代码行数:12,代码来源:DialogAFProperties.cpp

示例10: strcpy

EM_UserInfo::EM_UserInfo(char *szDisplayName, char *szGender, char *szGroupName)
{
	char buf[1024];
	// 把用户信息COPY过来
	strcpy(m_szDisplayName, szDisplayName);
	strcpy(m_szGender, szGender);
	strcpy(m_szGroupName, szGroupName);
	GetLocalHostName(buf);
	strcpy(m_szHostName, buf);
	GetLocalHostIP(buf);
	strcpy(m_szIP, buf);
	// 写进文件
	UpdateFile();
}
开发者ID:test2zhou,项目名称:MyIM,代码行数:14,代码来源:EM_UserInfo.cpp

示例11: UpdateFile

//---------------------------------------------------------------------------
TMYIniFile::~TMYIniFile()
{
  try
  {
    if( bChange )
      UpdateFile();
  }
  catch(...)
  {
    IniError = 1;
    bAnyError = true;
  }
  delete list;
  list = NULL;
}
开发者ID:MaxBelkov,项目名称:visualsyslog,代码行数:16,代码来源:inif.cpp

示例12: tps

// ビデオ入力ボタン
void CRsfSimpleForm::OnButtonVideo() 
{
	// TODO: この位置にコントロール通知ハンドラ用のコードを追加してください

	/// ビデオファイルの特定
	CTPsetup tps(theApp.m_strDataFolder);
	tps.SetCallerId(m_strSenderId);
	CString strFile = tps.RsfVideoFileName(_T("$"));

	/// 画面の表示
	CRsfVideoDialog dlg;
	dlg.SetFile(strFile);
	if (dlg.DoModal() == IDOK) {
		/// RSFファイルの更新
		if (!UpdateFile()) return;
		/// 画面の更新
		UpdateForm();
	}
}
开发者ID:yamamoto123,项目名称:tapur_open,代码行数:20,代码来源:RsfSimpleForm.cpp

示例13: ProcessUpdate

int	ProcessUpdate(AGPS_CONFIG_T *AGPSConfig, int ConfigCount)
{
	int	i;
	int	UpdateCount = 0;

	for(i = 0; i < ConfigCount; i++)	{
		if(GetFileWithWGET(AGPSConfig[i]) == SUCCESS)	{
			if(UpdateFile(AGPSConfig[i]) == SUCCESS)	{
				UpdateCount++;
			}
		}
	}
//	NotifyUpdateInformation();
	
	if(UpdateCount > 0)	{
		NotifyUpdateInformation();
	}

	return	UpdateCount;
}
开发者ID:k2b3d,项目名称:tconsrc,代码行数:20,代码来源:UpdateAGPSFiles.cpp

示例14: UpdateFile

/*===========================================================================
 *
 * Class CSrLoadDlg Event - void OnDblclkFileList (pNMHDR, pResult);
 *
 *=========================================================================*/
void CSrLoadDlg::OnDblclkFileList (NMHDR* pNMHDR, LRESULT* pResult) 
{
	srloaddlgfileinfo_t*	pFileData;
	POSITION				ItemPos;
	int						ListIndex;
	   
		/* Get the first, and only, selected item */
	ItemPos = m_FileList.GetFirstSelectedItemPosition();
	if (ItemPos == NULL) return;
	ListIndex = m_FileList.GetNextSelectedItem(ItemPos);
	if (ListIndex < 0) return;
	pFileData = (srloaddlgfileinfo_t *) m_FileList.GetItemData(ListIndex);
	if (pFileData == NULL) return;

		/* Set the check state */
	if (m_FileList.GetCheck(ListIndex)) 
	{
		m_FileList.SetCheck(ListIndex, FALSE);

		if (pFileData->IsActive && !m_IsFileNew)
		{
			pFileData->IsActive = false; 
			m_pLastActiveFile = NULL;
		}
	}
	else 
	{
		m_FileList.SetCheck(ListIndex, TRUE);

		if (m_pLastActiveFile == NULL && !pFileData->IsMaster && !m_IsFileNew) 
		{
			pFileData->IsActive = true;
			m_pLastActiveFile = pFileData;
		}
	}

	UpdateFile(ListIndex, pFileData);
	*pResult = 0;
}
开发者ID:Vuher,项目名称:skyedit,代码行数:44,代码来源:SrLoadDlg.cpp

示例15: wxMessageBox

bool MainFrame::CheckForUpdates()
{
#ifndef __WXMSW__
	int ret = wxMessageBox(_("Online updates are available on Windows only. Please browse this site for updates.\n\nhttps://sourceforge.net/projects/vbam/files/latest/download"),
	                       _("Online Update"), wxOK | wxICON_INFORMATION);
	return true;
#endif
	bool new_update_available = false;
	wxString update_url = CheckForUpdates(_T("sourceforge.net"), _T("/projects/vbam/files/latest/download"));

	if (!update_url.IsEmpty())
	{
		wxFileConfig* cfg = wxGetApp().cfg;
		wxString update_filename = update_url.AfterLast('/');

		if (gopts.last_updated_filename != update_filename)
		{
			new_update_available = true;
			int ret = wxMessageBox(_("A new update is available. To update, VisualBoyAdvance-M must be Run as administrator. Would you like to download and update VisualBoyAdvance-M?\n\nhttps://sourceforge.net/projects/vbam/files/latest/download"),
			                       _("New Update Available"), wxYES_NO | wxICON_QUESTION);

			if (ret == wxYES)
			{
				wxURL url(update_url);
				UpdateFile(url.GetServer(), url.GetPath());
				ret = wxMessageBox(_("The update has been downloaded and installed.  Please restart VisualBoyAdvance-M."),
				                   _("Update Downloaded"), wxOK | wxICON_INFORMATION);
				gopts.last_updated_filename = update_filename;
				cfg->Write(wxT("General/LastUpdatedFileName"), gopts.last_updated_filename);
			}
		}

		gopts.last_update = wxDateTime::Now().GetTicks();
		cfg->Write(wxT("General/LastUpdated"), gopts.last_update);
		cfg->Flush();
	}

	return new_update_available;
}
开发者ID:MrSwiss,项目名称:visualboyadvance-m,代码行数:39,代码来源:wxvbam.cpp


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