diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-19 14:50:00 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-19 14:50:00 +0200 |
commit | bc6d9cdf289af9167912329f1c5f4e39bd6bac29 (patch) | |
tree | 27c5c0f75bd631f0ddf32feddb13d14ad8bf1b1d /c/episodelistview.h | |
parent | 2ffbd7fcc178e68e7132d2f8f649d131c5a5d3af (diff) | |
download | EpisodeBrowser-bc6d9cdf289af9167912329f1c5f4e39bd6bac29.tar.gz |
Use static member function instead of friend function.
Diffstat (limited to 'c/episodelistview.h')
-rw-r--r-- | c/episodelistview.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c/episodelistview.h b/c/episodelistview.h index 1f23959..48e7194 100644 --- a/c/episodelistview.h +++ b/c/episodelistview.h @@ -13,22 +13,22 @@ struct EpisodeListView : public ListView { EpisodeListView(HWND hWndParent); - void DoSort(); void EnsureFocusVisible(); LRESULT HandleNotify(LPARAM lParam); void Redraw(); + void RestoreFocus(); void SaveFocus(); void SetTop(int iItem); - void RestoreFocus(); void SelectUnwatched(int iDir); void ShowFocus(); + void Sort(); void Update(); void UpdateItem(const LVITEM* pLvi); LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) override; private: int m_iSort; LVITEM m_lviFocus; - friend int CALLBACK ElvSort(LPARAM lParam1, LPARAM lParam2, LPARAM lExtra); + static int CALLBACK SortProc(LPARAM lParam1, LPARAM lParam2, LPARAM lExtra); }; #endif |