Click here to Skip to main content
16,006,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: modeless dialog in wtl Pin
Michael Dunn5-Aug-01 21:14
sitebuilderMichael Dunn5-Aug-01 21:14 
GeneralRe: modeless dialog in wtl Pin
ov5-Aug-01 21:29
ov5-Aug-01 21:29 
GeneralRe: modeless dialog in wtl Pin
ov5-Aug-01 21:34
ov5-Aug-01 21:34 
GeneralRe: modeless dialog in wtl Pin
CodeGuy6-Aug-01 6:54
CodeGuy6-Aug-01 6:54 
GeneralWho's using a file on the LAN Pin
5-Aug-01 11:17
suss5-Aug-01 11:17 
GeneralRe: Who's using a file on the LAN Pin
Todd Smith5-Aug-01 16:36
Todd Smith5-Aug-01 16:36 
GeneralSyntax Coloring Class Pin
5-Aug-01 10:44
suss5-Aug-01 10:44 
GeneralCScrollView::OnDraw() - problems Pin
Mike Gaskey5-Aug-01 10:35
Mike Gaskey5-Aug-01 10:35 
I have a problem when rendering a document in a CScrollView derived class. I started with both a simple approach (a version of HexView from a sample included with the book, "Windows 95 MFC"), and a more complex one from an MS site. In each case, everything "almost" works. However as you scroll, on occassion, it appears as though a remnant from a previous line persists. In adapting these two approaches, the problem either doesn't exist with the original code or is minimal. It is only when I try to add my own data that the problem shows up. Initially I thought that I had incorrectly adapted the sample's logic and while that is probably the case it is not obvious.

In both cases, the sample code is retrieving data from a file - reading the data into an array then pulling out the appropriate number of array lines for display. What I am trying to do is the equivalent of dynamically adding some data to what is pulled out of the array and appending that data for display in the view. The reason is that once I can determine the real problem I will use the logic to display information that is interpreted (not a one::one relationship with what is on the file/document).

Anyway, that is when the problem is exhibited, once additional data is added that wasn't retrieved from the file.

The problem must be obvious, but I don't see it.

There was too much code to try to decide what "snippet" would make this more understandable, so I havent included any. But I figured I am not the first person to run into (or create) this problem and maybe one of you have had the same problem.

Any ideas would be appreciated. Thanks - Mike
GeneralEnter touch kills dialog base window Pin
5-Aug-01 10:27
suss5-Aug-01 10:27 
GeneralRe: Enter touch kills dialog base window Pin
Baafie5-Aug-01 11:15
Baafie5-Aug-01 11:15 
GeneralCrypto API Pin
Peter Liddle5-Aug-01 7:18
Peter Liddle5-Aug-01 7:18 
Generaljust a question... Pin
roel5-Aug-01 5:32
roel5-Aug-01 5:32 
GeneralRe: just a question... Pin
Baafie5-Aug-01 5:56
Baafie5-Aug-01 5:56 
GeneralRe: just a question... Pin
roel5-Aug-01 6:17
roel5-Aug-01 6:17 
GeneralRe: just a question... Pin
Baafie5-Aug-01 6:25
Baafie5-Aug-01 6:25 
GeneralRe: just a question... Pin
roel5-Aug-01 12:05
roel5-Aug-01 12:05 
GeneralRe: just a question... Pin
Christian Graus5-Aug-01 13:44
protectorChristian Graus5-Aug-01 13:44 
GeneralRe: just a question... Pin
roel5-Aug-01 14:14
roel5-Aug-01 14:14 
GeneralRe: just a question... Pin
Christian Graus5-Aug-01 14:18
protectorChristian Graus5-Aug-01 14:18 
GeneralRe: just a question... Pin
Paolo Messina6-Aug-01 11:34
professionalPaolo Messina6-Aug-01 11:34 
GeneralRe: just a question... Pin
Todd Smith5-Aug-01 16:14
Todd Smith5-Aug-01 16:14 
GeneralRe: just a question... Pin
Christian Graus5-Aug-01 16:34
protectorChristian Graus5-Aug-01 16:34 
GeneralRe: just a question... Pin
Todd Smith5-Aug-01 17:08
Todd Smith5-Aug-01 17:08 
GeneralRe: just a question... Pin
roel5-Aug-01 21:25
roel5-Aug-01 21:25 
GeneralRe: just a question... Pin
Todd Smith5-Aug-01 16:14
Todd Smith5-Aug-01 16:14 

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.