FPCN_PAINT
Syntax
FPCN_PAINT
typedef struct SFPCNPaint
{
NMHDR hdr;
// [in] Pointer to pixel buffer (DWORD per pixel)
LPDWORD lpPixels;
} SFPCNPaint;Description
The FPCN_PAINT notification is sent each time before the control paints its content.
It provides direct access to the raw pixel buffer of the frame via lpPixels.
To receive this notification, create an F-IN-BOX window with one of the following:
FPCS_TRANSPARENTstyle (for child windows, useWS_CHILD).WS_EX_LAYEREDextended style (for popup windows).
This event is useful if you want to post-process frame data before it is rendered (for example, applying custom effects).
Example
HWND hwnd_F_IN_BOX;
...
FPCSetEventListener(hwnd_F_IN_BOX, &EventListener, 0);
...
void WINAPI EventListener(HWND hwndFlashPlayerControl, LPARAM lParam, NMHDR* lpNMHDR)
{
if (FPCN_PAINT == lpNMHDR->code)
{
SFPCNPaint* pFPCNPaint = (SFPCNPaint*)lpNMHDR;
// Access the pixel buffer directly
LPDWORD lpPixels = pFPCNPaint->lpPixels;
// Example: process pixels here
}
}