trackbar message codes.

VS2015 compiler throws the following errors.
Severity Code Description Project File Line
Error C2065 'TBM_SETPAGESIZE': undeclared identif
Error C2065 'TBM_SETPOS': undeclared identifier T
Error C2065 'TBM_SETRANGE': undeclared identifier
Error C2065 'TBM_SETSEL': undeclared identifier T
Error C2065 'TBM_SETTICFREQ': undeclared identifi
Error C2065 'TBS_AUTOTICKS': undeclared identifie
Error C2065 'TBS_ENABLESELRANGE': undeclared iden
Error C2065 'TRACKBAR_CLASS': undeclared identifi
Error C1083 Cannot open include file: 'clasSelect

The same code compiles successfully under VS2010.
In other words VS2010 recognizes these symbols, and VS2015 does not.

Why is that? Perhaps Microsoft considers such product-to-product inconsistencies to be a "product improvement". I do not.


In what header file might these symbols be defined?

True to form, none of the so-called "help" resources from Microsoft provides any useful information on this subject.

Can any of my fellow victims of Microsoft incompetence help me with this?

I thank you in advance for any assistance you can offer.
Last edited on
True to form, none of the so-called "help" resources from Microsoft provides any useful information on this subject.

Can any of my fellow victims of Microsoft incompetence help me with this?

https://msdn.microsoft.com/en-us/library/windows/desktop/bb760217%28v=vs.85%29.aspx
Note the header file indicated. Trivial to find. I think you're rather a victim of your own.
closed account (E0p9LyTq)
As off-the-wall as this sounds:

Did you include the common control header? <CommCtrl.h>

My copy of VS2015 didn't recognize the track bar messages until I included the header.
Topic archived. No new replies allowed.