You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually it was more complicated than that... we also must consider the 3 OEM resource flags: OBM, OIC and OCR. This demanded 3 new specific enums to deal with the 3 possibilities: ID, string or OEM resource. Which gives us 9 different possibilities.
I made a quick test and it seems to be correct and working now.
let hicon = HINSTANCE::NULL.LoadImageIcon(IdOicStr::from_str("C:\\Temp\\foo.ico"),SIZE::new(16,16),
co::LR::LOADFROMFILE,)?;
hicon.DestroyIcon()?;// don't forget this one!
Why is name a
u16
? Shouldn't a filename string be accepted?I would like to change the window icon at runtime from a file that isn't included in the resources.
The text was updated successfully, but these errors were encountered: