📄 regpath.cpp
字号:
//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of the BCGControlBar Library
// Copyright (C) 1998-2000 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions
// of the accompanying license agreement.
//*******************************************************************************
#include "stdafx.h"
#include "RegPath.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
CString BCGPGetRegPath (LPCTSTR lpszPostFix, LPCTSTR lpszProfileName)
{
ASSERT (lpszPostFix != NULL);
CString strReg;
if (lpszProfileName != NULL &&
lpszProfileName [0] != 0)
{
strReg = lpszProfileName;
}
else
{
CWinApp* pApp = AfxGetApp ();
ASSERT_VALID (pApp);
ASSERT (AfxGetApp()->m_pszRegistryKey != NULL);
ASSERT (AfxGetApp()->m_pszProfileName != NULL);
strReg = _T("SOFTWARE\\");
CString strRegKey = pApp->m_pszRegistryKey;
if (!strRegKey.IsEmpty ())
{
strReg += strRegKey;
strReg += _T("\\");
}
strReg += pApp->m_pszProfileName;
strReg += _T("\\");
strReg += lpszPostFix ;
strReg += _T("\\");
}
return strReg;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -