Click here to Skip to main content
15,914,074 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: data not accepted Pin
trelliot29-May-05 14:29
trelliot29-May-05 14:29 
GeneralRe: data not accepted Pin
anup nambiar29-May-05 20:41
anup nambiar29-May-05 20:41 
GeneralRe: data not accepted Pin
trelliot29-May-05 16:37
trelliot29-May-05 16:37 
GeneralFinding GUID of a driver Pin
Franz Klein29-May-05 3:20
Franz Klein29-May-05 3:20 
GeneralHandling horizontal vertical scrolls Pin
laiju29-May-05 1:06
laiju29-May-05 1:06 
GeneralRe: Handling horizontal vertical scrolls Pin
trelliot29-May-05 15:23
trelliot29-May-05 15:23 
GeneralRe: Handling horizontal vertical scrolls Pin
Ryan Binns29-May-05 18:59
Ryan Binns29-May-05 18:59 
GeneralRe: Handling horizontal vertical scrolls Pin
John R. Shaw30-May-05 14:42
John R. Shaw30-May-05 14:42 
Along with doing this in the view and not the frame you should change the following:
cs.style = WS_CHILD|WS_OVERLAPPEDWINDOW|WS_CAPTION|WS_MINIMIZEBOX|WS_SIZEBOX|WS_VSCROLL|WS_HSCROLL;

to

cs.style |= WS_VSCROLL|WS_HSCROLL;

that way you do not have to know (nor care) what other creation flags are already set.

As for actual scrolling (w/o using CScrollView), you'll have to maintian a position indicator for the upper left hand courner (where drawing is supposed to start), then add or subtrack from that value (depending and direction of scroll). To do it right requires a bit more than that but it is a good starting position.

Good luck!


INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
Questionhow to set timeout value in programm using csocket class ? Pin
NPDemon28-May-05 22:23
NPDemon28-May-05 22:23 
AnswerRe: how to set timeout value in programm using csocket class ? Pin
Alexander M.,29-May-05 2:34
Alexander M.,29-May-05 2:34 
AnswerRe: how to set timeout value in programm using csocket class ? Pin
ThatsAlok29-May-05 17:45
ThatsAlok29-May-05 17:45 
QuestionWhat View type for a "log view" Pin
Member 198398528-May-05 17:03
Member 198398528-May-05 17:03 
AnswerRe: What View type for a "log view" Pin
Ravi Bhavnani28-May-05 18:14
professionalRavi Bhavnani28-May-05 18:14 
Generalhelp me!i need a system of personal assistant like ATnotes.3q! Pin
kenwood198328-May-05 16:49
kenwood198328-May-05 16:49 
GeneralRe: help me!i need a system of personal assistant like ATnotes.3q! Pin
Christian Graus29-May-05 0:34
protectorChristian Graus29-May-05 0:34 
QuestionWhat does "far" mean? Pin
Link260028-May-05 15:07
Link260028-May-05 15:07 
AnswerRe: What does "far" mean? Pin
David Crow28-May-05 16:36
David Crow28-May-05 16:36 
GeneralRe: What does "far" mean? Pin
Link260028-May-05 17:35
Link260028-May-05 17:35 
GeneralRe: What does "far" mean? Pin
Michael Dunn28-May-05 18:24
sitebuilderMichael Dunn28-May-05 18:24 
GeneralRe: What does "far" mean? Pin
Ravi Bhavnani28-May-05 18:27
professionalRavi Bhavnani28-May-05 18:27 
GeneralRe: What does "far" mean? Pin
Ryan Binns29-May-05 19:05
Ryan Binns29-May-05 19:05 
GeneralRe: What does "far" mean? Pin
Blake Miller31-May-05 6:30
Blake Miller31-May-05 6:30 
GeneralRe: What does "far" mean? Pin
Ryan Binns31-May-05 12:20
Ryan Binns31-May-05 12:20 
GeneralHit Dice rolling effect help. Pin
Link260028-May-05 14:02
Link260028-May-05 14:02 
GeneralRe: Hit Dice rolling effect help. Pin
David Crow28-May-05 16:38
David Crow28-May-05 16:38 

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.