mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 06:02:56 +00:00
[MSPAINT] Avoid flickering when resizing (#5144)
- Add CPaletteWindow::OnEraseBkgnd to avoid flickering. - Add getColorBoxRect and drawColorBox helper functions to draw a color box. - Add CPaletteWindow::DoHitTest helper function to do a hit test. - Improve CPaletteWindow::OnPaint by using a memory bitmap. - Improve readability of CMainWindow::alignChildrenToMainWindow. CORE-18867
This commit is contained in:
parent
f5840df9e9
commit
44b2a46d03
6 changed files with 173 additions and 93 deletions
|
@ -9,6 +9,12 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#define TOOLBAR_ROWS 8
|
||||
#define TOOLBAR_COLUMNS 2
|
||||
#define CXY_TB_BUTTON 25
|
||||
#define CX_TOOLBAR ((TOOLBAR_COLUMNS * CXY_TB_BUTTON) + 2)
|
||||
#define CY_TOOLBAR ((TOOLBAR_ROWS * CXY_TB_BUTTON) + 2)
|
||||
|
||||
class CToolBox : public CWindowImpl<CToolBox>
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue