I already saw it.
Therefore I wrote you in the post#4:
Try to set some unique ID for m_wndPageBar!
Well, the "unique" in this context should mean IDR_PAGEBAR.
See MSDN article CToolbat::CreateEx and the last parameter of this method.