diff options
Diffstat (limited to 'c/episodelistview.c')
-rw-r--r-- | c/episodelistview.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/c/episodelistview.c b/c/episodelistview.c index 3b42be0..e414c46 100644 --- a/c/episodelistview.c +++ b/c/episodelistview.c @@ -39,29 +39,29 @@ ElvCreate(HWND hWnd) LRESULT ElvHandleNotify(LPARAM lParam) { - NMLISTVIEW *pNmLv; - pNmLv = (NMLISTVIEW *)lParam; + LPNMLISTVIEW lpNmLv; + lpNmLv = (LPNMLISTVIEW)lParam; - switch (pNmLv->hdr.code) { + switch (lpNmLv->hdr.code) { case LVN_ITEMCHANGED: - if ((pNmLv->uChanged & LVIF_STATE) - && (pNmLv->uNewState & LVIS_FOCUSED)) { - Elv_iSelectedItem = pNmLv->iItem; - ElvUpdateName(pNmLv->iItem, pNmLv->lParam); - DlvShowEpisode(pNmLv->lParam); + if ((lpNmLv->uChanged & LVIF_STATE) + && (lpNmLv->uNewState & LVIS_FOCUSED)) { + Elv_iSelectedItem = lpNmLv->iItem; + ElvUpdateName(lpNmLv->iItem, lpNmLv->lParam); + DlvShowEpisode(lpNmLv->lParam); } break; case NM_CUSTOMDRAW: { - NMLVCUSTOMDRAW *pLvCd; - pLvCd = (NMLVCUSTOMDRAW *)lParam; - switch (pLvCd->nmcd.dwDrawStage) { + LPNMLVCUSTOMDRAW lpLvCd; + lpLvCd = (LPNMLVCUSTOMDRAW)lParam; + switch (lpLvCd->nmcd.dwDrawStage) { case CDDS_PREPAINT: return CDRF_NOTIFYITEMDRAW; break; case CDDS_ITEMPREPAINT: - if (!Watched(pLvCd->nmcd.lItemlParam)) { - SelectObject(pLvCd->nmcd.hdc, + if (!Watched(lpLvCd->nmcd.lItemlParam)) { + SelectObject(lpLvCd->nmcd.hdc, g_GUIFontBold); return CDRF_NEWFONT; } @@ -80,7 +80,6 @@ ElvHandleNotify(LPARAM lParam) case NM_RCLICK: { DWORD dwPos; - NMITEMACTIVATE *pNmItem; extern HMENU g_hPopupMenu; dwPos = GetMessagePos(); TrackPopupMenu(g_hPopupMenu, TPM_RIGHTBUTTON, |