hey,All This is a moving bmp. Could you help me to change a text from a bmp? regards 522560717__mt_5.rar
dcskm4200 If you realize what does this code do, you find that replacing the butterfly with a text is very easy. Just replace BitBlt call in WM_PAINT handling by TextOut.
print (TextOut) some text into buffer, wich you use for batterfly, instead LoadBitmap: Код (Text): // C example HDC memdc = CreateCompatibleDC (dc); HBITMAP hbmp = CreateCompatibleBitmap (dc, 200, 20); SelectObject (memdc, hbmp); TextOut (memdc, 1, 1, "Some text");
hello, All who are interested the topic. Thanks you for response. I'v already used any method which I knew(include TextOut and PolyTextOut). if i have the ability to finished it. I must do. there is the source code. help me to modify it, and post it here. regards.
dcskm4200 hi! why do you insist on typing letters instead of flying ready small bmps from resources? otherwise, as i understand, you should create bitmaps in memory, type letter on them, then copy to main window. or you even can generate a set of such bmps at run-time. and you should have algorythm of proper restoring subwindow when you remove char image to move it: in that script layers were used. i've not working with grafic yet. so, you can look at masm32 example: masm32\oop\CSprite\smilies.exe regards!
Hey,Shoo Thanks you for help. I want to figure out the problem which the chars are glittering in clock. Because i found the bmp is not glittering when it is moving. as long as I change the bmp to text. I will finish the clock. until now, i tried many times,I'v always failed. regards
Hello,yureckor I modified your code for controling the font. But the background of the string changed his sizes when the string is moving from bottom to top. regards 1935709302__7.rar