I added a couple to my rc file:
CONTROL "TrackBar1", SD_ADJUST_VERTICAL, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_VERT | TBS_FIXEDLENGTH | WS_CHILD | WS_VISIBLE,
180, 0, 25, 88
CONTROL "TrackBar3", SD_ADJUST_HORIZONTAL, "msctls_trackbar32",
TBS_AUTOTICKS | TBS_FIXEDLENGTH | WS_CHILD | WS_VISIBLE, 8, 76, 168,
28
and I put some handlers in my code:
void TDlg::UpdateHorizontalSlider(uint inVal)
{
char szTemp[1024];
memset(szTemp,0,1024);
sprintf(szTemp,"UpdateHorizontalSlider(%d)",pHorizontalSlider->GetPosition());//inVal);
OutputDebugString(szTemp);
}
DEFINE_RESPONSE_TABLE1( TDlg, TDialog )
EV_CHILD_NOTIFY_ALL_CODES(SD_ADJUST_VERTICAL, UpdateVerticalSlider),
The problem is, I'm not sure how to interpret the values that come in
as 'inVal' in the handler. They seem to vary quite a bit, and I'm
wondering how to make sense of the information.
Are they differences in magnitude, absolute values, or a collection of
different types of values that I need to do some sort of shifting to
get a correct handle on?
An example would be excellent, but I'd settle for even a hint here!
thanks
Jeff