PDA

View Full Version : Extract/Use another exe's icon



aguayro
30th April 2012, 02:14
Hi, im trying to use an external executable's icon, but cant't find a way to do it. I've see some apps that can do it but not coded with Qt.
It's possible do this with Qt? I only need use the icon.
thansk

ChrisW67
30th April 2012, 09:29
Nothing to do with Qt.

Assuming you are talking about Windows and you want to do this at runtime you can only do this with Windows API calls. Probably a combination of LoadIcon() (http://msdn.microsoft.com/en-us/library/windows/desktop/ms648072%28v=vs.85%29.aspx) after LoadImage() (http://msdn.microsoft.com/en-us/library/windows/desktop/ms648045%28v=vs.85%29.aspx) to open the other exe file.

aguayro
30th April 2012, 14:56
thanks for the answer, time to lear win API :)