reactos/base/applications/mspaint
Ștefan Fulea 3d48aa2992 [MSPAINT] Fix scrollbar presence on canvas/view fitting (#878)
* [MSPAINT] Fix scrollbar presence on canvas/view fitting

This is a small fix for a scrollbar related edge case functionality exhibited in mspaint (and in a lesser degree also elsewhere in instances of) scrollbar controlled content. As known, the scrollbars presence is given by the size ratio between the accommodating outer frame and the scroll-controlled contents inside it, and it works for the most part. There is, however, a case where the presence of both toolbars is kept even when the contents would fit the frame (if not for the scrollbars themselves that increase the size of the contents' area). Please take the current commit as a demo fix and a provisional correction for mspaint (as I think that the proper fix should reside in common controls).

* [MSPAINT] Fix a small mistake and improve readability in UpdateScrollbox()

Although with no visible impact on testing, I've used a wrong constant related to vertical scrollbox width in one instance (SM_CXHSCROLL instead of SM_CXVSCROLL), and this fixes it. Also, prefer using constants, to improve a bit readability and performance (by avoiding repeated function calls).
2018-11-16 23:05:51 +01:00
..
help
icons
lang [TRANSLATIONS] Style fixes for Estonian 2018-11-07 22:10:27 +01:00
CMakeLists.txt
common.h [MSPAINT] Fix crash on zoom out 2018-04-23 20:11:43 +02:00
definitions.h
dialogs.cpp
dialogs.h [MSPAINT] Fix copy-pasta bug (#562) 2018-05-23 22:17:22 +02:00
dib.cpp
dib.h
drawing.cpp
drawing.h
fullscreen.cpp
fullscreen.h
globalvar.h
history.cpp
history.h
imgarea.cpp [MSPAINT] Fix call sequence in OnRButtonUp 2018-05-24 22:12:15 +02:00
imgarea.h
main.cpp [MSPAINT] Fix interpretation of command line (#707) 2018-08-12 11:23:16 +02:00
miniature.cpp
miniature.h
mouse.cpp
mouse.h
mspaint.exe.amd64.manifest
mspaint.exe.manifest
palette.cpp
palette.h
palettemodel.cpp
palettemodel.h
precomp.h [MSPAINT] Fix crash on zoom out 2018-04-23 20:11:43 +02:00
registry.cpp
registry.h
rsrc.rc [MSPAINT] Added Vietnamese translation. (#722) 2018-08-03 12:10:16 +02:00
scrollbox.cpp [MSPAINT] Fix scrollbar presence on canvas/view fitting (#878) 2018-11-16 23:05:51 +01:00
scrollbox.h
selection.cpp [MSPAINT] When clicking selection, invalidate _and_ repaint Scroll Client _and_ Image Area 2018-05-26 14:21:07 +02:00
selection.h
selectionmodel.cpp
selectionmodel.h
sizebox.cpp
sizebox.h
textedit.cpp
textedit.h
toolbox.cpp [REACTOS] Fix a number of Get/SetWindowsLong*Ptr* issues and use GWLP_* instead of GWL_* where appropriate. 2018-02-19 22:36:36 +01:00
toolbox.h
toolsettings.cpp [MSPAINT] Fix crash on zoom out 2018-04-23 20:11:43 +02:00
toolsettings.h
toolsmodel.cpp
toolsmodel.h
winproc.cpp [MSPAINT] Store subsequent changes to file selected via Save As 2018-05-26 14:16:17 +02:00
winproc.h