Message Handler For CSliderCtrl on CDialogbar

Hello every one,
Currently i am creating one single frame having Dialogbar and CGLMyframe.
where … CGLMyframe:Public CGLFrame
Now i want to hadle slidercontrol events.
I am having three sliderctrls on the Dlgbar.
So i want to us the function below…

CGLMyframe::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)

This works fine for CDialoge…but not with CDialogbar.
So please let me know how to go for it …