How to use progress bar here

Hi,
I have created a progress bar in the dialog box using this code
 
CONTROL         "",IDC_PROGRESS1,"msctls_progress32",WS_BORDER,20,67,122,14


And I have two functions to be executed(one will be executed on clicking the check box)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Some modifications are mainly based on the work of Thomas1965
case WM_COMMAND:
		if (LOWORD(wParam) == IDOK)
		{
			checked = IsDlgButtonChecked(hDlg, IDC_CHECK1);
			if (checked)
				recycler();
			else
			RemoveDirectory("C:\\Users\\User\\Desktop\\Newfolder");
		}
		else if (LOWORD(wParam) == IDCANCEL)
			EndDialog(hDlg, LOWORD(wParam));

		return (INT_PTR)TRUE;


How do I show the progress of this two functions,

I tried msdn documentation but it is quiet difficult to figure out for this case

Please help me

Thank you in advance
You got a PM.
Topic archived. No new replies allowed.