News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Background image from resource

Started by Norad00, April 07, 2005, 03:36:34 PM

Previous topic - Next topic

Norad00

Hi all,

In Visual Basic, you can set a window to have an image as the background. Is this possible using asm?

P1

Norad00,

Check here for a general use example.

C:\Masm32\EXAMPLE4\STRCHBLT

Start going through your Help files and tutorials, you will come up to speed quicker if you do.

Googling is a good thing too!    :U

Regards,  P1  :8)

Faiseur

Naturally. If your image is a bitmap, use for example:


in WM_INITDIALOG


Invoke LoadBitmap, hInstance, yourbitmapinressource
Mov hBitmap, Eax
invoke CreatePatternBrush,eax
mov hBrushD,eax


in WM_CTLCOLORDLG


mov eax,hBrushD
Ret



In attachment this is a good example (it is not from me).

   

[attachment deleted by admin]
French asm Forum: http://www.asmforum.net/   Website: http://www.faiseur.net/