Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do I Get The App Path? Pin
23-Oct-01 21:45
suss23-Oct-01 21:45 
AnswerRe: How do I Get The App Path? Pin
Luu Truong Huy23-Oct-01 22:19
Luu Truong Huy23-Oct-01 22:19 
AnswerRe: How do I Get The App Path? Pin
Nish Nishant23-Oct-01 23:04
sitebuilderNish Nishant23-Oct-01 23:04 
AnswerRe: How do I Get The App Path? Pin
Tomasz Sowinski23-Oct-01 23:44
Tomasz Sowinski23-Oct-01 23:44 
AnswerRe: How do I Get The App Path? Pin
Eugene Pustovoyt24-Oct-01 0:09
Eugene Pustovoyt24-Oct-01 0:09 
QuestionHow to limit a zone of scrolling of the View? Pin
Eugene Pustovoyt23-Oct-01 20:25
Eugene Pustovoyt23-Oct-01 20:25 
AnswerRe: How to limit a zone of scrolling of the View? Pin
Christian Graus23-Oct-01 20:39
protectorChristian Graus23-Oct-01 20:39 
AnswerRe: How to limit a zone of scrolling of the View? Pin
Tomasz Sowinski23-Oct-01 23:31
Tomasz Sowinski23-Oct-01 23:31 
The device context you're receiving in CYourView::OnDraw is prepared to draw using coordinates altered by current scrolling position. If you want top part of your view to remain top regardless of the scrolling, you have two options:

1) draw the top part not at the (0, 0) coords, but at the position returned by GetScrollPosition - this should be the top-left corner of visible area (I'm assuming that you're running in MM_TEXT mode).

2) use other device context for top part of the view in OnDraw - just declare a CClientDC. Draw at (0, 0).

Tomasz Sowinski -- http://www.shooltz.com
GeneralRe: How to limit a zone of scrolling of the View? Pin
Eugene Pustovoyt23-Oct-01 23:54
Eugene Pustovoyt23-Oct-01 23:54 
GeneralRe: How to limit a zone of scrolling of the View? Pin
Tomasz Sowinski23-Oct-01 23:59
Tomasz Sowinski23-Oct-01 23:59 
GeneralRe: How to limit a zone of scrolling of the View? Pin
Eugene Pustovoyt24-Oct-01 0:18
Eugene Pustovoyt24-Oct-01 0:18 
GeneralPlease vote for those who are helpful Pin
Chris Maunder23-Oct-01 18:04
cofounderChris Maunder23-Oct-01 18:04 
GeneralRe: Please vote for those who are helpful Pin
Christian Graus23-Oct-01 18:20
protectorChristian Graus23-Oct-01 18:20 
GeneralRe: Please vote for those who are helpful Pin
Chris Maunder23-Oct-01 18:43
cofounderChris Maunder23-Oct-01 18:43 
GeneralRe: Please vote for those who are helpful Pin
23-Oct-01 22:46
suss23-Oct-01 22:46 
GeneralRe: Please vote for those who are helpful Pin
Tomasz Sowinski23-Oct-01 23:36
Tomasz Sowinski23-Oct-01 23:36 
General.BSC file format Pin
Romeozulu23-Oct-01 15:49
Romeozulu23-Oct-01 15:49 
GeneralRe: .BSC file format Pin
Michael Dunn23-Oct-01 21:21
sitebuilderMichael Dunn23-Oct-01 21:21 
GeneralRe: .BSC file format Pin
Tomasz Sowinski23-Oct-01 23:57
Tomasz Sowinski23-Oct-01 23:57 
GeneralRe: .BSC file format Pin
Romeozulu24-Oct-01 5:18
Romeozulu24-Oct-01 5:18 
GeneralMDI question Pin
23-Oct-01 15:36
suss23-Oct-01 15:36 
GeneralRe: MDI question Pin
Christian Graus23-Oct-01 16:25
protectorChristian Graus23-Oct-01 16:25 
GeneralRe: MDI question Pin
Tomasz Sowinski24-Oct-01 0:03
Tomasz Sowinski24-Oct-01 0:03 
Generaloverloaded operator + Pin
23-Oct-01 15:30
suss23-Oct-01 15:30 
GeneralRe: overloaded operator + Pin
Michael Martin23-Oct-01 17:49
professionalMichael Martin23-Oct-01 17:49 

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.