mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-11 17:37:22 +10:00
Use C++17 by default
Plus C++ standard conformance fixes.
This commit is contained in:
@@ -165,6 +165,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -199,6 +201,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -232,6 +236,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -266,6 +272,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -302,6 +310,8 @@
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -336,6 +346,8 @@
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
||||
@@ -84,6 +84,8 @@
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -105,6 +107,8 @@
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -128,6 +132,8 @@
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
||||
@@ -88,7 +88,7 @@ LRESULT CALLBACK CExplorerBHO::SubclassTreeProc( HWND hWnd, UINT uMsg, WPARAM wP
|
||||
CComPtr<IShellView> pView;
|
||||
if (pThis->m_pBrowser && SUCCEEDED(pThis->m_pBrowser->QueryActiveShellView(&pView)))
|
||||
{
|
||||
CComQIPtr<IFolderView> pView2=pView;
|
||||
CComQIPtr<IFolderView> pView2(pView);
|
||||
|
||||
CComPtr<IPersistFolder2> pFolder;
|
||||
CAbsolutePidl pidl2;
|
||||
@@ -319,7 +319,7 @@ bool CExplorerBHO::GetStatusText( wchar_t *buf, int size, const wchar_t *oldText
|
||||
CComPtr<IShellView> pView;
|
||||
if (m_pBrowser && SUCCEEDED(m_pBrowser->QueryActiveShellView(&pView)))
|
||||
{
|
||||
CComQIPtr<IFolderView> pView2=pView;
|
||||
CComQIPtr<IFolderView> pView2(pView);
|
||||
|
||||
CComPtr<IPersistFolder2> pFolder;
|
||||
if (pView2 && SUCCEEDED(pView2->GetFolder(IID_IPersistFolder2,(void**)&pFolder)))
|
||||
@@ -332,7 +332,7 @@ bool CExplorerBHO::GetStatusText( wchar_t *buf, int size, const wchar_t *oldText
|
||||
PITEMID_CHILD child;
|
||||
if (SUCCEEDED(pView2->Items(SVGIO_SELECTION,IID_IEnumIDList,(void**)&pEnum)) && pEnum && pEnum->Next(1,&child,NULL)==S_OK)
|
||||
{
|
||||
CComQIPtr<IShellFolder> pFolder2=pFolder;
|
||||
CComQIPtr<IShellFolder> pFolder2(pFolder);
|
||||
if (pFolder2)
|
||||
{
|
||||
CComPtr<IQueryInfo> pQueryInfo;
|
||||
@@ -431,12 +431,12 @@ void CExplorerBHO::GetFileSize( wchar_t *buf, int size )
|
||||
int time0=GetTickCount();
|
||||
if (m_pBrowser && SUCCEEDED(m_pBrowser->QueryActiveShellView(&pView)))
|
||||
{
|
||||
CComQIPtr<IFolderView> pView2=pView;
|
||||
CComQIPtr<IFolderView> pView2(pView);
|
||||
CComPtr<IPersistFolder2> pFolder;
|
||||
CAbsolutePidl pidl;
|
||||
if (pView2 && SUCCEEDED(pView2->GetFolder(IID_IPersistFolder2,(void**)&pFolder)) && SUCCEEDED(pFolder->GetCurFolder(&pidl)))
|
||||
{
|
||||
CComQIPtr<IShellFolder2> pFolder2=pFolder;
|
||||
CComQIPtr<IShellFolder2> pFolder2(pFolder);
|
||||
UINT type=SVGIO_SELECTION;
|
||||
int count, selCount;
|
||||
if (SUCCEEDED(pView2->ItemCount(SVGIO_ALLVIEW,&count)))
|
||||
@@ -1414,7 +1414,7 @@ STDMETHODIMP CExplorerBHO::OnDocumentComplete( IDispatch *pDisp, VARIANT *URL )
|
||||
m_pBrowser->QueryActiveShellView(&pView);
|
||||
if (pView)
|
||||
{
|
||||
CComQIPtr<IFolderView> pFolderView=pView;
|
||||
CComQIPtr<IFolderView> pFolderView(pView);
|
||||
if (pFolderView)
|
||||
{
|
||||
if (GetSettingBool(L"ShowHeaders"))
|
||||
@@ -1425,7 +1425,7 @@ STDMETHODIMP CExplorerBHO::OnDocumentComplete( IDispatch *pDisp, VARIANT *URL )
|
||||
// The code to turn on the headers is borrowed from the Explorer7Fixes project under the terms of the MIT license:
|
||||
// http://github.com/ijprest/Explorer7Fixes - Copyright (c) 2010 Ian Prest
|
||||
|
||||
CComQIPtr<IFolderView2> pView2=pFolderView;
|
||||
CComQIPtr<IFolderView2> pView2(pFolderView);
|
||||
if (pView2)
|
||||
{
|
||||
// Turn on the sort header!
|
||||
@@ -1474,7 +1474,7 @@ STDMETHODIMP CExplorerBHO::OnDocumentComplete( IDispatch *pDisp, VARIANT *URL )
|
||||
}
|
||||
if (GetSettingBool(L"HideScrollTip"))
|
||||
{
|
||||
CComQIPtr<IFolderViewOptions> pOptions=m_pBrowser;
|
||||
CComQIPtr<IFolderViewOptions> pOptions(m_pBrowser);
|
||||
if (pOptions)
|
||||
pOptions->SetFolderViewOptions(FVO_NOSCROLLTIPS,FVO_NOSCROLLTIPS);
|
||||
}
|
||||
|
||||
@@ -440,7 +440,7 @@ void CBandWindow::SendEmail( void )
|
||||
if (FAILED(m_pBrowser->QueryActiveShellView(&pView))) return;
|
||||
|
||||
// check if there is anything selected
|
||||
CComQIPtr<IFolderView> pView2=pView;
|
||||
CComQIPtr<IFolderView> pView2(pView);
|
||||
int count;
|
||||
if (pView2 && SUCCEEDED(pView2->ItemCount(SVGIO_SELECTION,&count)) && count==0)
|
||||
return;
|
||||
@@ -449,7 +449,7 @@ void CBandWindow::SendEmail( void )
|
||||
CComPtr<IDataObject> pDataObj;
|
||||
if (FAILED(pView->GetItemObject(SVGIO_SELECTION,IID_IDataObject,(void**)&pDataObj)))
|
||||
return;
|
||||
CComQIPtr<IDataObjectAsyncCapability> pAsync=pDataObj;
|
||||
CComQIPtr<IDataObjectAsyncCapability> pAsync(pDataObj);
|
||||
if (pAsync)
|
||||
pAsync->SetAsyncMode(FALSE);
|
||||
|
||||
@@ -494,7 +494,7 @@ void CBandWindow::SendToZip( void )
|
||||
if (FAILED(m_pBrowser->QueryActiveShellView(&pView))) return;
|
||||
|
||||
// check if there is anything selected
|
||||
CComQIPtr<IFolderView> pView2=pView;
|
||||
CComQIPtr<IFolderView> pView2(pView);
|
||||
|
||||
CComPtr<IShellFolder> pFolder;
|
||||
if (FAILED(pView2->GetFolder(IID_IShellFolder,(void**)&pFolder)) || !pFolder) return;
|
||||
@@ -507,7 +507,7 @@ void CBandWindow::SendToZip( void )
|
||||
CComPtr<IDataObject> pDataObj;
|
||||
if (FAILED(pView->GetItemObject(SVGIO_SELECTION,IID_IDataObject,(void**)&pDataObj)))
|
||||
return;
|
||||
CComQIPtr<IDataObjectAsyncCapability> pAsync=pDataObj;
|
||||
CComQIPtr<IDataObjectAsyncCapability> pAsync(pDataObj);
|
||||
if (pAsync)
|
||||
pAsync->SetAsyncMode(FALSE);
|
||||
|
||||
@@ -515,7 +515,7 @@ void CBandWindow::SendToZip( void )
|
||||
CComPtr<IDropTarget> pDropTarget;
|
||||
if (SUCCEEDED(CoCreateInstance(CLSID_SendToZip,NULL,CLSCTX_ALL,IID_IDropTarget,(void **)&pDropTarget)))
|
||||
{
|
||||
CComQIPtr<IObjectWithSite> pDropWithSite=pDropTarget;
|
||||
CComQIPtr<IObjectWithSite> pDropWithSite(pDropTarget);
|
||||
if (pDropWithSite)
|
||||
{
|
||||
CComObject<CSendToZipHelper> *pHelper;
|
||||
@@ -568,7 +568,7 @@ void CBandWindow::NewFolder( void )
|
||||
{
|
||||
CComPtr<IShellView> pView;
|
||||
if (FAILED(m_pBrowser->QueryActiveShellView(&pView))) return;
|
||||
CComQIPtr<IFolderView> pView2=pView;
|
||||
CComQIPtr<IFolderView> pView2(pView);
|
||||
if (!pView2) return;
|
||||
|
||||
{
|
||||
@@ -705,7 +705,7 @@ void CBandWindow::ExecuteCommandFile( const wchar_t *pText )
|
||||
CComPtr<IShellView> pView;
|
||||
if (SUCCEEDED(m_pBrowser->QueryActiveShellView(&pView)))
|
||||
{
|
||||
CComQIPtr<IFolderView> pView2=pView;
|
||||
CComQIPtr<IFolderView> pView2(pView);
|
||||
if (!pView2) return;
|
||||
CComPtr<IShellFolder> pFolder;
|
||||
if (FAILED(pView2->GetFolder(IID_IShellFolder,(void**)&pFolder)) || !pFolder) return;
|
||||
@@ -785,7 +785,7 @@ void CBandWindow::ExecuteCustomCommand( const wchar_t *pCommand )
|
||||
{
|
||||
CComPtr<IPersistFolder2> pFolder;
|
||||
CAbsolutePidl pidl;
|
||||
CComQIPtr<IFolderView> pView2=pView;
|
||||
CComQIPtr<IFolderView> pView2(pView);
|
||||
if (pView2 && SUCCEEDED(pView2->GetFolder(IID_IPersistFolder2,(void**)&pFolder)) && SUCCEEDED(pFolder->GetCurFolder(&pidl)))
|
||||
{
|
||||
// get current path
|
||||
@@ -900,13 +900,13 @@ void CBandWindow::ExecuteCustomCommand( const wchar_t *pCommand )
|
||||
}
|
||||
else if (_wcsicmp(exe,L"sortby")==0)
|
||||
{
|
||||
CComQIPtr<IFolderView2> pView2=pView;
|
||||
CComQIPtr<IFolderView2> pView2(pView);
|
||||
if (pView2)
|
||||
ViewByProperty(pView2,params,false);
|
||||
}
|
||||
else if (_wcsicmp(exe,L"groupby")==0)
|
||||
{
|
||||
CComQIPtr<IFolderView2> pView2=pView;
|
||||
CComQIPtr<IFolderView2> pView2(pView);
|
||||
if (pView2)
|
||||
ViewByProperty(pView2,params,true);
|
||||
}
|
||||
@@ -1128,7 +1128,7 @@ LRESULT CBandWindow::OnCommand( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& b
|
||||
CComPtr<IShellView> pView;
|
||||
if (SUCCEEDED(m_pBrowser->QueryActiveShellView(&pView)))
|
||||
{
|
||||
CComQIPtr<IFolderView2> pView2=pView;
|
||||
CComQIPtr<IFolderView2> pView2(pView);
|
||||
if (pView2) pView2->DoRename();
|
||||
}
|
||||
return TRUE;
|
||||
@@ -1283,7 +1283,7 @@ LRESULT CBandWindow::OnCommand( UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& b
|
||||
if (FAILED(m_pBrowser->QueryActiveShellView(&pView)))
|
||||
return TRUE;
|
||||
|
||||
CComQIPtr<IFolderView2> pView2=pView;
|
||||
CComQIPtr<IFolderView2> pView2(pView);
|
||||
if (!pView2) return TRUE;
|
||||
|
||||
// ID_DESELECT
|
||||
@@ -1730,7 +1730,7 @@ void CBandWindow::UpdateToolbar( void )
|
||||
m_pBrowser->QueryActiveShellView(&pView);
|
||||
if (pView)
|
||||
{
|
||||
CComQIPtr<IFolderView> pView2=pView;
|
||||
CComQIPtr<IFolderView> pView2(pView);
|
||||
if (pView2)
|
||||
{
|
||||
CComPtr<IPersistFolder2> pFolder;
|
||||
|
||||
@@ -149,6 +149,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>shlwapi.lib;comctl32.lib;psapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
@@ -168,6 +170,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>shlwapi.lib;comctl32.lib;psapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
@@ -186,6 +190,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>shlwapi.lib;comctl32.lib;psapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
@@ -206,6 +212,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>shlwapi.lib;comctl32.lib;psapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
@@ -226,6 +234,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>shlwapi.lib;comctl32.lib;psapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
@@ -246,6 +256,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>shlwapi.lib;comctl32.lib;psapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
|
||||
@@ -158,6 +158,8 @@
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -191,6 +193,8 @@
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -223,6 +227,8 @@
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -256,6 +262,8 @@
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -290,6 +298,8 @@
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -322,6 +332,8 @@
|
||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
||||
@@ -16,7 +16,7 @@ bool CreateFakeFolder( const wchar_t *source, const wchar_t *fname )
|
||||
HRESULT hr=pLink.CoCreateInstance(CLSID_ShellLink);
|
||||
if (FAILED(hr)) return false;
|
||||
pLink->SetPath(source);
|
||||
CComQIPtr<IPersistFile> pFile=pLink;
|
||||
CComQIPtr<IPersistFile> pFile(pLink);
|
||||
if (!pFile) return false;
|
||||
hr=pFile->Save(path,TRUE);
|
||||
if (FAILED(hr)) return false;
|
||||
|
||||
@@ -344,7 +344,7 @@ LRESULT CLanguageSettingsDlg::OnInitDialog( UINT uMsg, WPARAM wParam, LPARAM lPa
|
||||
m_Tooltip.Create(TOOLTIPS_CLASS,m_hWnd,NULL,NULL,WS_POPUP|TTS_NOPREFIX);
|
||||
TOOLINFO tool={sizeof(tool),TTF_SUBCLASS|TTF_IDISHWND,m_hWnd,'CLSH'};
|
||||
tool.uId=(UINT_PTR)list.m_hWnd;
|
||||
tool.lpszText=L"";
|
||||
tool.lpszText=(LPWSTR)L"";
|
||||
m_Tooltip.SendMessage(TTM_ADDTOOL,0,(LPARAM)&tool);
|
||||
|
||||
return TRUE;
|
||||
@@ -378,7 +378,7 @@ LRESULT CLanguageSettingsDlg::OnCheckUpdates( WORD wNotifyCode, WORD wID, HWND h
|
||||
CWindow list=GetDlgItem(IDC_LISTLANGUAGE);
|
||||
for (int idx=0;idx<(int)m_LanguageIDs.size();idx++)
|
||||
{
|
||||
const wchar_t *name=idx>0?m_LanguageIDs[idx].name:L"";
|
||||
const wchar_t *name=idx>0?m_LanguageIDs[idx].name.GetString():L"";
|
||||
if (_wcsicmp(language,name)==0)
|
||||
{
|
||||
ListView_SetItemState(list,idx,LVIS_SELECTED|LVIS_FOCUSED,LVIS_SELECTED|LVIS_FOCUSED);
|
||||
@@ -403,7 +403,7 @@ LRESULT CLanguageSettingsDlg::OnSelChange( int idCtrl, LPNMHDR pnmh, BOOL& bHand
|
||||
int idx=ListView_GetNextItem(list,-1,LVNI_SELECTED);
|
||||
if (idx<0) return 0;
|
||||
|
||||
const wchar_t *name=idx>0?m_LanguageIDs[idx].name:L"";
|
||||
const wchar_t *name=idx>0?m_LanguageIDs[idx].name.GetString():L"";
|
||||
CSettingsLockWrite lock;
|
||||
CComVariant val(name);
|
||||
if (m_pSetting->value!=val)
|
||||
@@ -499,7 +499,7 @@ void CLanguageSettingsDlg::SetGroup( CSetting *pGroup )
|
||||
CWindow list=GetDlgItem(IDC_LISTLANGUAGE);
|
||||
for (int idx=0;idx<(int)m_LanguageIDs.size();idx++)
|
||||
{
|
||||
const wchar_t *name=idx>0?m_LanguageIDs[idx].name:L"";
|
||||
const wchar_t *name=idx>0?m_LanguageIDs[idx].name.GetString():L"";
|
||||
if (_wcsicmp(language,name)==0)
|
||||
{
|
||||
ListView_SetItemState(list,idx,LVIS_SELECTED|LVIS_FOCUSED,LVIS_SELECTED|LVIS_FOCUSED);
|
||||
|
||||
@@ -93,6 +93,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
@@ -105,6 +107,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
@@ -118,6 +122,8 @@
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Lib>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
@@ -134,6 +140,8 @@
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -732,7 +732,7 @@ CString CSettingsManager::LoadSettingsXml( const wchar_t *fname )
|
||||
DWORD ver=0;
|
||||
{
|
||||
CComVariant value;
|
||||
CComQIPtr<IXMLDOMElement> element=node;
|
||||
CComQIPtr<IXMLDOMElement> element(node);
|
||||
if (!element || element->getAttribute(CComBSTR(L"component"),&value)!=S_OK || value.vt!=VT_BSTR)
|
||||
return CString(L"XML parsing error: The tag 'Settings' is missing the 'component' attribute.");
|
||||
if (_wcsicmp(value.bstrVal,m_CompName)!=0)
|
||||
@@ -797,7 +797,7 @@ CString CSettingsManager::LoadSettingsXml( const wchar_t *fname )
|
||||
}
|
||||
else
|
||||
{
|
||||
CComQIPtr<IXMLDOMElement> element=child;
|
||||
CComQIPtr<IXMLDOMElement> element(child);
|
||||
if (element)
|
||||
{
|
||||
CComVariant value;
|
||||
|
||||
@@ -1223,7 +1223,7 @@ bool BrowseLinkHelper( HWND parent, wchar_t *text )
|
||||
CComPtr<IFileOpenDialog> pDialog;
|
||||
if (FAILED(pDialog.CoCreateInstance(CLSID_FileOpenDialog,NULL,CLSCTX_INPROC_SERVER)))
|
||||
return false;
|
||||
CComQIPtr<IFileDialogCustomize> pCustomize=pDialog;
|
||||
CComQIPtr<IFileDialogCustomize> pCustomize(pDialog);
|
||||
if (!pCustomize)
|
||||
return false;
|
||||
|
||||
|
||||
@@ -34,16 +34,16 @@ public:
|
||||
|
||||
void Create( HWND hWndParent, DLGTEMPLATE *pTemplate )
|
||||
{
|
||||
ATLASSUME(m_hWnd == NULL);
|
||||
if (!m_thunk.Init(NULL,NULL))
|
||||
ATLASSUME(this->m_hWnd == NULL);
|
||||
if (!this->m_thunk.Init(NULL,NULL))
|
||||
{
|
||||
SetLastError(ERROR_OUTOFMEMORY);
|
||||
return;
|
||||
}
|
||||
|
||||
_AtlWinModule.AddCreateWndData(&m_thunk.cd,(CDialogImplBaseT<CWindow>*)this);
|
||||
_AtlWinModule.AddCreateWndData(&this->m_thunk.cd,(CDialogImplBaseT<CWindow>*)this);
|
||||
HWND hWnd=::CreateDialogIndirect(_AtlBaseModule.GetResourceInstance(),pTemplate,hWndParent,T::StartDialogProc);
|
||||
ATLASSUME(m_hWnd==hWnd);
|
||||
ATLASSUME(this->m_hWnd==hWnd);
|
||||
}
|
||||
|
||||
protected:
|
||||
@@ -110,13 +110,13 @@ protected:
|
||||
pThis->GetWindowRect(&rc);
|
||||
m_WindowSize.cx=rc.right-rc.left;
|
||||
m_WindowSize.cy=rc.bottom-rc.top;
|
||||
for (std::vector<Control>::iterator it=m_Controls.begin();it!=m_Controls.end();++it)
|
||||
for (auto& it : m_Controls)
|
||||
{
|
||||
it->hwnd=pThis->GetDlgItem(it->id);
|
||||
Assert(it->hwnd);
|
||||
if (!it->hwnd) continue;
|
||||
::GetWindowRect(it->hwnd,&it->rect0);
|
||||
::MapWindowPoints(NULL,m_hWnd,(POINT*)&it->rect0,2);
|
||||
it.hwnd=pThis->GetDlgItem(it.id);
|
||||
Assert(it.hwnd);
|
||||
if (!it.hwnd) continue;
|
||||
::GetWindowRect(it.hwnd,&it.rect0);
|
||||
::MapWindowPoints(NULL,this->m_hWnd,(POINT*)&it.rect0,2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,22 +129,22 @@ protected:
|
||||
int dy=rc.bottom-m_ClientSize.cy;
|
||||
int dx2=dx/2;
|
||||
int dy2=dy/2;
|
||||
for (std::vector<Control>::iterator it=m_Controls.begin();it!=m_Controls.end();++it)
|
||||
for (const auto& it : m_Controls)
|
||||
{
|
||||
if (!it->hwnd) continue;
|
||||
int x1=it->rect0.left;
|
||||
int y1=it->rect0.top;
|
||||
int x2=it->rect0.right;
|
||||
int y2=it->rect0.bottom;
|
||||
if (it->flags&MOVE_LEFT) x1+=dx;
|
||||
else if (it->flags&MOVE_LEFT2) x1+=dx2;
|
||||
if (it->flags&MOVE_TOP) y1+=dy;
|
||||
else if (it->flags&MOVE_TOP2) y1+=dy2;
|
||||
if (it->flags&MOVE_RIGHT) x2+=dx;
|
||||
else if (it->flags&MOVE_RIGHT2) x2+=dx2;
|
||||
if (it->flags&MOVE_BOTTOM) y2+=dy;
|
||||
else if (it->flags&MOVE_BOTTOM2) y2+=dy2;
|
||||
::SetWindowPos(it->hwnd,NULL,x1,y1,x2-x1,y2-y1,SWP_NOZORDER|SWP_NOCOPYBITS);
|
||||
if (!it.hwnd) continue;
|
||||
int x1=it.rect0.left;
|
||||
int y1=it.rect0.top;
|
||||
int x2=it.rect0.right;
|
||||
int y2=it.rect0.bottom;
|
||||
if (it.flags&MOVE_LEFT) x1+=dx;
|
||||
else if (it.flags&MOVE_LEFT2) x1+=dx2;
|
||||
if (it.flags&MOVE_TOP) y1+=dy;
|
||||
else if (it.flags&MOVE_TOP2) y1+=dy2;
|
||||
if (it.flags&MOVE_RIGHT) x2+=dx;
|
||||
else if (it.flags&MOVE_RIGHT2) x2+=dx2;
|
||||
if (it.flags&MOVE_BOTTOM) y2+=dy;
|
||||
else if (it.flags&MOVE_BOTTOM2) y2+=dy2;
|
||||
::SetWindowPos(it.hwnd,NULL,x1,y1,x2-x1,y2-y1,SWP_NOZORDER|SWP_NOCOPYBITS);
|
||||
}
|
||||
if (m_Gripper.m_hWnd)
|
||||
{
|
||||
@@ -170,7 +170,7 @@ protected:
|
||||
|
||||
void GetStoreRect( RECT &rc )
|
||||
{
|
||||
GetWindowRect(&rc);
|
||||
this->GetWindowRect(&rc);
|
||||
rc.right-=rc.left+m_WindowSize.cx;
|
||||
rc.bottom-=rc.top+m_WindowSize.cy;
|
||||
}
|
||||
@@ -178,7 +178,7 @@ protected:
|
||||
void GetPlacementRect( RECT &rc )
|
||||
{
|
||||
WINDOWPLACEMENT placement;
|
||||
GetWindowPlacement(&placement);
|
||||
this->GetWindowPlacement(&placement);
|
||||
rc=placement.rcNormalPosition;
|
||||
rc.right-=rc.left+m_WindowSize.cx;
|
||||
rc.bottom-=rc.top+m_WindowSize.cy;
|
||||
@@ -186,8 +186,8 @@ protected:
|
||||
|
||||
void SetStoreRect( const RECT &rc )
|
||||
{
|
||||
SetWindowPos(NULL,rc.left,rc.top,m_WindowSize.cx+rc.right,m_WindowSize.cy+rc.bottom,SWP_NOZORDER|SWP_NOCOPYBITS);
|
||||
SendMessage(DM_REPOSITION);
|
||||
this->SetWindowPos(NULL,rc.left,rc.top,m_WindowSize.cx+rc.right,m_WindowSize.cy+rc.bottom,SWP_NOZORDER|SWP_NOCOPYBITS);
|
||||
this->SendMessage(DM_REPOSITION);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@@ -19,5 +19,5 @@ public:
|
||||
private:
|
||||
HINSTANCE m_hInstance;
|
||||
|
||||
static BOOL CALLBACK CStringSet::EnumResNameProc( HMODULE hModule, LPCTSTR lpszType, LPTSTR lpszName, LONG_PTR lParam );
|
||||
static BOOL CALLBACK EnumResNameProc( HMODULE hModule, LPCTSTR lpszType, LPTSTR lpszName, LONG_PTR lParam );
|
||||
};
|
||||
|
||||
@@ -62,6 +62,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -83,6 +85,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
||||
@@ -60,6 +60,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
@@ -78,6 +80,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
|
||||
@@ -156,19 +156,19 @@ LRESULT CMetroColorViewer::OnInitDialog( UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||
|
||||
HWND list=GetDlgItem(IDC_LIST1);
|
||||
{
|
||||
LVCOLUMN column={LVCF_WIDTH|LVCF_TEXT,0,380,L"Name"};
|
||||
LVCOLUMN column={LVCF_WIDTH|LVCF_TEXT,0,380,(LPWSTR)L"Name"};
|
||||
ListView_InsertColumn(list,0,&column);
|
||||
}
|
||||
{
|
||||
LVCOLUMN column={LVCF_WIDTH|LVCF_TEXT,0,50,L"#"};
|
||||
LVCOLUMN column={LVCF_WIDTH|LVCF_TEXT,0,50,(LPWSTR)L"#"};
|
||||
ListView_InsertColumn(list,1,&column);
|
||||
}
|
||||
{
|
||||
LVCOLUMN column={LVCF_WIDTH|LVCF_TEXT,0,100,L"Code"};
|
||||
LVCOLUMN column={LVCF_WIDTH|LVCF_TEXT,0,100,(LPWSTR)L"Code"};
|
||||
ListView_InsertColumn(list,2,&column);
|
||||
}
|
||||
{
|
||||
LVCOLUMN column={LVCF_WIDTH|LVCF_TEXT,0,100,L"Color"};
|
||||
LVCOLUMN column={LVCF_WIDTH|LVCF_TEXT,0,100,(LPWSTR)L"Color"};
|
||||
ListView_InsertColumn(list,3,&column);
|
||||
}
|
||||
int order[]={1,0,2,3};
|
||||
|
||||
@@ -215,7 +215,7 @@ static void WriteFolder( FILE *f, const wchar_t *path, int tabs, bool bRecursive
|
||||
wchar_t args[256];
|
||||
if (FAILED(pLink->GetArguments(args,_countof(args))))
|
||||
args[0]=0;
|
||||
CComQIPtr<IPropertyStore> pStore=pLink;
|
||||
CComQIPtr<IPropertyStore> pStore(pLink);
|
||||
CString appid;
|
||||
if (pStore)
|
||||
{
|
||||
@@ -647,8 +647,8 @@ static void WriteLogFile( FILE *f )
|
||||
{
|
||||
CComString pName;
|
||||
pProgram->GetDisplayName(SIGDN_NORMALDISPLAY,&pName);
|
||||
CString name=pName;
|
||||
CComQIPtr<IShellItem2> pProgram2=pProgram;
|
||||
CString name(pName);
|
||||
CComQIPtr<IShellItem2> pProgram2(pProgram);
|
||||
if (pProgram2)
|
||||
{
|
||||
CComString pVersion;
|
||||
|
||||
@@ -98,6 +98,8 @@
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>comctl32.lib;uxtheme.lib;dwmapi.lib;winmm.lib;htmlhelp.lib;psapi.lib;version.lib;Secur32.lib;Netapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
@@ -116,6 +118,8 @@
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_UNICODE;UNICODE;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -137,6 +141,8 @@
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>comctl32.lib;uxtheme.lib;dwmapi.lib;winmm.lib;htmlhelp.lib;psapi.lib;version.lib;Secur32.lib;Netapi32.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
@@ -157,6 +163,8 @@
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_UNICODE;UNICODE;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "stdafx.h"
|
||||
#include <filesystem>
|
||||
namespace fs = std::experimental::filesystem;
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
static void CopyRegKey(HKEY root, const wchar_t* srcKey, const wchar_t* dstKey)
|
||||
{
|
||||
|
||||
@@ -143,6 +143,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -164,6 +166,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -184,6 +188,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -206,6 +212,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -229,6 +237,8 @@
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -252,6 +262,8 @@
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
||||
@@ -320,7 +320,7 @@ bool CMenuContainer::DragOut( int index, bool bApp )
|
||||
|
||||
// force synchronous operation
|
||||
{
|
||||
CComQIPtr<IDataObjectAsyncCapability> pAsync=pDataObj;
|
||||
CComQIPtr<IDataObjectAsyncCapability> pAsync(pDataObj);
|
||||
if (pAsync)
|
||||
pAsync->SetAsyncMode(FALSE);
|
||||
}
|
||||
|
||||
@@ -270,7 +270,7 @@ static void AddJumpItem( CJumpGroup &group, IUnknown *pUnknown, std::vector<CCom
|
||||
return;
|
||||
}
|
||||
item.type=CJumpItem::TYPE_LINK;
|
||||
CComQIPtr<IPropertyStore> pStore=pLink;
|
||||
CComQIPtr<IPropertyStore> pStore(pLink);
|
||||
if (pStore)
|
||||
{
|
||||
PROPVARIANT val;
|
||||
@@ -309,7 +309,7 @@ static void AddJumpItem( CJumpGroup &group, IUnknown *pUnknown, std::vector<CCom
|
||||
pName.MakeUpper();
|
||||
item.hash=CalcFNVHash(pName);
|
||||
}
|
||||
CComQIPtr<IPropertyStore> pStore=pLink;
|
||||
CComQIPtr<IPropertyStore> pStore(pLink);
|
||||
if (pStore)
|
||||
{
|
||||
CString args=GetPropertyStoreString(pStore,PKEY_Link_Arguments);
|
||||
@@ -374,12 +374,12 @@ bool GetJumplist( const wchar_t *appid, CJumpList &list, int maxCount, int maxHe
|
||||
AddJumpCollection(group,pPinnedList,ignoreItems,ignoreLinks);
|
||||
for (std::vector<CJumpItem>::const_iterator it=group.items.begin();it!=group.items.end();++it)
|
||||
{
|
||||
CComQIPtr<IShellItem> pShellItem=it->pItem;
|
||||
CComQIPtr<IShellItem> pShellItem(it->pItem);
|
||||
if (pShellItem)
|
||||
ignoreItems.push_back(pShellItem);
|
||||
else
|
||||
{
|
||||
CComQIPtr<IShellLink> pLink=it->pItem;
|
||||
CComQIPtr<IShellLink> pLink(it->pItem);
|
||||
if (pLink)
|
||||
{
|
||||
unsigned int hash=CalcLinkHash(pLink);
|
||||
@@ -528,7 +528,7 @@ bool ExecuteJumpItem( const CItemManager::ItemInfo *pAppInfo, const CJumpItem &i
|
||||
appid=pAppInfo->GetAppid();
|
||||
}
|
||||
LOG_MENU(LOG_OPEN,L"Execute Item: name=%s, appid=%s",item.name,appid);*/
|
||||
CComQIPtr<IShellItem> pItem=item.pItem;
|
||||
CComQIPtr<IShellItem> pItem(item.pItem);
|
||||
if (!pItem)
|
||||
return false;
|
||||
/* CComString pName;
|
||||
@@ -618,7 +618,7 @@ bool ExecuteJumpItem( const CItemManager::ItemInfo *pAppInfo, const CJumpItem &i
|
||||
if (item.type==CJumpItem::TYPE_LINK)
|
||||
{
|
||||
// invoke the link through its context menu
|
||||
CComQIPtr<IContextMenu> pMenu=item.pItem;
|
||||
CComQIPtr<IContextMenu> pMenu(item.pItem);
|
||||
if (!pMenu) return false;
|
||||
HRESULT hr;
|
||||
HMENU menu=CreatePopupMenu();
|
||||
|
||||
@@ -814,7 +814,7 @@ static bool ExecuteSysCommand( TMenuID menuCommand )
|
||||
memset(&processInfo,0,sizeof(processInfo));
|
||||
wchar_t exe[_MAX_PATH]=L"%windir%\\system32\\shutdown.exe";
|
||||
DoEnvironmentSubst(exe,_countof(exe));
|
||||
if (CreateProcess(exe,L"shutdown.exe /r /o /t 0",NULL,NULL,FALSE,CREATE_NO_WINDOW,NULL,NULL,&startupInfo,&processInfo))
|
||||
if (CreateProcess(exe,(LPWSTR)L"shutdown.exe /r /o /t 0",NULL,NULL,FALSE,CREATE_NO_WINDOW,NULL,NULL,&startupInfo,&processInfo))
|
||||
{
|
||||
CloseHandle(processInfo.hThread);
|
||||
CloseHandle(processInfo.hProcess);
|
||||
@@ -1072,7 +1072,7 @@ static HRESULT CreatePinLink( PCIDLIST_ABSOLUTE sourcePidl, const wchar_t *name,
|
||||
if (FAILED(hr)) return hr;
|
||||
}
|
||||
|
||||
CComQIPtr<IPersistFile> pFile=pLink;
|
||||
CComQIPtr<IPersistFile> pFile(pLink);
|
||||
if (!pFile) return E_FAIL;
|
||||
hr=pFile->Save(finalPath,TRUE);
|
||||
}
|
||||
@@ -1080,9 +1080,9 @@ static HRESULT CreatePinLink( PCIDLIST_ABSOLUTE sourcePidl, const wchar_t *name,
|
||||
// reopen the link and set the "no new" property. without reopening the original properties are lost
|
||||
CComPtr<IShellLink> pLink;
|
||||
hr=pLink.CoCreateInstance(CLSID_ShellLink);
|
||||
CComQIPtr<IPersistFile> pFile=pLink;
|
||||
CComQIPtr<IPersistFile> pFile(pLink);
|
||||
hr=pFile->Load(finalPath,STGM_READWRITE);
|
||||
CComQIPtr<IPropertyStore> pStore=pLink;
|
||||
CComQIPtr<IPropertyStore> pStore(pLink);
|
||||
if (pStore)
|
||||
{
|
||||
PROPVARIANT val;
|
||||
@@ -1559,7 +1559,7 @@ void CMenuContainer::ActivateItem( int index, TActivateType type, const POINT *p
|
||||
if (bQueryMenu)
|
||||
{
|
||||
SHCreateItemFromIDList(pItemPidl1,IID_IShellItem,(void**)&pItem);
|
||||
CComQIPtr<IShellItem2> pItem2=pItem;
|
||||
CComQIPtr<IShellItem2> pItem2(pItem);
|
||||
if (pItem2 &&
|
||||
((item.categoryHash&CSearchManager::CATEGORY_MASK)!=CSearchManager::CATEGORY_ITEM ||
|
||||
(GetSettingInt(L"CompatibilityFixes")&COMPATIBILITY_UPDATE_ITEMS))) // don't update search items because we don't have the right bind context for them
|
||||
@@ -2698,10 +2698,10 @@ void CMenuContainer::ActivateItem( int index, TActivateType type, const POINT *p
|
||||
StrRetToStr(&str,newPidl,&pPath);
|
||||
CComPtr<IShellLink> pLink;
|
||||
pLink.CoCreateInstance(CLSID_ShellLink);
|
||||
CComQIPtr<IPersistFile> pFile=pLink;
|
||||
CComQIPtr<IPersistFile> pFile(pLink);
|
||||
if (pFile && SUCCEEDED(pFile->Load(pPath,STGM_READWRITE)))
|
||||
{
|
||||
CComQIPtr<IPropertyStore> pStore=pLink;
|
||||
CComQIPtr<IPropertyStore> pStore(pLink);
|
||||
if (pStore)
|
||||
{
|
||||
PROPVARIANT val;
|
||||
|
||||
@@ -2202,7 +2202,7 @@ void CMenuContainer::AddJumpListItems( std::vector<MenuItem> &items )
|
||||
if (jumpItem.type==CJumpItem::TYPE_LINK)
|
||||
{
|
||||
item.SetName(jumpItem.name,false);
|
||||
CComQIPtr<IShellLink> pLink=jumpItem.pItem;
|
||||
CComQIPtr<IShellLink> pLink(jumpItem.pItem);
|
||||
if (pLink)
|
||||
{
|
||||
pLink->GetIDList(&item.pItem1);
|
||||
@@ -2215,7 +2215,7 @@ void CMenuContainer::AddJumpListItems( std::vector<MenuItem> &items )
|
||||
else if (jumpItem.type==CJumpItem::TYPE_ITEM)
|
||||
{
|
||||
item.SetName(jumpItem.name,false);
|
||||
CComQIPtr<IShellItem> pItem=jumpItem.pItem;
|
||||
CComQIPtr<IShellItem> pItem(jumpItem.pItem);
|
||||
if (pItem)
|
||||
SHGetIDListFromObject(pItem,&item.pItem1);
|
||||
}
|
||||
@@ -2335,7 +2335,7 @@ void CMenuContainer::InitItems( void )
|
||||
CComPtr<IShellLink> pLink;
|
||||
if (SUCCEEDED(pLink.CoCreateInstance(CLSID_ShellLink)))
|
||||
{
|
||||
CComQIPtr<IPersistFile> pFile=pLink;
|
||||
CComQIPtr<IPersistFile> pFile(pLink);
|
||||
if (pFile)
|
||||
{
|
||||
// go through the items until we find s_MaxRecentDocuments documents
|
||||
@@ -6640,7 +6640,7 @@ bool CMenuContainer::GetDescription( int index, wchar_t *text, int size )
|
||||
}
|
||||
if (jumpItem.type==CJumpItem::TYPE_ITEM)
|
||||
{
|
||||
CComQIPtr<IShellItem> pItem=jumpItem.pItem;
|
||||
CComQIPtr<IShellItem> pItem(jumpItem.pItem);
|
||||
if (pItem)
|
||||
{
|
||||
{
|
||||
@@ -6665,7 +6665,7 @@ bool CMenuContainer::GetDescription( int index, wchar_t *text, int size )
|
||||
}
|
||||
else if (jumpItem.type==CJumpItem::TYPE_LINK)
|
||||
{
|
||||
CComQIPtr<IShellLink> pLink=jumpItem.pItem;
|
||||
CComQIPtr<IShellLink> pLink(jumpItem.pItem);
|
||||
if (pLink)
|
||||
{
|
||||
if (SUCCEEDED(pLink->GetDescription(text,size)) && text[0])
|
||||
|
||||
@@ -543,7 +543,7 @@ bool CSearchManager::SearchScope::ParseSearchConnector( const wchar_t *fname )
|
||||
return false;
|
||||
if (_wcsnicmp(url,L"file:",5)==0)
|
||||
return false; // ignore files
|
||||
CString url2=url;
|
||||
CString url2(url);
|
||||
StringUpper(url2);
|
||||
roots.push_back(url2);
|
||||
return true;
|
||||
@@ -1003,7 +1003,7 @@ void CSearchManager::SearchThread( void )
|
||||
CComPtr<IBindCtx> pBindCtx0;
|
||||
CreateBindCtx(0,&pBindCtx0);
|
||||
if (!pBindCtx0) continue;
|
||||
pBindCtx0->RegisterObjectParam(STR_PARSE_WITH_PROPERTIES,pStore);
|
||||
pBindCtx0->RegisterObjectParam((LPOLESTR)STR_PARSE_WITH_PROPERTIES,pStore);
|
||||
|
||||
#ifdef LAUNDER_SEARCH_RESULTS
|
||||
CComPtr<ISearchFolderItemFactory> pSearchFactory;
|
||||
|
||||
@@ -849,7 +849,7 @@ LRESULT CSkinSettingsDlg::OnSelEndOK( WORD wNotifyCode, WORD wID, HWND hWndCtl,
|
||||
m_SkinIndex=(int)SendDlgItemMessage(IDC_COMBOSKIN,CB_GETCURSEL);
|
||||
{
|
||||
CSettingsLockWrite lock;
|
||||
const wchar_t *strNew=m_SkinIndex==0?L"":m_SkinNames[m_SkinIndex];
|
||||
const wchar_t *strNew=m_SkinIndex==0?L"":m_SkinNames[m_SkinIndex].GetString();
|
||||
const wchar_t *strOld=m_pSetting[0].value.vt==VT_BSTR?m_pSetting[0].value.bstrVal:L"???";
|
||||
if (wcscmp(strNew,strOld)!=0)
|
||||
SetSettingsDirty();
|
||||
@@ -3340,7 +3340,7 @@ LRESULT CCustomMenuDlg7::OnInitDialog( UINT uMsg, WPARAM wParam, LPARAM lParam,
|
||||
|
||||
TOOLINFO tool={sizeof(tool),TTF_SUBCLASS|TTF_IDISHWND,m_hWnd,'CLSH'};
|
||||
tool.uId=(UINT_PTR)m_List.m_hWnd;
|
||||
tool.lpszText=L"";
|
||||
tool.lpszText=(LPWSTR)L"";
|
||||
::SendMessage(ListView_GetToolTips(m_List),TTM_ADDTOOL,0,(LPARAM)&tool);
|
||||
|
||||
return TRUE;
|
||||
|
||||
@@ -588,7 +588,7 @@ void EnableStartTooltip( bool bEnable )
|
||||
else
|
||||
{
|
||||
TOOLINFO info=g_StartButtonTool;
|
||||
info.lpszText=L"";
|
||||
info.lpszText=(LPWSTR)L"";
|
||||
SendMessage(g_Tooltip,TTM_UPDATETIPTEXT,0,(LPARAM)&info);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,6 +143,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -166,6 +168,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -188,6 +192,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -212,6 +218,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -237,6 +245,8 @@
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -262,6 +272,8 @@
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -356,4 +368,4 @@
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
@@ -38,7 +38,7 @@ static HRESULT CreateLink( const wchar_t *source, LPITEMIDLIST sourcePidl, const
|
||||
|
||||
if (dir)
|
||||
pLink->SetWorkingDirectory(dir);
|
||||
CComQIPtr<IPersistFile> pFile=pLink;
|
||||
CComQIPtr<IPersistFile> pFile(pLink);
|
||||
if (!pFile) return E_FAIL;
|
||||
hr=pFile->Save(fname,TRUE);
|
||||
}
|
||||
@@ -46,9 +46,9 @@ static HRESULT CreateLink( const wchar_t *source, LPITEMIDLIST sourcePidl, const
|
||||
// reopen the link and set the "no new" property. without reopening the original properties are lost
|
||||
CComPtr<IShellLink> pLink;
|
||||
hr=pLink.CoCreateInstance(CLSID_ShellLink);
|
||||
CComQIPtr<IPersistFile> pFile=pLink;
|
||||
CComQIPtr<IPersistFile> pFile(pLink);
|
||||
hr=pFile->Load(fname,STGM_READWRITE);
|
||||
CComQIPtr<IPropertyStore> pStore=pLink;
|
||||
CComQIPtr<IPropertyStore> pStore(pLink);
|
||||
if (pStore)
|
||||
{
|
||||
PROPVARIANT val;
|
||||
|
||||
@@ -185,7 +185,7 @@ static void StartStartMenu( void )
|
||||
}
|
||||
PathAppend(path,L"StartMenu.exe");
|
||||
LogToFile(STARTUP_LOG,L"StartMenuHelper: starting \"%s\" -startup",path);
|
||||
if (CreateProcess(path,L"StartMenu.exe -startup",NULL,NULL,TRUE,0,NULL,NULL,&startupInfo,&processInfo))
|
||||
if (CreateProcess(path,(LPWSTR)L"StartMenu.exe -startup",NULL,NULL,TRUE,0,NULL,NULL,&startupInfo,&processInfo))
|
||||
{
|
||||
CloseHandle(processInfo.hProcess);
|
||||
CloseHandle(processInfo.hThread);
|
||||
|
||||
@@ -164,6 +164,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -197,6 +199,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -229,6 +233,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -262,6 +268,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -296,6 +304,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
@@ -328,6 +338,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
|
||||
@@ -388,7 +388,7 @@ void CUpdateDlg::UpdateUI( void )
|
||||
}
|
||||
else
|
||||
{
|
||||
SetDlgItemText(IDC_STATICLATEST,(m_Data.newVersion==0)?LoadStringEx(IDS_UPDATE_FAIL):L"");
|
||||
SetDlgItemText(IDC_STATICLATEST,(m_Data.newVersion==0)?LoadStringEx(IDS_UPDATE_FAIL).GetString():L"");
|
||||
SetDlgItemText(IDC_EDITTEXT,L"");
|
||||
GetDlgItem(IDC_EDITTEXT).ShowWindow(SW_HIDE);
|
||||
GetDlgItem(IDC_BUTTONDOWNLOAD).ShowWindow(SW_HIDE);
|
||||
|
||||
@@ -63,6 +63,8 @@
|
||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<AdditionalIncludeDirectories>$(IntDir);..\Lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
@@ -85,6 +87,8 @@
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<TreatWarningAsError>true</TreatWarningAsError>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<AdditionalIncludeDirectories>$(IntDir);..\Lib;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
|
||||
Reference in New Issue
Block a user