1 //////////////////////////////////////////////
\r
6 #include "DialogApp.h"
\r
8 void CMySlider::OnInitialUpdate()
\r
10 // Called automatically via AttachDlgItem
\r
12 // Set a tic mark every ten units for the slider control
\r
16 LRESULT CMySlider::OnMessageReflect(UINT uMsg, WPARAM wParam, LPARAM lParam)
\r
18 UNREFERENCED_PARAMETER(wParam);
\r
19 UNREFERENCED_PARAMETER(lParam);
\r
25 // Get the slider bar position
\r
26 int nPos = GetPos();
\r
28 // Get a reference to the MyDialog object
\r
29 CMyDialog& MyDialog = GetDialogApp().GetDialog();
\r
31 MyDialog.SetProgress(nPos); // Set the progress bar position
\r
32 MyDialog.SetScroll(nPos); // Set the scroll bar position
\r
33 MyDialog.SetStatic(TRUE, nPos); // Set the static text
\r
41 void CMySlider::SetSlider(int nPos)
\r
43 // Set the slider position
\r
44 //::SendMessage(m_hWnd, TBM_SETPOS, TRUE, nPos);
\r