[MSPAINT] Define enum TOOLTYPE and use it (#4197)

Improve code quality and debuggability. CORE-17931
This commit is contained in:
Katayama Hirofumi MZ 2021-12-27 23:23:32 +09:00 committed by GitHub
parent 90c3f89bb2
commit e9330371ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 90 additions and 39 deletions

View file

@ -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;
}