Previously it interpreted its argument as being in DIPs, which was perhaps more convenient, but inconsistent with most of the other functions and broke the general rule that FromDIP() should be used with all hard-coded sizes. Update the sample to use FromDIP() when calling it now, improve the documentation and fix a bug in AdjustToolBitmapSize() which resulted in not increasing the bitmap size when moving toolbar sample using "large" toolbar size from a standard DPI display to a high DPI one: the old code considered that the new size was the same as the old one and returned before comparing it with m_requestedBitmapSize, which resulted in the bitmaps not changing size at all instead of doubling their size as they were expected to.
35 KiB
35 KiB