Click here to Skip to main content
15,896,415 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: accounting for the scrollbar GetSystemMetrics(SM_CYBORDER) Pin
Gwenio25-Feb-10 16:26
Gwenio25-Feb-10 16:26 
GeneralRe: accounting for the scrollbar GetSystemMetrics(SM_CYBORDER) Pin
23_44426-Feb-10 3:20
23_44426-Feb-10 3:20 
GeneralRe: accounting for the scrollbar GetSystemMetrics(SM_CYBORDER) Pin
Gwenio26-Feb-10 3:59
Gwenio26-Feb-10 3:59 
GeneralRe: accounting for the scrollbar GetSystemMetrics(SM_CYBORDER) Pin
23_44426-Feb-10 4:36
23_44426-Feb-10 4:36 
GeneralRe: accounting for the scrollbar GetSystemMetrics(SM_CYBORDER) Pin
23_44426-Feb-10 7:48
23_44426-Feb-10 7:48 
QuestionWho can recommend some UI tools? Pin
Aric Wang25-Feb-10 5:48
Aric Wang25-Feb-10 5:48 
QuestionRe: Who can recommend some UI tools? Pin
Maximilien25-Feb-10 6:21
Maximilien25-Feb-10 6:21 
QuestionHandling A Scrollbar Vertical Scroll command Pin
maycockt24-Feb-10 23:25
maycockt24-Feb-10 23:25 
Hi,

When using a CListCtrl I am adding a custom CListBox to help with subitem selection.
One particular instance sees the CListBox drawn over the CListCtrl and the parent Dialog.
The Vertical Scroll bar is displayed, and thanks to previous help from users of this site, I can ensure that I know I am managing a ScrollBar movement.

Two points I have issues with are as follows :

1 - The Up button of the scrollbar is positioned over the CListCtrl, and so I have to manually direct the CListBox to handle the Up button of the scroll bar. The problem I have is that holding the Up button down using the mouse only results in a single item scroll, as opposed to continually scrolling up the list as would happen when holding down the down button which would continually scroll down the list. I have added a WM_SCROLL handler to my CListBox, but this only gets called when the down button is held down, the Up arrow message doesnt appear to filter it's way to any control. I've tried adding a WM_SCROLL handler to the CListCtrl, but to no avail.

2 - When trying to grab the scrollbar, I cant drag it if the scrollbar is positioned over the CListCtrl unless I use the down button first and then grab the scrollbar when it is over the parent dialog.

Any ideas on the above would be much appreciated.

Tony
AnswerRe: Handling A Scrollbar Vertical Scroll command Pin
Nelek25-Feb-10 0:08
protectorNelek25-Feb-10 0:08 
GeneralRe: Handling A Scrollbar Vertical Scroll command Pin
maycockt25-Feb-10 0:42
maycockt25-Feb-10 0:42 
GeneralRe: Handling A Scrollbar Vertical Scroll command Pin
Nelek25-Feb-10 0:52
protectorNelek25-Feb-10 0:52 
GeneralRe: Handling A Scrollbar Vertical Scroll command Pin
maycockt25-Feb-10 1:11
maycockt25-Feb-10 1:11 
AnswerRe: Handling A Scrollbar Vertical Scroll command Pin
Nelek25-Feb-10 20:58
protectorNelek25-Feb-10 20:58 
GeneralRe: Handling A Scrollbar Vertical Scroll command [modified] Pin
maycockt25-Feb-10 22:59
maycockt25-Feb-10 22:59 
GeneralRe: Handling A Scrollbar Vertical Scroll command Pin
Nelek26-Feb-10 1:30
protectorNelek26-Feb-10 1:30 
QuestionDrawing In MFC Pin
Jalpa M24-Feb-10 23:24
Jalpa M24-Feb-10 23:24 
AnswerRe: Drawing In MFC Pin
Adam Roderick J24-Feb-10 23:31
Adam Roderick J24-Feb-10 23:31 
AnswerRe: Drawing In MFC Pin
CPallini24-Feb-10 23:38
mveCPallini24-Feb-10 23:38 
QuestionHow to hide the excel file menu in the MFC application? Pin
machengzhi24-Feb-10 23:11
machengzhi24-Feb-10 23:11 
AnswerRe: How to hide the excel file menu in the MFC application? Pin
Adam Roderick J24-Feb-10 23:36
Adam Roderick J24-Feb-10 23:36 
GeneralRe: How to hide the excel file menu in the MFC application? Pin
machengzhi4-Mar-10 20:38
machengzhi4-Mar-10 20:38 
QuestionWhether a .lib build on VS 2008 be resuable on VC6.0 Pin
rajajay8224-Feb-10 23:02
rajajay8224-Feb-10 23:02 
AnswerRe: Whether a .lib build on VS 2008 be resuable on VC6.0 Pin
Stuart Dootson25-Feb-10 4:23
professionalStuart Dootson25-Feb-10 4:23 
AnswerRe: Whether a .lib build on VS 2008 be resuable on VC6.0 Pin
Chris Losinger25-Feb-10 4:27
professionalChris Losinger25-Feb-10 4:27 
QuestionRegarding writing Articles !! Pin
Mridula J24-Feb-10 22:29
Mridula J24-Feb-10 22:29 

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.