?? subject_55182.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> HWND hwnd, // handle to the window to animate<BR> DWORD dwTime, // duration of animation<BR> DWORD dwFlags // 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. <BR>AW_ACTIVATE Activates the window. Do not use this flag with AW_HIDE. <BR>AW_BLEND Uses a fade effect. This flag can be used only if hwnd is a top-level window. <BR>AW_HIDE Hides the window. By default, the window is shown. <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. <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. <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. <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 + -