Posted September 25, 200618 yr 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 *
September 25, 200618 yr 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, 200618 yr by KrUeGeR
September 25, 200618 yr Also try the SetLayeredWindowAttribute API, it will fade in/out smoother than AnimateWindow if used in a loop.
September 26, 200618 yr Author 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 !*
September 26, 200618 yr Try using RedrawWindow with the RDW_UPDATENOW flag before u call AnimateWindow.
Create an account or sign in to comment