[Wnd-commit] wnd/wnd_doc/doc/gdi/icon icon.dtpl,1.2,1.3
Status: Alpha
Brought to you by:
jurner
|
From: jürgen u. <cer...@us...> - 2005-07-02 09:50:21
|
Update of /cvsroot/wnd/wnd/wnd_doc/doc/gdi/icon In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21937 Modified Files: icon.dtpl Log Message: bit of this and a bit of that Index: icon.dtpl =================================================================== RCS file: /cvsroot/wnd/wnd/wnd_doc/doc/gdi/icon/icon.dtpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** icon.dtpl 15 May 2005 10:12:08 -0000 1.2 --- icon.dtpl 2 Jul 2005 09:49:45 -0000 1.3 *************** *** 33,49 **** </P> - ::site:: class DummyIcon - <code class=import>defined in: wnd.gdi</code><br><br> - <code>class DummyIcon(w=0, h=0)</code><br> - <P> - Creates an empty icon. - <br><br> - Seems pretty useless at first sight, but listviews for example set item heights - according to the size of the assigned imagelist and this imagelist needs one icon at last. So here it is. - <br><br> - These icons are not shared resources. So you have to close them when done with them.By default the frameworks TrackHandler keeps track of these icons - and closes them when the process exits. - </P> - ::site:: class SystemIcon --- 33,36 ---- *************** *** 79,83 **** ::site:: class IconFromInstance <code class=import>defined in: wnd.gdi</code><br><br> ! <code>IconFromFile(instance, resname, w=0, h=0)</code><br> <P> Loads an icon from a dll. --- 66,70 ---- ::site:: class IconFromInstance <code class=import>defined in: wnd.gdi</code><br><br> ! <code>IconFromInstance(instance, resname, w=0, h=0)</code><br> <P> Loads an icon from a dll. *************** *** 109,115 **** the desired height of the icon to load. If both are zero the default size is loaded. - <br><br> - These icons are loaded as shared resources so you do not have to close them, - but best is if you do so. </P> --- 96,99 ---- *************** *** 320,324 **** --- 304,358 ---- Draws an icon at the specified position in the dc. </P> + + + + ::item:: DrawEx + <code>DrawEx(dc, x, y, w, h, flag)</code><br> + <P> + Draws an icon at the specified position in the dc. + <br><br> + <DL> + <DT>dc + <DD>the dc to draw to + <DT>x + <DD>the x-position to draw at + <DT>y + <DD>the y-position to draw at + <DT>w + <DD>the desired width of the icon + <DT>h + <DD>the desired height of the icon + <DT>flag + <DD>one of the following flags: + <br><br> + <TABLE class="table1" BORDER="1"> + <TR> + <TD>'compat'</TD> + <TD>??</TD> + </TR> + <TR> + <TD>'defaultsize'</TD> + <TD>ignores w and h parameters and uses the icons default size</TD> + </TR> + <TR> + <TD>'image'</TD> + <TD>draws the image of the icon</TD> + </TR> + <TR> + <TD>'mask'</TD> + <TD>draws the mask of the icon</TD> + </TR> + <TR> + <TD>'nomirror'</TD> + <TD>??</TD> + </TR> + <TR> + <TD>'normal'</TD> + <TD>draws both, the mask and the image of the icon</TD> + </TR> + </TABLE> + </DL> + </P> ::item:: Release |