diff options
Diffstat (limited to 'c/listview.cpp')
-rw-r--r-- | c/listview.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/c/listview.cpp b/c/listview.cpp index b375454..f38b952 100644 --- a/c/listview.cpp +++ b/c/listview.cpp @@ -96,12 +96,10 @@ ListView::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { - switch (uMsg) { - case WM_DESTROY: + ListView *lpLv = (ListView *)GetProp(hWnd, TEXT("this")); + + if (uMsg == WM_DESTROY) RemoveProp(hWnd, TEXT("this")); - break; - } - ListView *lpLv = (ListView *)GetProp(hWnd, TEXT("this")); return lpLv? lpLv->WndProc(hWnd, uMsg, wParam, lParam): FALSE; } |