make it build after mod

This commit is contained in:
shunf4
2024-04-20 12:48:57 +08:00
parent 18725aeba6
commit d5255dec84
7 changed files with 12 additions and 9 deletions

View File

@@ -10,6 +10,8 @@
# pragma clang diagnostic push
#endif
#pragma warning(disable : 4255)
#if defined(_MSC_VER)
#pragma warning(push)
@@ -17,7 +19,7 @@
#if _MSC_VER == 1900
// for old kit10 versions
// #pragma warning(disable : 4255) // winuser.h(13979): warning C4255: 'GetThreadDpiAwarenessContext':
#pragma warning(disable : 4255) // winuser.h(13979): warning C4255: 'GetThreadDpiAwarenessContext':
#endif
// win10 Windows Kit:
#endif // _MSC_VER

View File

@@ -69,6 +69,8 @@
#endif
*/
#pragma warning(disable : 4255)
#if _MSC_VER > 1200
// -Wall warnings

View File

@@ -11,7 +11,6 @@
#include <wchar.h>
#include "Panel.h"
#include "ViewSettings.h"
#ifdef LANG
#include "LangUtils.h"
using namespace NWindows;
@@ -370,7 +369,7 @@ void CCopyDialog::ShowPathFreeSpace(UString & strPath)
_freeSpace.SetText(strText);
}
bool CCopyDialog::OnCommand(int code, int itemID, LPARAM lParam)
bool CCopyDialog::OnCommand(unsigned code, unsigned itemID, LPARAM lParam)
{
if (itemID == IDC_COPY)
{

View File

@@ -21,7 +21,7 @@ class CCopyDialog: public NWindows::NControl::CModalDialog
void OnButtonSetPath();
void OnButtonOpenPath();
void OnButtonAddFileName();
bool OnCommand(int code, int itemID, LPARAM lParam);
bool OnCommand(unsigned code, unsigned itemID, LPARAM lParam) Z7_override;
bool OnGetMinMaxInfo(PMINMAXINFO pMMI);
void ShowPathFreeSpace(UString & strPath);

View File

@@ -574,11 +574,11 @@ void CExtractDialog::ShowPathFreeSpace(UString & strPath)
}
bool CExtractDialog::OnCommand(int code, int itemID, LPARAM lParam)
bool CExtractDialog::OnCommand(unsigned code, unsigned itemID, LPARAM lParam)
{
if (itemID == IDC_EXTRACT_PATH)
{
#ifdef NO_REGISTRY
#ifdef Z7_NO_REGISTRY
if (code == EN_CHANGE)
#else
if (code == CBN_EDITCHANGE)
@@ -590,7 +590,7 @@ bool CExtractDialog::OnCommand(int code, int itemID, LPARAM lParam)
ShowPathFreeSpace(strPath);
return true;
}
#ifndef NO_REGISTRY
#ifndef Z7_NO_REGISTRY
else if (code == CBN_SELCHANGE)
{
int nSel = _path.GetCurSel();

View File

@@ -61,7 +61,7 @@ class CExtractDialog: public NWindows::NControl::CModalDialog
virtual bool OnButtonClicked(unsigned buttonID, HWND buttonHWND) Z7_override;
virtual void OnOK() Z7_override;
void OnButtonOpenPath();
virtual bool OnCommand(int code, int itemID, LPARAM lParam);
virtual bool OnCommand(unsigned code, unsigned itemID, LPARAM lParam) Z7_override;
#ifndef Z7_NO_REGISTRY

View File

@@ -1,5 +1,5 @@
@echo off
set OPTS=_SFX=1 PLATFORM=x64
set OPTS=Z7_SFX=1 PLATFORM=x64
set LFLAGS=/DEBUG /SUBSYSTEM:WINDOWS,"5.02"
@echo ^_^_^_^_^_ ^_ ^_ ^_^_ ^_^_