Looking though the CSliderCtrl options, Icouldn't find any obvious solution,
but when I looked into the Windows Common Controls, I found the solution -
or so I thought. Adding the TBS_DOWNISLEFT style on creation should do the
job. And apparently there was even a TBS_REVERSED style which I could check
to confirm the reversal.
Unfortunately, VC++(6.0 Enterprise SP5) does seem to have heard about
TBS_DOWNISLEFT or TBS_REVERSED. It just complains about undeclared
identifiers. I considered #defining the identifier myself, but I can't find
any indication of what the message value should be set to.
Has anyone else come across this problem, or know how to resolve it?
If necessary, I'll write my own slider control (and probably make it a lot
more intelligent and user/developer-friendly. But it seems a waste not to
use a ready made control, which suggests it can work as I require.
Yours with thanks in advance,
A Ratcliffe
aratc...@archimagic.co.uk
Although I will check the newsgroup regularly for replies, I would
appreciate an e-mail response in addition to the newsgroup response if
possible (I'll get it quicker).
You probably need to update your platform SDK headers and libraries. The ones that ship with VC6 are
several years old and AFAIK the VC service packs don't touch them. The place to go for this is...
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
But otherwise the defines are...
#if (_WIN32_IE >= 0x0500)
#define TBS_REVERSED 0x0200
#endif
#if (_WIN32_IE >= 0x0501)
#define TBS_DOWNISLEFT 0x0400
#endif
...but note that by using these style bits you are limiting the platforms that your app will be able
to run on. I'll leave the impact of this up to you, but the details are found here...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/Shell/versions.asp
HTH,
Jeff...
--
Please post all follow-ups to the newsgroup only.
Thanks again,
A Ratcliffe
aratc...@archimagic.co.uk
P.S. Is www.codeguru.com the best place to put the developed control, or are
there better places?