diff options
-rw-r--r-- | .cproject | 1 | ||||
-rw-r--r-- | c/episodelistview.c | 27 | ||||
-rw-r--r-- | c/listview.c | 4 | ||||
-rw-r--r-- | c/main.c | 2 |
4 files changed, 17 insertions, 17 deletions
@@ -11,6 +11,7 @@ </storageModule> <storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/> <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> + <storageModule moduleId="org.eclipse.cdt.make.core.buildtargets"/> <storageModule moduleId="org.eclipse.cdt.core.pathentry"> <pathentry include="C:/Program Files/swipl/include" kind="inc" path="" system="true"/> <pathentry kind="src" path=""/> 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, diff --git a/c/listview.c b/c/listview.c index 956e646..d223951 100644 --- a/c/listview.c +++ b/c/listview.c @@ -19,7 +19,7 @@ LvCreate(HWND hWnd, HMENU hMenu) WS_EX_CLIENTEDGE, WC_LISTVIEW, TEXT(""), - WS_CHILD|WS_VISIBLE|WS_VSCROLL|LVS_REPORT, + WS_CHILD|WS_VISIBLE|WS_VSCROLL|LVS_REPORT|LVS_NOSORTHEADER, 0, 0, 0, 0, hWnd, hMenu, @@ -53,7 +53,7 @@ LvProc(HWND hLv, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch (uMsg) { case WM_NOTIFY: - switch (((NMHDR *)lParam)->code) { + switch (((LPNMHDR)lParam)->code) { case HDN_ENDTRACK: UpdateLayout(GetParent(hLv)); return TRUE; @@ -98,7 +98,7 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) UpdateLayout(hWnd); break; case WM_NOTIFY: - switch (((NMHDR *)lParam)->idFrom) { + switch (((LPNMHDR)lParam)->idFrom) { case IDC_EPISODELISTVIEW: return ElvHandleNotify(lParam); } |