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 # pragma clang diagnostic push
#endif #endif
#pragma warning(disable : 4255)
#if defined(_MSC_VER) #if defined(_MSC_VER)
#pragma warning(push) #pragma warning(push)
@@ -17,7 +19,7 @@
#if _MSC_VER == 1900 #if _MSC_VER == 1900
// for old kit10 versions // 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 #endif
// win10 Windows Kit: // win10 Windows Kit:
#endif // _MSC_VER #endif // _MSC_VER

View File

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

View File

@@ -11,7 +11,6 @@
#include <wchar.h> #include <wchar.h>
#include "Panel.h" #include "Panel.h"
#include "ViewSettings.h" #include "ViewSettings.h"
#ifdef LANG
#include "LangUtils.h" #include "LangUtils.h"
using namespace NWindows; using namespace NWindows;
@@ -370,7 +369,7 @@ void CCopyDialog::ShowPathFreeSpace(UString & strPath)
_freeSpace.SetText(strText); _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) if (itemID == IDC_COPY)
{ {

View File

@@ -21,7 +21,7 @@ class CCopyDialog: public NWindows::NControl::CModalDialog
void OnButtonSetPath(); void OnButtonSetPath();
void OnButtonOpenPath(); void OnButtonOpenPath();
void OnButtonAddFileName(); void OnButtonAddFileName();
bool OnCommand(int code, int itemID, LPARAM lParam); bool OnCommand(unsigned code, unsigned itemID, LPARAM lParam) Z7_override;
bool OnGetMinMaxInfo(PMINMAXINFO pMMI); bool OnGetMinMaxInfo(PMINMAXINFO pMMI);
void ShowPathFreeSpace(UString & strPath); 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) if (itemID == IDC_EXTRACT_PATH)
{ {
#ifdef NO_REGISTRY #ifdef Z7_NO_REGISTRY
if (code == EN_CHANGE) if (code == EN_CHANGE)
#else #else
if (code == CBN_EDITCHANGE) if (code == CBN_EDITCHANGE)
@@ -590,7 +590,7 @@ bool CExtractDialog::OnCommand(int code, int itemID, LPARAM lParam)
ShowPathFreeSpace(strPath); ShowPathFreeSpace(strPath);
return true; return true;
} }
#ifndef NO_REGISTRY #ifndef Z7_NO_REGISTRY
else if (code == CBN_SELCHANGE) else if (code == CBN_SELCHANGE)
{ {
int nSel = _path.GetCurSel(); 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 bool OnButtonClicked(unsigned buttonID, HWND buttonHWND) Z7_override;
virtual void OnOK() Z7_override; virtual void OnOK() Z7_override;
void OnButtonOpenPath(); 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 #ifndef Z7_NO_REGISTRY

View File

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