To Antonio
- Antonio Linares
- Site Admin
- Posts: 42553
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 80 times
- Contact:
-
- Posts: 603
- Joined: Sun May 04, 2008 8:44 pm
hey
Antonio estoy enviando lo arquivo
http://www.redstarsoft.net/files/barra.bmp
Isto es lo que quero en resultado final
http://www.redstarsoft.net/files/teste.zip
isto es como estas ate ahora.
gracias pela atencion.
http://www.redstarsoft.net/files/barra.bmp
Isto es lo que quero en resultado final
http://www.redstarsoft.net/files/teste.zip
isto es como estas ate ahora.
gracias pela atencion.

-
- Posts: 603
- Joined: Sun May 04, 2008 8:44 pm
- Antonio Linares
- Site Admin
- Posts: 42553
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 80 times
- Contact:
Code: Select all | Expand
#include "FiveWin.ch"
function Main()
local oBmp, oWnd, oBar
DEFINE BITMAP oBmp FILENAME "barra.bmp"
DEFINE WINDOW oWnd
SET MSGBAR OF oWnd TO "" 2007
oWnd:oMsgbar:bPainted = { | hDC | DrawBitmap( hDC, oBmp:hBitmap, 1, 5 ),;
DrawBitmap( hDC, oBmp:hBitmap, 1, 85 ) }
ACTIVATE WINDOW oWnd
oBmp:End()
return nil

-
- Posts: 603
- Joined: Sun May 04, 2008 8:44 pm
i need that this bitmap that u show in your picture UP
stay only of background of ::cMsg of messagebar
and other thing,,
i m trying use it
but no show inside of windows OWND
only test more no show
stay only of background of ::cMsg of messagebar
and other thing,,
i m trying use it
Code: Select all | Expand
DrawBitmap(ownd, LoadBitmap( GetResources(), "FUNDO" ), 1, 5 )
but no show inside of windows OWND
only test more no show

- Antonio Linares
- Site Admin
- Posts: 42553
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 80 times
- Contact:
-
- Posts: 603
- Joined: Sun May 04, 2008 8:44 pm
x
Antonio, i did it more no how imagem in ownd
Code: Select all | Expand
DEFINE BITMAP oBmp RESOURCE "FUNDOTEXTO"
DEFINE WINDOW oWnd TITLE "FiveWin" MENU BuildMenu()
DrawBitmap(ownd:hDC, oBmp, 10, 10, 100, 100 )
ownd:oMsgbar:clockon()
ownd:oMsgbar:dateon()
ACTIVATE WINDOW oWnd
- Antonio Linares
- Site Admin
- Posts: 42553
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 80 times
- Contact:
Lailton,
If you want to paint a bitmap on the window, then do it this way:
If you want to paint a bitmap on the window, then do it this way:
Code: Select all | Expand
DEFINE BITMAP oBmp RESOURCE "FUNDOTEXTO"
DEFINE WINDOW oWnd TITLE "FiveWin" MENU BuildMenu()
ACTIVATE WINDOW oWnd ;
ON PAINT DrawBitmap(ownd:hDC, oBmp:hBitmap, 10, 10, 100, 100 )
-
- Posts: 603
- Joined: Sun May 04, 2008 8:44 pm