I create a window, get its DC, load an icon resource, then call DrawIcon
to draw the icon on the DC. Then I show the window. The icon does not
appear. Is this because DrawIcon will not work until the windows is
painted ( receives a WM_PAINT message ), or is there some other reason ?
.
Re: isIconic issue again... ... these systems allowed you to actually draw the icon (you could do cool animated icons, ... IsIconic does return TRUE if the window is iconic; any rumor to the contrary is nonsense. ... But in modern Windows, an iconic window is never called to draw itself, so the OnPaint ... (microsoft.public.vc.mfc)
Re: Icon flag Bit 7 ... Yes, you could do that, but what if the contents of the icon were dependant ... So I could use it to draw a RiscCAD ... drawing into an icon in a window.... if they are set, first, and then issue the redraw request.... (comp.sys.acorn.programmer)
Re: Icon flag Bit 7 ...icon's definition would be set i.e. the icon 'requires task's ... So I could use it to draw a RiscCAD ... drawing into an icon in a window.... Could you explain what you mean by drawing 'into an icon'? ... (comp.sys.acorn.programmer)
Re: Icon not showing in window ... The icon does not appear. ... Is this because DrawIcon will not work until the windows is painted, or is there some other reason? ... DrawIconwill work any time on a valid DC, but you won't see anything if the DC is for a window that isn't visible. ... Drawing in response to WM_PAINT is certainly a great place to do this :-) ... (microsoft.public.win32.programmer.gdi)
How to rotate a bitmap ... Hello, I need to rotate a bitmap (actually, an icon (HICON)). ... Instead of using DrawIcon, I need to use some function to draw this icon ... (microsoft.public.win32.programmer.gdi)