Lines Matching refs:icon
155 /* Reset the window's icon to undefined. */
158 /* If the old icon is generated on-the-fly, get rid of it, will regen */
161 /* Same for the small icon */
171 /* Send a message to WM thread telling it re-evaluate the icon for this window */
240 if (pref.icon[i].hicon)
241 DestroyIcon((HICON) pref.icon[i].hicon);
242 free(pref.icon);
243 pref.icon = NULL;
246 /* Free global default X icon */
453 * Possibly add a menu to the toolbar icon
517 * Handle comma-ified icon names
519 * Parse a filename to extract an icon:
520 * If fname is exactly ",nnn" then extract icon from our resource
521 * else if it is "file,nnn" then extract icon nnn from that file
563 /* Otherwise, prepend the default icon directory, which
611 * ICONS{} section in the prefs file, and load the icon from a file
620 if ((res_name && !strcmp(pref.icon[i].match, res_name)) ||
621 (res_class && !strcmp(pref.icon[i].match, res_class)) ||
622 (wmName && strstr(wmName, pref.icon[i].match))) {
623 if (pref.icon[i].hicon)
624 return pref.icon[i].hicon;
626 hicon = LoadImageComma(pref.icon[i].iconFile, pref.iconDirectory, 0, 0, LR_DEFAULTSIZE);
629 pref.icon[i].iconFile);
631 pref.icon[i].hicon = hicon;
636 /* Didn't find the icon, fail gracefully */
641 * Should we free this icon or leave it in memory (is it part of our
653 if ((HICON) pref.icon[i].hicon == hicon)