?
解决方案 »
- 好心人,帮我下,建立临时网络,用户连接一直显示等待连接
- 求助:VC当文档中添加了一个控件,如何给这个控件关联一个变量。
- 请教高手:如何应用threadproc这个函数~~~新手上路
- 没钱吃饭了,求职(VC++)附简历
- 输入两个点能画一条线
- 请问如何将十六进制字符串转换成 BYTE数组中!!
- 如何对整个Dialog 进行setwindowtext(),来改变对话框的标题
- 有人研究过凤之焚的MimeFilter例子吗?有个BUG死活解决不了。。
- Windows 已在 XXXX.exe 中触发一个断点。 其原因可能是堆被损坏,这说明 XXXX.exe 中或它所加载的任何 DLL 中有 Bug
- 各位是如何调试dll程序的,不放进来说说。
- MFC中flash如何透明??
- 请问谁有王艳平的《windows程序设计》?
Compiling...
flash.cpp
D:\vc\flash\flash\flash.cpp(67) : error C2065: 'WS_EX_LAYERED' : undeclared identifier
FlashWnd.cpp
d:\vc\flash\flash\flashwnd.h(283) : error C2065: 'WS_EX_LAYERED' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\comip.h(660) : while compiling class-template member function 'int __thiscall COleContainerWnd<struct ShockwaveFlashObjects::IShockwaveFlash>::Create(struct _GUID,unsigned long,unsigned l
ong,struct HWND__ *,struct HINSTANCE__ *)'
d:\vc\flash\flash\flashwnd.h(681) : error C2065: 'AC_SRC_ALPHA' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\comip.h(660) : while compiling class-template member function 'void __thiscall COleContainerWnd<struct ShockwaveFlashObjects::IShockwaveFlash>::Draw(struct HDC__ *,const struct tagRECT *,
int)'
d:\vc\flash\flash\flashwnd.h(684) : error C2065: 'UpdateLayeredWindow' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\comip.h(660) : while compiling class-template member function 'void __thiscall COleContainerWnd<struct ShockwaveFlashObjects::IShockwaveFlash>::Draw(struct HDC__ *,const struct tagRECT *,
int)'
d:\vc\flash\flash\flashwnd.h(684) : error C2065: 'ULW_ALPHA' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\comip.h(660) : while compiling class-template member function 'void __thiscall COleContainerWnd<struct ShockwaveFlashObjects::IShockwaveFlash>::Draw(struct HDC__ *,const struct tagRECT *,
int)'
d:\vc\flash\flash\flashwnd.h(684) : error C2065: 'ULW_OPAQUE' : undeclared identifier
c:\program files\microsoft visual studio\vc98\include\comip.h(660) : while compiling class-template member function 'void __thiscall COleContainerWnd<struct ShockwaveFlashObjects::IShockwaveFlash>::Draw(struct HDC__ *,const struct tagRECT *,
int)'
Generating Code...
Error executing cl.exe.flash.exe - 6 error(s), 0 warning(s)
如果还没搞定, 我发工程给你,
最近在搞这个,麻烦发一份给我,谢谢
[email protected]
我也在研究这个,能不能也发一份给我,谢谢
[email protected]
原因可能是ShockWaveFlash控件的宿主host窗口不是透明的;
CodeProject有个洋牛,写了个东东可以,但很费资源,具体地址忘记了。
[code]
CString strFlashPropPath=_tgetenv(_T("tmp"));
strFlashPropPath+="\\transflash.prop";
CFile g_fpFlash(strFlashPropPath,CFile::modeCreate|CFile::modeReadWrite);
HRSRC res1=FindResource(NULL,MAKEINTRESOURCE(FLASHPROP),"BIN");
HGLOBAL hg1=LoadResource(NULL,res1);
LPVOID lpv1=LockResource(hg1);
g_fpFlash.Write(lpv1,SizeofResource(NULL,res1));
g_fpFlash.Close(); CFile fp(strFlashPropPath,CFile::modeRead);
m_flash.Create(NULL,NULL,CRect(0,0,640,640),this,1000,&fp,TRUE);
fp.Close();
m_flash.put_Movie("e:\\ui.swf"); // 这里随便写个地址加载
m_flash.Play();
[/code]
其中FLASHPROP是一个ACTIVEX CONTROL TEST CONTAINER保存的透明FLASH的状态文件IMPORT到资源里的ID.在OnPaint里面:
[code]
RECT rt;
GetClientRect(&rt);
CDC memdc;
CBitmap bmp;
memdc.CreateCompatibleDC(GetDC());
bmp.CreateCompatibleBitmap(GetDC(),rt.right,rt.bottom);
memdc.SelectObject(&bmp);
PaintWindowlessControls(&memdc);
dc.BitBlt(0,0,rt.right,rt.bottom,&memdc,0,0,SRCCOPY);
[/code]这样就OK了.注: 这个需要在VC7上才有效, VC6不支持IOleInplaceObjectWindowless接口.
笔误.
[email protected]