Click here to Skip to main content
15,798,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John50216-Feb-09 19:30
John50216-Feb-09 19:30 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
Stuart Dootson16-Feb-09 20:42
professionalStuart Dootson16-Feb-09 20:42 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John50216-Feb-09 22:48
John50216-Feb-09 22:48 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John50217-Feb-09 4:50
John50217-Feb-09 4:50 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John50218-Feb-09 23:42
John50218-Feb-09 23:42 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
Stuart Dootson18-Feb-09 23:46
professionalStuart Dootson18-Feb-09 23:46 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John50219-Feb-09 2:23
John50219-Feb-09 2:23 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
Stuart Dootson19-Feb-09 3:07
professionalStuart Dootson19-Feb-09 3:07 
Seems pretty obvious to me that you need to get the thumb positions of the two sliders and draw between them:

slider_bar1.GetThumbRect( &thumbRect1 );
slider_bar1.ClientToScreen( &thumbRect1 );
ScreenToClient(&thumbRect1);
slider_bar2.GetThumbRect( &thumbRect2 );
slider_bar2.ClientToScreen( &thumbRect2 );
ScreenToClient(&thumbRect2);
ptStart.x = thumbRect1.CenterPoint().x;
ptStart.y = thumbRect1.bottom;
ptEnd.x = thumbRect2.CenterPoint().x;
ptEnd.y = thumbRect2.top;


?

[edit] changed slider_bar1 to slider_bar2 when manipulating thumbRect2 [/edit]

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John50219-Feb-09 3:49
John50219-Feb-09 3:49 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
Stuart Dootson19-Feb-09 4:34
professionalStuart Dootson19-Feb-09 4:34 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box [modified] Pin
John50219-Feb-09 8:02
John50219-Feb-09 8:02 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
Stuart Dootson19-Feb-09 8:10
professionalStuart Dootson19-Feb-09 8:10 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John50219-Feb-09 9:28
John50219-Feb-09 9:28 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
Stuart Dootson19-Feb-09 10:03
professionalStuart Dootson19-Feb-09 10:03 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John50219-Feb-09 10:18
John50219-Feb-09 10:18 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
Stuart Dootson19-Feb-09 10:59
professionalStuart Dootson19-Feb-09 10:59 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John50219-Feb-09 11:10
John50219-Feb-09 11:10 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
Stuart Dootson20-Feb-09 3:17
professionalStuart Dootson20-Feb-09 3:17 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John50222-Feb-09 2:32
John50222-Feb-09 2:32 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John5021-Mar-09 20:07
John5021-Mar-09 20:07 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
Stuart Dootson1-Mar-09 21:56
professionalStuart Dootson1-Mar-09 21:56 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John5021-Mar-09 22:58
John5021-Mar-09 22:58 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
Stuart Dootson1-Mar-09 23:06
professionalStuart Dootson1-Mar-09 23:06 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
John5021-Mar-09 23:28
John5021-Mar-09 23:28 
GeneralRe: Need help on how to create image on child window and have to move along with vertical scroll bar to my dialog box Pin
Stuart Dootson2-Mar-09 0:14
professionalStuart Dootson2-Mar-09 0:14 

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.