#ifndef DEFS_H #define DEFS_H #include #include #include /* common.c */ TCHAR *TszFromSz(const char *, int); /* main.c */ void UpdateLayout(); /* listview.c */ HWND LvCreate(HMENU, DWORD); int LvHeight(HWND, int); /* episodelistview.c */ HWND ElvCreate(); void ElvDoSort(void); LRESULT ElvHandleNotify(LPARAM); void ElvRedraw(void); void ElvSetTop(int); void ElvSelectFocus(void); void ElvSelectUnwatched(int); void ElvShowFocus(void); void ElvUpdate(void); void ElvUpdateItem(LPLVITEM); /* datalistview.c */ HWND DlvCreate(); void DlvShowEpisode(int); /* pl.c */ int Pl(char *, char *, char *, ...); int Plp(term_t, char *, ...); int Plg(term_t, char *, ...); /* defs.h */ #define DLVSIKEY 0 #define DLVSIVALUE 1 #define ELVSIEPISODE 0 #define ELVSITITLE 1 #define ELVSIRATING 2 inline int Cmp(int a, int b) { if (a == b) return 0; if (a > b) return 1; return -1; } inline int Dpi(int i) { extern int IDPI; return MulDiv(i, IDPI, 96); } #endif