F-IN-BOX DLL Edition Help >> Extensions >> Notifications

FPCN_PAINT

Message

[ C++ ]
  1. FPCN_PAINT  

Structure

[ C++ ]
  1. typedef struct SFPCNPaint  
  2. {  
  3.     NMHDR hdr;  
  4.   
  5.     // [in]  
  6.     LPDWORD lpPixels;  
  7.   
  8. } SFPCNPaint;  

Description

You should create an f-in-box window with FPCS_TRANSPARENT style (if you create a child window, WS_CHILD) or with WS_EX_LAYERED extended style (if you create a popup window) to use FPCN_PAINT. FPCN_PAINT is called each time immediately before painting. lpPixels points to a buffer of pixels (DWORD for each pixel).

Here an example:

[ C++ ]
  1. HWND hwnd_F_IN_BOX;  
  2. ...  
  3. FPCSetEventListener(hwnd_F_IN_BOX, &EventListener, 0);  
  4. ...  
  5. void WINAPI EventListener(HWND hwndFlashPlayerControl, LPARAM lParam, NMHDR* lpNMHDR)  
  6. {  
  7.     if (FPCN_PAINT == lpNMHDR->code)  
  8.     {  
  9.         SFPCNPaint* pFPCNPaint = (SFPCNPaint*)pNMHDR;  
  10.         LPDWORD lpPixels = pFPCNPaint->lpPixels; // <-- pixels buffer  
  11.     }  
  12. }  


Copyright © Softanics. All rights reserved.
F-IN-BOX is a trademark of Softanics.
Macromedia and Shockwave Flash are trademarks of Adobe