Skip to content

Commit

Permalink
add override's
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Jan 13, 2024
1 parent 7d67f4d commit 365287b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions XG_CandsWnd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,12 @@ class XG_CandsWnd : public XG_Window
{
}

virtual LPCTSTR GetWndClassName() const
LPCTSTR GetWndClassName() const override
{
return TEXT("XG_CandsWnd");
}

virtual void ModifyWndClassDx(WNDCLASSEX& wcx)
void ModifyWndClassDx(WNDCLASSEX& wcx) override
{
wcx.hIcon = nullptr;
wcx.hbrBackground = ::CreateSolidBrush(RGB(255, 255, 192));
Expand Down Expand Up @@ -474,8 +474,8 @@ class XG_CandsWnd : public XG_Window
}
}

virtual LRESULT CALLBACK
WindowProcDx(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
LRESULT CALLBACK
WindowProcDx(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) override
{
switch (uMsg) {
HANDLE_MSG(hwnd, WM_CREATE, OnCreate);
Expand Down
2 changes: 1 addition & 1 deletion XG_CanvasWindow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ class XG_CanvasWindow : public XG_Window
return XgOnLoad(xg_hMainWnd, szFile, &pt);
}

virtual LRESULT CALLBACK
LRESULT CALLBACK
WindowProcDx(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) override
{
switch (uMsg)
Expand Down
4 changes: 2 additions & 2 deletions XG_HintsWnd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ class XG_HintsWnd : public XG_Window
{
}

virtual LPCTSTR GetWndClassName() const
LPCTSTR GetWndClassName() const override
{
return TEXT("XG_HintsWnd");
}

virtual void ModifyWndClassDx(WNDCLASSEX& wcx)
void ModifyWndClassDx(WNDCLASSEX& wcx) override
{
// No change
}
Expand Down

0 comments on commit 365287b

Please sign in to comment.