Click here to Skip to main content
15,920,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Rich edit vertical scroll bar not working Pin
Rage1-Jul-03 22:47
professionalRage1-Jul-03 22:47 
GeneralModal dialog removes my App from Alt+Tab windows... Pin
insanely4201-Jul-03 19:36
insanely4201-Jul-03 19:36 
GeneralRe: Modal dialog removes my App from Alt+Tab windows... Pin
basementman2-Jul-03 5:02
basementman2-Jul-03 5:02 
GeneralRe: Modal dialog removes my App from Alt+Tab windows... Pin
insanely4202-Jul-03 5:42
insanely4202-Jul-03 5:42 
GeneralRe: Modal dialog removes my App from Alt+Tab windows... Pin
insanely4202-Jul-03 7:41
insanely4202-Jul-03 7:41 
GeneralRe: Modal dialog removes my App from Alt+Tab windows... Pin
insanely4202-Jul-03 7:43
insanely4202-Jul-03 7:43 
Generalcrystal reports in VC++ Pin
modular1-Jul-03 19:05
modular1-Jul-03 19:05 
GeneralShockwave Flash in dialog Pin
Andrew Allen1-Jul-03 18:59
Andrew Allen1-Jul-03 18:59 
Does anyone here know how to use the Shockwave Flash OCX in a dialog. I'm not sure which wrapper functions to use to get the thing working.

I'm using VC++ 7 with MFC. I have Macromedia Flash 5.0.44.0 installed and I can play Flash in IE6.

I want to create a dialog box that plays a Flash (.swf) file. I inserted the Shockwave Flash ActiveX (OCX) control into my dialog. VC++ added an IDispatch wrapper class, CShockwaveflash, to my project and to the dialog class. My dialog is defined like this:

class CMyDlg : public CDialog<br />
{<br />
	DECLARE_DYNAMIC(CMyDlg)<br />
<br />
public:<br />
	CMyDlg(CWnd* pParent = NULL);   // standard constructor<br />
	virtual ~CMyDlg();<br />
<br />
// Dialog Data<br />
	enum { IDD = IDD_MYDIALOG };<br />
<br />
protected:<br />
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support<br />
	virtual BOOL OnInitDialog();<br />
<br />
	DECLARE_MESSAGE_MAP()<br />
public:<br />
	CShockwaveflash m_FlashCtrl;<br />
};


In my implementation....

BOOL CMyDlg::OnInitDialog()<br />
{<br />
	if (CDialog::OnInitDialog())<br />
	{<br />
		m_FlashCtrl.put_Movie(_T("sample.swf"));<br />
		m_FlashCtrl.Play();<br />
		return TRUE;<br />
	}<br />
	return FALSE;<br />
}


When I run the dialog, the OCX shows the default background but no flash video. I can't find any documentation on using this OCX, even at Macromedia.

Any sample code that works?

thanks in advance,


Andrew
GeneralRe: Shockwave Flash in dialog Pin
Mil102-Jul-03 0:40
Mil102-Jul-03 0:40 
GeneralRe: Shockwave Flash in dialog Pin
Andrew Allen2-Jul-03 5:32
Andrew Allen2-Jul-03 5:32 
GeneralAdvice Needed: MFC List Control Format Problem Pin
spaced_out1-Jul-03 18:10
spaced_out1-Jul-03 18:10 
GeneralRe: Advice Needed: MFC List Control Format Problem Pin
FlyingDancer1-Jul-03 18:55
FlyingDancer1-Jul-03 18:55 
GeneralRe: Advice Needed: MFC List Control Format Problem Pin
spaced_out1-Jul-03 19:20
spaced_out1-Jul-03 19:20 
GeneralRe: Advice Needed: MFC List Control Format Problem Pin
spaced_out1-Jul-03 19:45
spaced_out1-Jul-03 19:45 
GeneralRe: Advice Needed: MFC List Control Format Problem Pin
FlyingDancer1-Jul-03 22:00
FlyingDancer1-Jul-03 22:00 
GeneralA book or tutorial to help beginner... Pin
code-frog1-Jul-03 18:10
professionalcode-frog1-Jul-03 18:10 
GeneralRe: A book or tutorial to help beginner... Pin
Toni781-Jul-03 18:36
Toni781-Jul-03 18:36 
GeneralRe: A book or tutorial to help beginner... Pin
code-frog1-Jul-03 18:41
professionalcode-frog1-Jul-03 18:41 
GeneralRe: A book or tutorial to help beginner... Pin
Toni781-Jul-03 19:27
Toni781-Jul-03 19:27 
GeneralRe: A book or tutorial to help beginner... Pin
Jon Sagara1-Jul-03 21:50
Jon Sagara1-Jul-03 21:50 
Generalhtml in a dialog Pin
pranavamhari1-Jul-03 16:47
pranavamhari1-Jul-03 16:47 
GeneralRe: html in a dialog Pin
Scozturk1-Jul-03 20:11
professionalScozturk1-Jul-03 20:11 
GeneralRe: html in a dialog Pin
Joan M1-Jul-03 22:00
professionalJoan M1-Jul-03 22:00 
GeneralVS 6 IDE forgot what F1 does Pin
Chris Losinger1-Jul-03 16:41
professionalChris Losinger1-Jul-03 16:41 
GeneralRe: VS 6 IDE forgot what F1 does Pin
code-frog1-Jul-03 18:00
professionalcode-frog1-Jul-03 18:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.