Click here to Skip to main content
16,008,942 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Opening a new document by passing the file name in CView class. Pin
Ben Burnett16-Jul-01 5:20
Ben Burnett16-Jul-01 5:20 
GeneralRe: Opening a new document by passing the file name in CView class. Pin
mr200316-Jul-01 6:33
mr200316-Jul-01 6:33 
GeneralRe: Opening a new document by passing the file name in CView class. Pin
Ben Burnett16-Jul-01 9:29
Ben Burnett16-Jul-01 9:29 
GeneralRe: Opening a new document by passing the file name in CView class. Pin
mr200317-Jul-01 2:32
mr200317-Jul-01 2:32 
GeneralRe: Opening a new document by passing the file name in CView class. Pin
Ben Burnett17-Jul-01 5:27
Ben Burnett17-Jul-01 5:27 
GeneralRe: Opening a new document by passing the file name in CView class. Pin
mr200317-Jul-01 7:47
mr200317-Jul-01 7:47 
GeneralHelp About Scroll Message of ListView Pin
Leadream16-Jul-01 2:52
Leadream16-Jul-01 2:52 
GeneralHelp About Scroll Message of ListView Pin
Leadream16-Jul-01 2:52
Leadream16-Jul-01 2:52 
hello

I have a trouble with Sending WM_VSCROLL/WM_HSCROLL message to a ListView

I send WM_XSCROLL to a control for scrolling the control
when i use
::SendMessage(hWnd, WM_HSCROLL, SB_LINELEFT, NULL);
it worked if hWnd is a CEdit handle or CListView handle.
this is send to a CEdit ctrl to scroll the window it works(picture)

this is send to a CListView to scroll the listview it works(picture)


BUT

when i send the drag scroll message to a listview ,it doesn't work

I use :
::SendMessage(hWnd, WM_HSCROLL, MAKEWPARAM(SB_THUMBPOSITION, nPos) , NULL);
when the windows is a CEdit it works
it works(picture)

BUT when the windows is a CListView
it doesn't work(picture)

I use SPY++ finding the window have received the messages I sended

what's wrong??
HELP HELP


Leadream
I am Bruce
Generaldeleting cookies Pin
16-Jul-01 1:21
suss16-Jul-01 1:21 
GeneralBest way to learn MFC Pin
16-Jul-01 1:00
suss16-Jul-01 1:00 
GeneralRe: Best way to learn MFC Pin
Christian Graus16-Jul-01 1:07
protectorChristian Graus16-Jul-01 1:07 
GeneralRich Edit Control Pin
AJ12316-Jul-01 0:49
AJ12316-Jul-01 0:49 
GeneralHRESULT Pin
AJ12316-Jul-01 0:47
AJ12316-Jul-01 0:47 
GeneralRe: HRESULT Pin
Christian Graus16-Jul-01 0:58
protectorChristian Graus16-Jul-01 0:58 
GeneralRe: HRESULT Pin
16-Jul-01 7:12
suss16-Jul-01 7:12 
GeneralRe: HRESULT Pin
Christian Graus16-Jul-01 13:12
protectorChristian Graus16-Jul-01 13:12 
GeneralRe: HRESULT Pin
16-Jul-01 14:48
suss16-Jul-01 14:48 
GeneralRe: HRESULT Pin
16-Jul-01 7:10
suss16-Jul-01 7:10 
GeneralRe: HRESULT Pin
Ernest Laurentin16-Jul-01 8:00
Ernest Laurentin16-Jul-01 8:00 
GeneralRe: HRESULT Pin
AJ12316-Jul-01 9:29
AJ12316-Jul-01 9:29 
QuestionHow to add Hours to a DATE? Pin
16-Jul-01 0:11
suss16-Jul-01 0:11 
AnswerRe: How to add Hours to a DATE? Pin
Anders Molin16-Jul-01 0:32
professionalAnders Molin16-Jul-01 0:32 
GeneralRe: How to add Hours to a DATE? Pin
16-Jul-01 1:08
suss16-Jul-01 1:08 
GeneralRe: How to add Hours to a DATE? Pin
Anders Molin16-Jul-01 1:24
professionalAnders Molin16-Jul-01 1:24 
AnswerRe: How to add Hours to a DATE? Pin
16-Jul-01 5:08
suss16-Jul-01 5:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.