diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-14 04:05:34 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-14 04:05:34 +0200 |
commit | 96f0accc818ad98abcb0d37e53d0a31e08ce4987 (patch) | |
tree | 0ff850793420b66cf78ac539d4dbe9f7c393ac11 /c/defs.h | |
parent | 26f70ab37bee8ffd70b662ff999613c643215605 (diff) | |
download | EpisodeBrowser-96f0accc818ad98abcb0d37e53d0a31e08ce4987.tar.gz |
Minor formal changes.
Height(DLVSIKEY) was incorrect. The argument to Height is supposed to
be a boolean value, in this case false. It happened to work because
DLVSIKEY is 0 (because Key is the 0th column in the data list view).
Diffstat (limited to 'c/defs.h')
-rw-r--r-- | c/defs.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -14,11 +14,12 @@ void UpdateLayout(); /* listview.cpp */ class ListView { protected: + int m_bHeader = 1; WNDPROC m_prevProc; HWND m_hWnd; public: ListView(HMENU, DWORD); - int Height(int); + int Height(int = -1); HWND HWnd(void) const; virtual void UpdateTheme(BOOL); virtual LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); @@ -29,6 +30,7 @@ class EpisodeListView : public ListView { private: int m_iSort; LVITEM m_lviFocus; + friend int CALLBACK ElvSort(LPARAM, LPARAM, LPARAM); public: EpisodeListView(void); void DoSort(void); @@ -43,7 +45,7 @@ public: void ShowFocus(void); void Update(void); void UpdateItem(LPLVITEM); - LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); + LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM) override; }; /* datalistview.cpp */ |