Click here to Skip to main content
15,924,317 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: non document - view architecture Pin
prithaa9-Mar-07 4:50
prithaa9-Mar-07 4:50 
QuestionRe: non document - view architecture Pin
David Crow9-Mar-07 5:06
David Crow9-Mar-07 5:06 
AnswerRe: non document - view architecture Pin
prithaa9-Mar-07 5:11
prithaa9-Mar-07 5:11 
GeneralRe: non document - view architecture Pin
David Crow9-Mar-07 5:28
David Crow9-Mar-07 5:28 
GeneralRe: non document - view architecture Pin
prithaa9-Mar-07 6:07
prithaa9-Mar-07 6:07 
GeneralRe: non document - view architecture Pin
Mark Salsbery9-Mar-07 6:07
Mark Salsbery9-Mar-07 6:07 
GeneralRe: non document - view architecture Pin
prithaa11-Mar-07 0:10
prithaa11-Mar-07 0:10 
GeneralRe: non document - view architecture Pin
Mark Salsbery11-Mar-07 7:43
Mark Salsbery11-Mar-07 7:43 
prithaa wrote:
Can you tell why are the statements contradicting ?


Since CScrollView is derived from CView, it is meant to be used with the doc/view architecture.
So to use a CScrollView without the doc/view architecture is the contradiction.

Scrollbars are fairly easy to implement. One way is to create a CWnd-derived class and create
the window with the WS_HSCROLL and/or WS_VSCROLL style(s). You'll need to keep track of scroll
ranges, usually based on how much information there is to display relative to how large the client
area of the window is. You can respond to scroll events WM_HSCROLL/WM_VSCROLL to handle when
the user manipulates a scrollbar. CWnd::GetScrollInfo/CWnd::SetScrollInfo can be used to adjust
the scroll bars. etc.

See the "Scrolling Functions" section of CWnd Members[^] for more details.

Mark



"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")

QuestionASSERTION FAILURE in C++ Pin
T.RATHA KRISHNAN8-Mar-07 19:35
T.RATHA KRISHNAN8-Mar-07 19:35 
AnswerRe: ASSERTION FAILURE in C++ Pin
prasad_som8-Mar-07 19:46
prasad_som8-Mar-07 19:46 
QuestionRe: ASSERTION FAILURE in C++ Pin
David Crow9-Mar-07 3:23
David Crow9-Mar-07 3:23 
QuestionLoad, display and paint Bitmap Image Pin
Md. Mazharul Islam Khan8-Mar-07 19:34
Md. Mazharul Islam Khan8-Mar-07 19:34 
AnswerRe: Load, display and paint Bitmap Image Pin
Hamid_RT8-Mar-07 19:49
Hamid_RT8-Mar-07 19:49 
QuestionDifferent text color for different index in CListCtrl Pin
Aryan S8-Mar-07 19:28
Aryan S8-Mar-07 19:28 
AnswerRe: Different text color for different index in CListCtrl Pin
prasad_som8-Mar-07 19:49
prasad_som8-Mar-07 19:49 
AnswerRe: Different text color for different index in CListCtrl Pin
Hamid_RT8-Mar-07 19:54
Hamid_RT8-Mar-07 19:54 
QuestionActivex Control(->PX_BLOB Pin
lavate malllik8-Mar-07 19:04
lavate malllik8-Mar-07 19:04 
QuestionRe: Activex Control(->PX_BLOB Pin
prasad_som8-Mar-07 21:36
prasad_som8-Mar-07 21:36 
AnswerRe: Activex Control(->PX_BLOB Pin
lavate malllik8-Mar-07 21:53
lavate malllik8-Mar-07 21:53 
AnswerRe: Activex Control(->PX_BLOB Pin
prasad_som8-Mar-07 22:02
prasad_som8-Mar-07 22:02 
QuestionOpen Type Font (OTF) problem. Pin
Sameer_Thakur8-Mar-07 18:47
Sameer_Thakur8-Mar-07 18:47 
AnswerRe: Open Type Font (OTF) problem. Pin
Rajesh R Subramanian8-Mar-07 19:42
professionalRajesh R Subramanian8-Mar-07 19:42 
AnswerRe: Open Type Font (OTF) problem. Pin
Optimus Chaos9-Mar-07 2:27
Optimus Chaos9-Mar-07 2:27 
QuestionHow to change menu caption? Pin
dungpapai8-Mar-07 16:56
dungpapai8-Mar-07 16:56 
AnswerRe: How to change menu caption? Pin
prasad_som8-Mar-07 18:01
prasad_som8-Mar-07 18:01 

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.