📄 group__mgext__ctrl__animation__styles.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: Styles of ANIMATION control</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><h1>Styles of ANIMATION control<br><small>[<a class="el" href="group__mgext__ctrl__animation.htm">ANIMATION control and animation GIF (GIF87a/GIF89a) support</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__mgext__ctrl__animation__styles.htm#ga0">ANS_AUTOLOOP</a> 0x0001L<dl class="el"><dd class="mdescRight">Loop playing the animation automatically. <a href="#ga0"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__animation__styles.htm#ga1">ANS_SCALED</a> 0x0002L<dl class="el"><dd class="mdescRight">Scale the animation to the control size. <a href="#ga1"></a><br></dl><li>#define <a class="el" href="group__mgext__ctrl__animation__styles.htm#ga2">ANS_FITTOANI</a> 0x0004L<dl class="el"><dd class="mdescRight">Resize the control to fit the animation. <a href="#ga2"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>This control can be used to play the animation object, and you should specify the animation object when you create the control by using the dwAddData:<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__handles.htm#ga1">HWND</a> hwnd; <a class="code" href="struct__ANIMATION.htm">ANIMATION</a>* anim = <a class="code" href="group__mgext__ctrl__animation.htm#ga3">CreateAnimationFromGIF89aFile</a> (<a class="code" href="group__dc__fns.htm#ga22">HDC_SCREEN</a>, <span class="stringliteral">"banner.gif"</span>); <span class="keywordflow">if</span> (anim == <a class="code" href="group__simple__types.htm#ga3">NULL</a>) <span class="keywordflow">goto</span> error; hwnd = <a class="code" href="group__control__fns.htm#ga5">CreateWindow</a> (<a class="code" href="group__mgext__ctrl__animation.htm#ga6">CTRL_ANIMATION</a>, <span class="stringliteral">""</span>, <a class="code" href="group__styles.htm#ga6">WS_VISIBLE</a> | <a class="code" href="group__mgext__ctrl__animation__styles.htm#ga0">ANS_AUTOLOOP</a>, 100, 10, 10, 300, 200, hWnd, (<a class="code" href="group__win32__types.htm#ga4">DWORD</a>)anim); <a class="code" href="group__msg__pass__fns.htm#ga9">SendMessage</a> (hwnd, <a class="code" href="group__mgext__control__animation__msgs.htm#ga2">ANM_STARTPLAY</a>, 0, 0);</pre></div> <hr><h2>Define Documentation</h2><a class="anchor" name="ga0" doxytag="animation.h::ANS_AUTOLOOP"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define ANS_AUTOLOOP 0x0001L </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Loop playing the animation automatically. <p><p>Definition at line <a class="el" href="animation_8h-source.htm#l00217">217</a> of file <a class="el" href="animation_8h-source.htm">animation.h</a>. </td> </tr></table><a class="anchor" name="ga2" doxytag="animation.h::ANS_FITTOANI"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define ANS_FITTOANI 0x0004L </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Resize the control to fit the animation. <p><p>Definition at line <a class="el" href="animation_8h-source.htm#l00229">229</a> of file <a class="el" href="animation_8h-source.htm">animation.h</a>. </td> </tr></table><a class="anchor" name="ga1" doxytag="animation.h::ANS_SCALED"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define ANS_SCALED 0x0002L </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Scale the animation to the control size. <p><p>Definition at line <a class="el" href="animation_8h-source.htm#l00223">223</a> of file <a class="el" href="animation_8h-source.htm">animation.h</a>. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:56 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -