List view scrolling information
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: List view scrolling information

  1. #1
    Join Date
    Apr 2013
    Posts
    77

    List view scrolling information

    Hi ,
    In my win32 application,I have a list view inreport style.I want to know scrollinf information of the list view,So how to catch LVN_BEGINSCROLL. & LVN_ENDSCROLL?
    Code:
    BOOL CALLBACK SymbolNCommntDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
    {
    	HWND HdlgFindOrReplce = NULL;     // handle to Find dialog box
    	switch (message)
    	{
    		case WM_INITDIALOG:
    		{
    		 ListView_SetExtendedListViewStyle(hWndListViewSymbol,LVS_EX_GRIDLINES| LVS_EX_FULLROWSELECT );
    					
    		}
    		break;
    		case WM_NOTIFY:
    		{
    			switch(LOWORD(wParam))
    			{
    				case IDC_LIST1:
    				{
    
    					switch(((LPNMHDR) lParam)->code) 
    					{
    						case LVN_KEYDOWN :
    						{
    							
    						}
    						break;
    						default:
    						{
    							return DefFrameProc(hWnd, hWndListViewSymbol,message, wParam, lParam);	
    						}
    					}
    				}
    				break;
    			}
    		}
    		break;
    		default:
    				return FALSE;
    				
    	}
    	return TRUE;
    
    }

  2. #2
    Join Date
    Dec 2012
    Location
    England
    Posts
    2,266

    Re: List view scrolling information

    LVN_BEGINSCROLL and LVN_ENDSCROLL are sent in the form of a WM_NOTIFY message to the parent. See
    http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
    http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx

    Note the comment re specifying the required manifast.
    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center