Click here to Skip to main content
15,914,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CString AND TCHAR AND [260] Pin
Code-o-mat24-Nov-08 23:34
Code-o-mat24-Nov-08 23:34 
QuestionGet current network domain name Pin
Krishnakumartg24-Nov-08 22:25
Krishnakumartg24-Nov-08 22:25 
AnswerRe: Get current network domain name Pin
SandipG 24-Nov-08 22:32
SandipG 24-Nov-08 22:32 
QuestionGetting current firewall profile Pin
Krishnakumartg24-Nov-08 22:23
Krishnakumartg24-Nov-08 22:23 
AnswerRe: Getting current firewall profile Pin
User 21559725-Nov-08 1:21
User 21559725-Nov-08 1:21 
GeneralRe: Getting current firewall profile Pin
Krishnakumartg26-Nov-08 0:05
Krishnakumartg26-Nov-08 0:05 
Questionslider and MCIWnd Pin
soongez24-Nov-08 21:57
soongez24-Nov-08 21:57 
Questionslider and MCIWnd Pin
soongez24-Nov-08 21:55
soongez24-Nov-08 21:55 
Hi, I'm trying to add a slider to my program to display the progress of a track when loading a sound file using the MCI functions.

It can seek, but I'm having a few issues.

firstly the slider does not get updated as the song plays, just remains the the same position until u slide it.

When you move the mouse over the position indicator of the slider, the playback jumps back to the position even if the track is currently playing from a different position.

I've been using the following project as an example.


I've added the timers, and some other things I've notice
void CUCPView::OnTimer(UINT nIDEvent)
{
	CWinApp* pApp;
	pApp=AfxGetApp();

	if(nIDEvent == ID_TIMER_POSITION)
	{
		lPos = MCIWndGetPosition(m_Audio);
		//c_Slider.SetPos(lPos);
		m_Pos = lPos;
		UpdateData(FALSE);
	}
	CFormView::OnTimer(nIDEvent);
}


void CUCPView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_SLIDER1, c_Slider);
	DDX_Slider(pDX, IDC_SLIDER1, m_Pos);
//	DDX_Control(pDX, IDC_PLAYER, m_ctrlPlayer); //added this
}


ON_NOTIFY(NM_CUSTOMDRAW, IDC_SLIDER1, &CUCPView::OnNMCustomdrawSlider1)

QuestionHide folder Pin
MsmVc24-Nov-08 20:48
MsmVc24-Nov-08 20:48 
AnswerRe: Hide folder Pin
SandipG 24-Nov-08 20:58
SandipG 24-Nov-08 20:58 
GeneralRe: Hide folder Pin
MsmVc24-Nov-08 21:10
MsmVc24-Nov-08 21:10 
GeneralRe: Hide folder Pin
SandipG 24-Nov-08 21:32
SandipG 24-Nov-08 21:32 
AnswerRe: Hide folder Pin
Hamid_RT24-Nov-08 20:59
Hamid_RT24-Nov-08 20:59 
QuestionMonitor Resolution problem............ Pin
shaina223124-Nov-08 20:30
shaina223124-Nov-08 20:30 
AnswerRe: Monitor Resolution problem............ Pin
_AnsHUMAN_ 24-Nov-08 20:46
_AnsHUMAN_ 24-Nov-08 20:46 
AnswerRe: Monitor Resolution problem............ Pin
Hamid_RT24-Nov-08 20:58
Hamid_RT24-Nov-08 20:58 
AnswerRe: Monitor Resolution problem............ Pin
Code-o-mat24-Nov-08 21:48
Code-o-mat24-Nov-08 21:48 
GeneralRe: Monitor Resolution problem............ Pin
CPallini24-Nov-08 23:29
mveCPallini24-Nov-08 23:29 
QuestionHow to convert image file *.pcx image into *.jpg image format. Pin
Member 462021624-Nov-08 19:42
Member 462021624-Nov-08 19:42 
AnswerRe: How to convert image file *.pcx image into *.jpg image format. Pin
Hamid_RT24-Nov-08 20:21
Hamid_RT24-Nov-08 20:21 
GeneralRe: How to convert image file *.pcx image into *.jpg image format. Pin
Member 462021624-Nov-08 21:22
Member 462021624-Nov-08 21:22 
GeneralRe: How to convert image file *.pcx image into *.jpg image format. Pin
enhzflep24-Nov-08 21:37
enhzflep24-Nov-08 21:37 
AnswerRe: How to convert image file *.pcx image into *.jpg image format. Pin
Mark Salsbery25-Nov-08 9:09
Mark Salsbery25-Nov-08 9:09 
Questionparent window is getting closed once child window is closed, how to keep parent dialog box alive? Pin
puppya24-Nov-08 19:14
puppya24-Nov-08 19:14 
AnswerRe: parent window is getting closed once child window is closed, how to keep parent dialog box alive? Pin
Hamid_RT24-Nov-08 19:29
Hamid_RT24-Nov-08 19:29 

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.