=)
=)
Lailton,
TMsgBar uses a bitmap to get painted, so in order to change its colors, you have to create your own MsgBar2007( ::hDC ) function that will return your desired hBmp.
Or simply replace this line:
hBmp = MsgBar2007( ::hDC )
with
hBmp = LoadBitmap( GetResources(), "myBMP" )
i ll try
only a question, where is salved this bitmap of style 2007 ?
because i dont see nothing in fivewin directory
Thanks Antonio
Lailton,
Its hardcoded in a C file as bytes.
We created a bitmap, then created a C file with its bytes. You can do it from the Borland Resources workshop.
Sure Antonio
i try here and all right
thanks
Lailton,
In Class TMsgItem Method Paint(), change or remove this:
WndBoxIn( hDC, 2, nLeft - 4, ::oMsgBar:nHeight - 2, nLeft - 3 )
DrawBitmap( hDC, hBmp, 2, nLeft - 4 )
Perfect Antonioooooooooooooo
thanks so much...
Lailton,
I don't understand what you mean.
Can you "paint" it and show it here ? ![]()

En tu imagen se ve un degradado, no se ve un bitmap.
A que bitmap te refieres ?

If you want to place another bitmap on top of the msgbar then you may use:
oMsgBar:bPainted = { | hDC | ... }
or modify Class TMsgBar source code.
i wanna insert other bitmap only menssagem understand ??