Retrieving icons of current user printers

前端 未结 2 1622
Happy的楠姐
Happy的楠姐 2020-12-11 19:44

I\'m trying to emulate MS Office print dialog\'s printer selection combobox. The drop-down list contains printer names with large printer icons to the left. On Vista fax pri

2条回答
  •  失恋的感觉
    2020-12-11 19:55

    You don't say how you are calling SHGetFileInfo, but I would guess you need to set the SHGFI_PIDL flag and use a fully qualified PIDL (And maybe SHGFI_USEFILEATTRIBUTES)

    To get shared/default overlay icons, set the SHGFI_ADDOVERLAYS flag

提交回复
热议问题