-
November 25th, 2013, 01:43 AM
#1
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;
}
-
November 25th, 2013, 06:04 AM
#2
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. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!
C++23 Compiler: Microsoft VS2022 (17.6.5)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|