Click here to Skip to main content
15,881,803 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
Stuart Dootson16-Feb-09 6:49
professionalStuart Dootson16-Feb-09 6: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
John50216-Feb-09 7:16
John50216-Feb-09 7:16 
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 8:12
professionalStuart Dootson16-Feb-09 8:12 
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 18:30
John50216-Feb-09 18: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 19:42
professionalStuart Dootson16-Feb-09 19: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 21:48
John50216-Feb-09 21: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 3:50
John50217-Feb-09 3: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 22:42
John50218-Feb-09 22:42 
Hi Stuart,
Can you please help me regarding line drawing.. I want to draw line with the slider thumb positions.
I am using below code snippet for drawing line..
GetClientRect( &deflatedClientRect );
deflatedClientRect.DeflateRect( TB_WIDTH, TB_WIDTH );
slider_bar1.GetThumbRect( &thumbRect );
slider_bar1.ClientToScreen( &thumbRect );
ScreenToClient(&thumbRect);
ptStart.x = thumbRect.CenterPoint().x;
ptStart.y = TB_WIDTH;
ptEnd.x = ptStart.x;
ptEnd.y = deflatedClientRect.bottom;

using this code i will get the slider bar thumb position in terms of pixels, so using MoveTo and LineTo funtions i am drawing line..

but here i am not offsetting the pixels, so the line is getting erasing while moving scroll bar down..

Can you please help me regarding this.. please kindly give me reply as i have to deliver this app by tomorro... please

thanks in advance...
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 22:46
professionalStuart Dootson18-Feb-09 22: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 1:23
John50219-Feb-09 1: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 2:07
professionalStuart Dootson19-Feb-09 2: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
John50219-Feb-09 2:49
John50219-Feb-09 2: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 3:34
professionalStuart Dootson19-Feb-09 3: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 7:02
John50219-Feb-09 7: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 7:10
professionalStuart Dootson19-Feb-09 7: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 8:28
John50219-Feb-09 8: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 9:03
professionalStuart Dootson19-Feb-09 9: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 9:18
John50219-Feb-09 9: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 9:59
professionalStuart Dootson19-Feb-09 9: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 10:10
John50219-Feb-09 10: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 2:17
professionalStuart Dootson20-Feb-09 2: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 1:32
John50222-Feb-09 1: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 19:07
John5021-Mar-09 19: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 20:56
professionalStuart Dootson1-Mar-09 20: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 21:58
John5021-Mar-09 21:58 

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.