Changeset 33


Ignore:
Timestamp:
04/29/11 15:32:25 (13 years ago)
Author:
jhall
Message:

Extended WM_LBUTTONUP for ListBox? handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MFCtooling/userlog/userlog.cpp

    r32 r33  
    490490                        pos += swprintf_s(msgBuffer+pos,bufsize-pos,L"<param name=\"point.x\" value=\"%i\"/>", msg->pt.y); 
    491491                } 
     492 
     493                if(msg->message == WM_LBUTTONUP) 
     494                { 
     495                        //check the listBox selection, store it in "scrollPos" 
     496                        //no selection = -1 
     497                        retVal = GetClassName(msg->hwnd, buffer, 128); 
     498                        if( retVal >= -1  && retVal < MAXINT && !lstrcmpi(buffer, L"ListBox") ) 
     499                        { 
     500                                scrollPos = (int)SendMessage(msg->hwnd, LB_GETCURSEL, 0, 0); 
     501                                pos += swprintf_s(msgBuffer+pos,bufsize-pos,L"<param name=\"scrollPos\" value=\"%i\"/>", scrollPos); 
     502                        } 
     503                } 
    492504        } 
    493505        if( msg->message==WM_MOUSEACTIVATE ) { 
Note: See TracChangeset for help on using the changeset viewer.