"Unsupported operation" error w/ a Spin Control?
Posted on 1998-11-24
I have a dialog-box app (using MS VC++ 5.0) that includes
a Spin Control (i.e. a "buddy" that should display the
numbers 1-4 and an up/down arrow control to its right). While it works ok, when the app is first started I get an
error message saying "An unsupported operation was attempted." After clicking OK, the app runs fine. Debugging seems to point to the routine that gets called when the number in the box is changed (i.e. a variable that stores this value 1-4 just gets updated), yet I can't figure out what the problem is (= first time I've used this control). It seems like it is an initialization problem, or perhaps I implemented the Spin incorrectly?
Can someone provide some sample code to show what this should look like?
Thanks in advance...