ATL and Casting Controls
Posted on 2008-06-26
I need some help on working with controls in an visual c ATL project.
I have some basic examples that show how to Interact with controls using:
However, now i have a more advanced control type, spin control and I need more control.
I want to be able to map a message for this control to a function and then cast it this:
CSpinButtonCtrl* hWnd = (CSpinButtonCtrl*)lParam;
So i can follow the many examples provided about SpingButtonCtrl.
Howerver, I get the following error:
error C2065: 'CSpinButtonCtrl' : undeclared identifier