starzboy Posted September 25, 2006 Posted September 25, 2006 i saw a couple of works by a team...where the main dialog box opened from a point......i mean froma point to the dialog box....i was wondering how does one proceed to attain this !thanx *
KrUeGeR Posted September 25, 2006 Posted September 25, 2006 (edited) mess around with the "AnimateWindow" The AnimateWindow function enables you to produce special effects when showing or hiding windows. There are three types of animation: roll, slide, and alpha-blended fade. _http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/animatewindow.asp heres an example invoke AnimateWindow,hWnd,1000,AW_CENTER+AW_ACTIVATEinvoke AnimateWindow,hWnd,1000,AW_CENTER+AW_HIDE an example app using this method hhh.rar Source here Animate.rar I hope this helps also dont forget you can change how long it takes it to expand/shrink invoke AnimateWindow,hWnd,1999,AW_CENTER+AW_ACTIVATE - Slowinvoke AnimateWindow,hWnd,199,AW_CENTER+AW_ACTIVATE -Fast Edited September 25, 2006 by KrUeGeR
Ehtyar Posted September 25, 2006 Posted September 25, 2006 Also try the SetLayeredWindowAttribute API, it will fade in/out smoother than AnimateWindow if used in a loop.
starzboy Posted September 26, 2006 Author Posted September 26, 2006 Thanx all....Animate window is kool to play around withbtw....When using AnimateWindow the transparent buttons are not handled well and are drawn as visible in the foreground.is there anyway to handle this situation !*
Ehtyar Posted September 26, 2006 Posted September 26, 2006 Try using RedrawWindow with the RDW_UPDATENOW flag before u call AnimateWindow.
Guest tieulong Posted September 30, 2006 Posted September 30, 2006 (edited) nice one, thanks Edited September 30, 2006 by tieulong
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now