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

FPCN_PAINT

Message

[ C++ ]
FPCN_PAINT

Structure

[ C++ ]
typedef struct SFPCNPaint
{
    NMHDR hdr;

	// [in]
	LPDWORD lpPixels;

} 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++ ]
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*)pNMHDR;
		LPDWORD lpPixels = pFPCNPaint->lpPixels; // <-- pixels buffer
	}
}


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