justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: how to use UpdateLayeredWindow function with LICE?
Asked by ruchira (61.245.172.x) on February 3 2012, 3:44pm
Reply on February 6 2012, 4:59am (edited at February 6 2012, 5:01am):
    Probably something like:
    
      LICE_SysBitmap a; // draw there
      int alpha=255;
    
      HDC dc = a.getDC();
      RECT r;
      GetWindowRect(hwnd, &r);
      SIZE rs = {r.right-r.left, r.bottom-r.top};
      BLENDFUNCTION blendPixelFunction= { AC_SRC_OVER, 0, alpha, AC_SRC_ALPHA };
      POINT psrc ={0,0};
      UpdateLayeredWindow(hwnd, GetDC(NULL), (LPPOINT)&r, &rs, dc, &psrc, 0, &blendPixelFunction, ULW_ALPHA);
    
    
    (this assumes you have a window with no titlebar etc, like our splash screen...)

Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS