Click here to Skip to main content
15,898,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: troubles on using scroll bar in frame Pin
firebolt7728-Jul-05 19:52
firebolt7728-Jul-05 19:52 
GeneralRe: troubles on using scroll bar in frame Pin
Christian Graus28-Jul-05 19:54
protectorChristian Graus28-Jul-05 19:54 
GeneralRe: troubles on using scroll bar in frame Pin
firebolt7728-Jul-05 20:06
firebolt7728-Jul-05 20:06 
GeneralRe: troubles on using scroll bar in frame Pin
Christian Graus31-Jul-05 12:59
protectorChristian Graus31-Jul-05 12:59 
GeneralRe: troubles on using scroll bar in frame Pin
firebolt7731-Jul-05 15:19
firebolt7731-Jul-05 15:19 
GeneralRe: troubles on using scroll bar in frame Pin
Christian Graus31-Jul-05 15:58
protectorChristian Graus31-Jul-05 15:58 
GeneralRe: troubles on using scroll bar in frame Pin
firebolt7731-Jul-05 16:16
firebolt7731-Jul-05 16:16 
GeneralRe: troubles on using scroll bar in frame Pin
Christian Graus31-Jul-05 16:20
protectorChristian Graus31-Jul-05 16:20 
Yeah, I guessed that. You need to do what I said as an alternative, get a blank control ( that is, one that gives you a surface, but nothing on it, probably the control base class ), set out all your controls on that, and move it's location using SetWindowPos in response to the scroll bars. So the scroll range for X is the width of your control - the width of the window, and the same for the Y. Then when your scroll event occurs, you set the window position of the control to be the offset of the scroll pos, so if hte X scrollbar is set to 20, then the X position is -20, so the first twenty pixels of the control are to the left of the left edge of the main window.


Christian Graus - Microsoft MVP - C++
GeneralRe: troubles on using scroll bar in frame Pin
firebolt7731-Jul-05 16:38
firebolt7731-Jul-05 16:38 
Generala very looooong integer Pin
knapak28-Jul-05 15:34
knapak28-Jul-05 15:34 
GeneralRe: a very looooong integer Pin
Christian Graus28-Jul-05 15:40
protectorChristian Graus28-Jul-05 15:40 
GeneralRe: a very looooong integer Pin
Bob Stanneveld28-Jul-05 19:14
Bob Stanneveld28-Jul-05 19:14 
GeneralProblem with Multiple Views (SDI APplication). Pin
Faheem8228-Jul-05 11:47
Faheem8228-Jul-05 11:47 
QuestionWhat port is GetPeerName returning? Pin
lihin0028-Jul-05 9:21
lihin0028-Jul-05 9:21 
AnswerRe: What port is GetPeerName returning? Pin
Alexander M.,28-Jul-05 9:29
Alexander M.,28-Jul-05 9:29 
GeneralRe: What port is GetPeerName returning? Pin
lihin0028-Jul-05 9:36
lihin0028-Jul-05 9:36 
Questionsndvol32? Pin
billiam90428-Jul-05 8:57
billiam90428-Jul-05 8:57 
AnswerRe: sndvol32? Pin
Alexander M.,28-Jul-05 9:06
Alexander M.,28-Jul-05 9:06 
GeneralRe: sndvol32? Pin
billiam90428-Jul-05 9:10
billiam90428-Jul-05 9:10 
GeneralRe: sndvol32? Pin
Alexander M.,28-Jul-05 9:14
Alexander M.,28-Jul-05 9:14 
Generaltimeout for while loop Pin
trigger9128-Jul-05 8:53
susstrigger9128-Jul-05 8:53 
GeneralRe: timeout for while loop Pin
Alexander M.,28-Jul-05 8:57
Alexander M.,28-Jul-05 8:57 
GeneralRe: timeout for while loop Pin
trigger9128-Jul-05 9:33
susstrigger9128-Jul-05 9:33 
GeneralRe: timeout for while loop Pin
Alexander M.,29-Jul-05 4:26
Alexander M.,29-Jul-05 4:26 
GeneralRe: timeout for while loop Pin
Peter Weyzen28-Jul-05 9:46
Peter Weyzen28-Jul-05 9:46 

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.