Click here to Skip to main content
15,917,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionprinting from CScrollView Pin
vikas amin29-Sep-05 23:33
vikas amin29-Sep-05 23:33 
QuestionHow to add a bullet to the text ? Pin
Amarelia29-Sep-05 23:16
Amarelia29-Sep-05 23:16 
AnswerRe: How to add a bullet to the text ? Pin
mark novak30-Sep-05 2:32
mark novak30-Sep-05 2:32 
QuestionAny better solution to solve this? Pin
G Haranadh29-Sep-05 23:04
G Haranadh29-Sep-05 23:04 
AnswerRe: Any better solution to solve this? Pin
S. Senthil Kumar30-Sep-05 0:39
S. Senthil Kumar30-Sep-05 0:39 
QuestionHow to Disable/Hide Mouse Cursor ? Pin
Amarelia29-Sep-05 22:36
Amarelia29-Sep-05 22:36 
AnswerRe: How to Disable/Hide Mouse Cursor ? Pin
mark novak30-Sep-05 2:26
mark novak30-Sep-05 2:26 
QuestionPlaying Video In Dialogs Pin
sweep12329-Sep-05 22:31
sweep12329-Sep-05 22:31 
In my MFC application, I create a series of 4 dialog windows all idential (an array of dialogs).

Now I play a different video on each dialog on an Animate control.

For Dialog 1 (index 0) - see code below:-

// Control of the video window facilities<br />
CAnimateCtrl m_screen;<br />
// Handle to the MCI window for playing video (.avi and .mpg)<br />
HWND hMCI[4] = {NULL, NULL, NULL, NULL};<br />
<br />
hMCI[0] = MCIWndCreate(m_screen, AfxGetApp()->m_hInstance, MCIWNDF_SHOWALL | MCIWNDF_NOMENU | MCIWNDF_NOOPEN | MCIWNDF_NOPLAYBAR, "animation.mpg");	// 		<br />
PlayVideo(0);<br />
<br />
/* If the MCI video window has been activated the close it	*/<br />
/* This is so it can be resized when restarted				*/<br />
if(hMCI[index])<br />
{<br />
	MCIWndClose (hMCI[index]);<br />
	m_MainText.ShowWindow (SW_SHOW);	<br />
	playVideo = true;<br />
	displayed = false;<br />
	m_screen.ShowWindow (SW_HIDE); <br />
}<br />
<br />
void CEmuDlg::PlayVideo(short index)<br />
{<br />
	if(playVideo)<br />
	{<br />
		m_MainText.ShowWindow (SW_HIDE);<br />
		m_screen.ShowWindow (SW_SHOW); <br />
		// Arrange for the window to be maximised for the Animation control size stingray_animation.mpg<br />
		::ShowWindow(hMCI[index],SW_MAXIMIZE);<br />
		// Play the video<br />
		MCIWndPlay(hMCI[index]);<br />
		/* Arrange for the video to be played repeatedly	*/<br />
		MCIWndSetRepeat(hMCI[index],TRUE);	// Only works for actions on Menu Bar of the MCI<br />
		playVideo = false;<br />
	}<br />
	else<br />
	{<br />
		// Hide the animation window<br />
		MCIWndPause(hMCI[index]);<br />
		//MCIWndStop(hMCI);<br />
		//MCIWndClose(hMCI);<br />
		m_screen.ShowWindow (SW_HIDE); <br />
		playVideo = true;<br />
		// Is the clear box checked?<br />
		if(!m_pClear.GetCheck ())<br />
			m_MainText.ShowWindow (SW_SHOW);<br />
	}<br />
}

Now the video only plays on a single dialog window. Do I need to do anything else to allow a different video play on dialog 3 say at the same time.

Can I only play on video per application?
QuestionDialog Communication Pin
fjlv200529-Sep-05 22:30
fjlv200529-Sep-05 22:30 
AnswerRe: Dialog Communication Pin
Cedric Moonen29-Sep-05 22:36
Cedric Moonen29-Sep-05 22:36 
GeneralRe: Dialog Communication Pin
fjlv200529-Sep-05 22:56
fjlv200529-Sep-05 22:56 
QuestionMFC reporting tools? Pin
bryan52329-Sep-05 22:02
bryan52329-Sep-05 22:02 
QuestionLogFile Pin
SachinSingla29-Sep-05 22:00
SachinSingla29-Sep-05 22:00 
AnswerRe: LogFile Pin
ThatsAlok29-Sep-05 22:27
ThatsAlok29-Sep-05 22:27 
AnswerRe: LogFile Pin
ThatsAlok29-Sep-05 22:28
ThatsAlok29-Sep-05 22:28 
QuestionAcquireCredentialsHandle returns SEC_E_INTERNAL_ERROR Pin
sunit529-Sep-05 21:32
sunit529-Sep-05 21:32 
QuestionGet pixel data from DirectX or OpenGL Pin
29-Sep-05 21:22
suss29-Sep-05 21:22 
AnswerRe: Get pixel data from DirectX or OpenGL Pin
Bartosz Bien30-Sep-05 1:04
Bartosz Bien30-Sep-05 1:04 
Questionwindows printer spool Pin
Marc Soleda29-Sep-05 20:55
Marc Soleda29-Sep-05 20:55 
QuestionWindows 98 DDK Pin
karmendra_js29-Sep-05 20:47
karmendra_js29-Sep-05 20:47 
AnswerRe: Windows 98 DDK Pin
tssp29-Sep-05 21:10
tssp29-Sep-05 21:10 
QuestionWindows Error Message Pin
.NetRams29-Sep-05 19:50
.NetRams29-Sep-05 19:50 
AnswerRe: Windows Error Message Pin
Mircea Puiu30-Sep-05 21:23
Mircea Puiu30-Sep-05 21:23 
QuestionCAsyncSocket vs CAsyncSocketEx Pin
Suraihan29-Sep-05 19:38
Suraihan29-Sep-05 19:38 
QuestionBitmap Dialog. Pin
rajeev8229-Sep-05 19:10
rajeev8229-Sep-05 19:10 

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.