1
0
Эх сурвалжийг харах

PixelsPerInchChanged counter

Source commit: a7f76c3507a22f3354c3f1cd1ccfe99204afe508
Martin Prikryl 8 жил өмнө
parent
commit
65b0cb372b

+ 9 - 0
source/forms/CustomScpExplorer.cpp

@@ -8158,12 +8158,21 @@ void __fastcall TCustomScpExplorerForm::Dispatch(void * Message)
       WMClose(*M);
       break;
 
+    case WM_DPICHANGED:
+      WMDpiChanged(*M);
+      break;
+
     default:
       TForm::Dispatch(Message);
       break;
   }
 }
 //---------------------------------------------------------------------------
+void __fastcall TCustomScpExplorerForm::WMDpiChanged(TMessage & /*Message*/)
+{
+  Configuration->Usage->Inc(L"PixelsPerInchChanged");
+}
+//---------------------------------------------------------------------------
 void __fastcall TCustomScpExplorerForm::WMClose(TMessage & Message)
 {
   // Cannot close window while we are busy.

+ 1 - 0
source/forms/CustomScpExplorer.h

@@ -299,6 +299,7 @@ private:
   bool __fastcall CanPasteToDirViewFromClipBoard();
   void __fastcall CMShowingChanged(TMessage & Message);
   void __fastcall WMClose(TMessage & Message);
+  void __fastcall WMDpiChanged(TMessage & Message);
 
 protected:
   TOperationSide FCurrentSide;