FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Window Background
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Window Background
Posted: Tue Apr 18, 2006 11:59 PM

I have a .bmp that I created for a window background. The problem is that it will tile, and I only want it to be shown once.

Can we set a background any other way than with a brush ?

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Window Background
Posted: Wed Apr 19, 2006 12:42 AM

Tim,

Try this:

 define bitmap oBmp file "logo.bmp"

 define window oWnd...;
  on paint PalBmpDraw( oWnd:oWndClient:hDC, (oWnd:nHeight/2-oBmp:nHeight/2)-50,(oWnd:nWidth/2-oBmp:nWidth/2), oBmp:hBitmap, oBmp:hPalette )

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion