• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/flac/src/plugin_winamp2/

Lines Matching refs:hwnd

136 static void AddGenre(HWND hwnd, const char *genre)

138 HWND hgen = GetDlgItem(hwnd, IDC_GENRE);
147 static void InitGenres(HWND hwnd)
149 HWND hgen = GetDlgItem(hwnd, IDC_GENRE);
167 static void DeinitGenres(HWND hwnd, BOOL final)
169 if (genresChanged && hwnd)
171 SaveGenres(GetDlgItem(hwnd, IDC_GENRE));
203 SetDlgItemText(hwnd, x, buffer)
205 #define GetText(x,y) GetDlgItemText(hwnd, x, buffer, sizeof(buffer)); \
210 SetDlgItemTextW(hwnd, x, ucs2); \
213 #define GetTextW(x,y) GetDlgItemTextW(hwnd, x, (WCHAR*)buffer, sizeof(buffer)/2); \
218 static BOOL InitInfoboxInfo(HWND hwnd, const char *file)
226 SetWindowLong(hwnd, GWL_USERDATA, (LONG)data);
229 SetDlgItemText(hwnd, IDC_NAME, file);
251 SetDlgItemText(hwnd, IDC_INFO, buffer);
277 static void __inline SetTag(HWND hwnd, const char *filename, FLAC__StreamMetadata *tags)
285 SetWindowText(hwnd, buffer);
288 static void UpdateTag(HWND hwnd)
290 LOCALDATA *data = (LOCALDATA*)GetWindowLong(hwnd, GWL_USERDATA);
320 if (buffer[0]) AddGenre(hwnd, buffer);
323 SetTag(hwnd, data->filename, data->tags);
326 static void RemoveTag(HWND hwnd)
328 LOCALDATA *data = (LOCALDATA*)GetWindowLong(hwnd, GWL_USERDATA);
331 SetDlgItemText(hwnd, IDC_TITLE, "");
332 SetDlgItemText(hwnd, IDC_ARTIST, "");
333 SetDlgItemText(hwnd, IDC_ALBUM, "");
334 SetDlgItemText(hwnd, IDC_COMMENT, "");
335 SetDlgItemText(hwnd, IDC_YEAR, "");
336 SetDlgItemText(hwnd, IDC_TRACK, "");
337 SetDlgItemText(hwnd, IDC_GENRE, "");
339 SetTag(hwnd, data->filename, data->tags);
343 static INT_PTR CALLBACK InfoProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
349 SetWindowText(hwnd, infoTitle);
350 InitGenres(hwnd);
352 if (!InitInfoboxInfo(hwnd, (const char*)lParam))
353 PostMessage(hwnd, WM_CLOSE, 0, 0);
358 LOCALDATA *data = (LOCALDATA*)GetWindowLong(hwnd, GWL_USERDATA);
361 DeinitGenres(hwnd, FALSE);
371 EndDialog(hwnd, LOWORD(wParam));
375 UpdateTag(hwnd);
379 RemoveTag(hwnd);
456 void DoInfoBox(HINSTANCE inst, HWND hwnd, const char *filename)
458 DialogBoxParam(inst, MAKEINTRESOURCE(IDD_INFOBOX), hwnd, InfoProc, (LONG)filename);