⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_55182.htm

📁 vc
💻 HTM
字号:
<p>
序号:55182 发表者:樂日華 发表日期:2003-10-07 16:12:59
<br>主题:怎樣使一個對話框能夠在屏幕右下角緩慢伸出
<br>内容:大家好. 有誰做過這樣的程序嗎? 一個對話框在屏幕右下角緩慢伸出. 就像foxmail 一樣. 平時是最小化在右下角的.能否給各範例程序.在這裡先寫了.我自己也在編寫. 我知道要用一個時鍾控制........幫忙啊.
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:michael 回复日期:2003-10-07 16:29:58
<br>内容:不需要,要用到一个函数叫AnimateWindow()的函数就可以办到。<BR><BR>The AnimateWindow function enables you to produce special effects when showing or hiding windows. There are two types of animation: roll animation and slide animation. <BR><BR>BOOL AnimateWindow(<BR>&nbsp;&nbsp;HWND hwnd,&nbsp;&nbsp;&nbsp;&nbsp; // handle to the window to animate<BR>&nbsp;&nbsp;DWORD dwTime,&nbsp;&nbsp;// duration of animation<BR>&nbsp;&nbsp;DWORD dwFlags&nbsp;&nbsp;// animation type<BR>);<BR> <BR>Parameters<BR>hwnd <BR>Specifies a handle to the window to animate. <BR>dwTime <BR>Specifies how long it takes to play the animation, in milliseconds. Typically, an animation takes 200 milliseconds to play. <BR>dwFlags <BR>Specifies the type of animation. This parameter can be one or more of the following flags. Flag Description <BR>AW_SLIDE Uses slide animation. By default, roll animation is used. This flag is ignored when used with the AW_CENTER flag.&nbsp;&nbsp;<BR>AW_ACTIVATE Activates the window. Do not use this flag with AW_HIDE.&nbsp;&nbsp;<BR>AW_BLEND Uses a fade effect. This flag can be used only if hwnd is a top-level window.&nbsp;&nbsp;<BR>AW_HIDE Hides the window. By default, the window is shown.&nbsp;&nbsp;<BR>AW_CENTER Makes the window appear to collapse inward if the AW_HIDE flag is used or expand outward if the AW_HIDE flag is not used.&nbsp;&nbsp;<BR>AW_HOR_POSITIVE Animate the window from left to right. This flag can be used with roll or slide animation. It is ignored when used with the AW_CENTER flag. <BR>AW_HOR_NEGATIVE Animate the window from right to left. This flag can be used with roll or slide animation. It is ignored when used with the AW_CENTER flag. <BR>AW_VER_POSITIVE Animate the window from top to bottom. This flag can be used with roll or slide animation. It is ignored when used with the AW_CENTER flag.&nbsp;&nbsp;<BR>AW_VER_NEGATIVE Animate the window from bottom to top. This flag can be used with roll or slide animation. It is ignored when used with the AW_CENTER flag.&nbsp;&nbsp;<BR><BR><BR>Return Values<BR>If the function succeeds, the return value is nonzero.<BR><BR>If the function fails, the return value is zero. The function will fail in the following situations: <BR><BR>The window uses the window region. <BR>The window is already visible and you are trying to show the window. <BR>The window is already hidden and you are trying to hide the window. <BR>To get extended error information, call theGetLastError function. <BR><BR>Remarks<BR>You can combine the AW_HOR_POSITIVE or AW_HOR_NEGATIVE flag with the AW_VER_POSITIVE or AW_VER_NEGATIVE flag to animate a window diagonally. <BR><BR>The window procedures for the window and its child windows may need to handle any WM_PRINT or WM_PRINTCLIENT messages. Dialog boxes, controls, and common controls already handle WM_PRINTCLIENT. The default window procedure already handles WM_PRINT. <BR><BR>摘自《MSDN》<BR>好像那个Lib不在默认目录下,但是安装VC时考到硬盘上了,得自己挪一下。
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:樂日華 回复日期:2003-10-07 17:16:22
<br>内容:我經常看到你到認談裡面來,你肯定是高手了,能不能給個簡單的smaple code .上面的AnimateWindow() 我會測試的.
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:无情阁东雪 回复日期:2003-10-07 18:51:08
<br>内容:自己看看吧,有帮助的
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:樂日華 回复日期:2003-10-08 13:07:51
<br>内容:謝謝 您 無情閣東雪 . 我把你的程序下了,可是我的操作系統為繁體版.你的文件夾用檢體中文命名的. 我這裡打不開. 我的找檢體操作系統.否則看不了. 你可不可以用英文名稱命令. 這樣我就可以看到了.謝謝
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:无情阁东雪 回复日期:2003-10-08 13:23:35
<br>内容:不好意思了,现在再试试
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:樂日華 回复日期:2003-10-08 17:42:22
<br>内容:非常感謝你的幫助,謝謝謝謝. 你喜歡vc 嗎? 我也喜歡,可以叫個朋友嗎? 我的email <BR>boyle2000@163.net .我現在正在做一個比較大的項目.有時間我們聊聊. ?
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:樂日華 回复日期:2003-10-08 17:51:05
<br>内容:rancle ...這個伸出的對話框能不能用自己的對話框.我需要在上面貼bmp 圖形. 和一些 控件 <BR>就像kv2003 裡面那樣.謝謝!!!!!
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:无情阁东雪 回复日期:2003-10-08 19:24:44
<br>内容:原理是一样的
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -