Code enhancements

- fix linux build on include upper/lowercase issue ../src/dpiManagerV2.cpp:20:10: fatal error: CommCtrl.h: No such file or directory
- avoid clang warning: 5>..\src\WinControls\Grid\BabyGrid.cpp(677,7): warning : unused variable 'rectwhole' [-Wunused-variable]
- avoid ../src/NppCommands.cpp:1790:24: warning: conversion from ‘int’ to ‘UCHAR’ {aka ‘unsigned char’} may change value [-Wconversion]

Close #15001
pull/15003/head
Christian Grasser 2024-04-14 21:46:02 +02:00 committed by Don Ho
parent 35f601b665
commit 25c6795d0c
3 changed files with 2 additions and 3 deletions

View File

@ -1787,7 +1787,7 @@ void Notepad_plus::command(int id)
::SendMessage(_pPublicInterface->getHSelf(), WM_SIZE, 0, 0);
udd->display(false);
_mainWindowStatus &= ~WindowUserActive;
_mainWindowStatus &= static_cast<UCHAR>(~WindowUserActive);
}
else if ((isUDDlgDocked)&&(!isUDDlgVisible))
{

View File

@ -674,7 +674,6 @@ void DrawCursor(HWND hWnd, int SI)
if (BGHS[SI].cursorcol < BGHS[SI].homecol) { return; }
rect = GetCellRect(hWnd, SI, BGHS[SI].cursorrow, BGHS[SI].cursorcol);
RECT rectwhole = rect;
HDC gdc = GetDC(hWnd);
BGHS[SI].activecellrect = rect;
int rop = GetROP2(gdc);

View File

@ -17,7 +17,7 @@
#include "dpiManagerV2.h"
#include <CommCtrl.h>
#include <commctrl.h>
#if defined(__GNUC__) && __GNUC__ > 8