fantast_xu wrote:in 32bit screen depth mode,this works fine. the lpPixels is 32bit with correct alpha value. But in 16bit screen depth mode, lpPixels's alpha value is alwyas zero.
I guess in 32bit mode, the bitmap data:lpPixels is 32bit, and in 16bit mode, the bitmap data is also 16bit. Maybe 1,5,5,5(ARGB) format. Am I right? And how can I get 32bit bitmap with right alpha channel in 16bit mode?
fantast_xu wrote:Then in WinEndDlgProc's WM_INITDIALOG, we use code below:
m_hwndFlashPlayerControl = FPC_CreateWindow(m_hFPC, 0 ? WS_EX_LAYERED : 0, NULL, 0 ? WS_POPUP : WS_CHILD | WS_VISIBLE | FPCS_TRANSPARENT,
0, 0, 100, 100, m_ParentHwnd, NULL, NULL, NULL);
fantast_xu wrote:my code like this:
case WM_NOTIFY:
{
NMHDR* pNMHDR = (NMHDR*)lParam;
switch (pNMHDR->code)
{
case FPCN_FSCOMMAND:
{
SFPCFSCommandInfoStruct* pInfo = (SFPCFSCommandInfoStruct*)lParam;
if( strcmp( pInfo->command, "quit") == 0 )
{
.......
}
}
}
}
fantast_xu wrote:Yes, It's in a parent window's WndProc.
Code: Select all
m_hwndFlashPlayerControl = FPC_CreateWindow(...);
ASSERT( ::GetParent(m_hwndFlashPlayerControl) == m_ParentHwnd );
Users browsing this forum: No registered users and 15 guests