News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Scroller AlphaBlend

Started by ragdog, August 04, 2013, 11:19:41 PM

Previous topic - Next topic

ragdog

Hi

I have a Horizontal Text scroller now wish i add win32 APi AlphaBlend
http://msdn.microsoft.com/en-us/library/windows/desktop/dd183351%28v=vs.85%29.aspx

Code snipp:

invoke DrawText,hDcScroll,esi,1,addr rcScroll,DT_SINGLELINE or DT_VCENTER
invoke GetTextExtentPoint32,hDcScroll,esi,1,addr lpSize
mov eax, lpSize.x
add rcScroll.left, eax
pop ecx
inc esi
dec ecx

.endw
invoke BitBlt,hDC,Scrollx,Scrolly,Scrollw,rc.bottom,hDcScroll,NULL,NULL,SRCCOPY
invoke Sleep,30


Can any explain me this api to use it?