Thread: Please...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    88

    Please...

    can some one write for me a function that draw a simple
    bmp in transparent draw
    and it will get these parameteres

    FuncName(x,y,Heigh,Weight,HBITMAP,Transparent Color, .... all the others that you will need ...);

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    I dug a little in an old program, and this is what I found. Maybe you can make something out of it. This should be called when a WM_PAINT message is sent.
    Code:
    PAINTSTRUCT Ps;
    HDC hDc;
    hDc=BeginPaint(hWnd, &Ps);
    DrawState(hDc, NULL, NULL, (LPARAM)hBitmap, 0, X, Y, Width, Height, DST_BITMAP | DSS_NORMAL);
    EndPaint(hWnd, &Ps);
    Last edited by Magos; 05-14-2002 at 03:32 PM.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    88
    hmmm


    can you explain more about this
    the parametres and all the stuff
    ??

  4. #4
    Unregistered
    Guest
    How about stop being lazy and look it up yourself?

  5. #5
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    >>How about stop being lazy and look it up yourself?

    I wish there was a button in this Javascript editor thingy (the one that has preset tags and stuff) that lets you insert this sentence automaticaly...

Popular pages Recent additions subscribe to a feed