mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 23:53:07 +00:00
[MSPAINT] Define enum TOOLTYPE and use it (#4197)
Improve code quality and debuggability. CORE-17931
This commit is contained in:
parent
90c3f89bb2
commit
e9330371ea
8 changed files with 90 additions and 39 deletions
|
@ -175,6 +175,11 @@ LRESULT CToolSettingsWindow::OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BO
|
|||
DeleteObject(SelectObject(hdc, oldPen));
|
||||
break;
|
||||
}
|
||||
case TOOL_FILL:
|
||||
case TOOL_COLOR:
|
||||
case TOOL_ZOOM:
|
||||
case TOOL_PEN:
|
||||
break;
|
||||
}
|
||||
ReleaseDC(hdc);
|
||||
return 0;
|
||||
|
@ -233,6 +238,11 @@ LRESULT CToolSettingsWindow::OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lPar
|
|||
if ((y >= 70) && (y <= 132))
|
||||
toolsModel.SetLineWidth((y - 72) / 12 + 1);
|
||||
break;
|
||||
case TOOL_FILL:
|
||||
case TOOL_COLOR:
|
||||
case TOOL_ZOOM:
|
||||
case TOOL_PEN:
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue