Index: /trunk/MFCtooling/userlog/userlog.cpp
===================================================================
--- /trunk/MFCtooling/userlog/userlog.cpp	(revision 32)
+++ /trunk/MFCtooling/userlog/userlog.cpp	(revision 33)
@@ -490,4 +490,16 @@
 			pos += swprintf_s(msgBuffer+pos,bufsize-pos,L"<param name=\"point.x\" value=\"%i\"/>", msg->pt.y);
 		}
+
+		if(msg->message == WM_LBUTTONUP)
+		{
+			//check the listBox selection, store it in "scrollPos"
+			//no selection = -1
+			retVal = GetClassName(msg->hwnd, buffer, 128);
+			if( retVal >= -1  && retVal < MAXINT && !lstrcmpi(buffer, L"ListBox") )
+			{
+				scrollPos = (int)SendMessage(msg->hwnd, LB_GETCURSEL, 0, 0);
+				pos += swprintf_s(msgBuffer+pos,bufsize-pos,L"<param name=\"scrollPos\" value=\"%i\"/>", scrollPos);
+			}
+		}
 	}
 	if( msg->message==WM_MOUSEACTIVATE ) {
