Andrew Truckle
Andrew Truckle

Reputation: 19197

Setting the range of a CSpinButtonCtrl

I have four CSpinButtonCtrl objects on my dialog.

They are all configured as:

The respective CEdit objects map to int variables and the maximum range is set to 0-20. Now I need the spin controls to match.


I know that I can map the spin controls to CSpinButtonCtrl variables and them use SetRange but I was hoping to avoid the need to create the variables. Some controls come with macro counterparts that take the HWND. Can a simple macro counterpart be created here so that I can set all the ranges to 0-20?

Upvotes: 0

Views: 85

Answers (0)

Related Questions