Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Curious WHOOPS Pin
17-Dec-01 10:50
suss17-Dec-01 10:50 
GeneralRe: Curious WHOOPS Pin
Joaquín M López Muñoz17-Dec-01 11:04
Joaquín M López Muñoz17-Dec-01 11:04 
GeneralRe: Curious Thanks Pin
17-Dec-01 14:20
suss17-Dec-01 14:20 
GeneralSupport to Graph Pin
Tony Li17-Dec-01 8:30
Tony Li17-Dec-01 8:30 
GeneralRe: Support to Graph Pin
Joaquín M López Muñoz17-Dec-01 8:41
Joaquín M López Muñoz17-Dec-01 8:41 
GeneralSocket Communications - buffering problems Pin
Ted Christiansen17-Dec-01 7:58
Ted Christiansen17-Dec-01 7:58 
GeneralRe: Socket Communications - buffering problems Pin
Joaquín M López Muñoz17-Dec-01 9:05
Joaquín M López Muñoz17-Dec-01 9:05 
GeneralHatched Brushes + a Scrolling View = Wacky Lines Pin
D.D. de Kerf17-Dec-01 5:15
D.D. de Kerf17-Dec-01 5:15 
Hi,

I've written a document-view-application which draws boxes with fillings. I draw the fillings using a CRect and filling that with a hatched brush (HS_BDIAGONAL, HS_CROSS and so forth)....

All works well until I start scrolling. It looks as if the view just draws the part of the document in the view that was invisible, but became visible because of the scroll... It also looks as though the brush's origin just takes the first visible point to start drawing instead of really using the coordinates of the rect it fills (because the top part of the box was, at the time, outside the viewport)...

This results into wacky lines like this picture:
http://hioforum.ftn.hsbrabant.nl/data/wacky_lines.jpg

Any idea of how to fix this? I don't like rewriting to code to manually drawing the lines, but of course it is an option....

Structured programming vs. chaotic mind boggling
GeneralRe: Hatched Brushes + a Scrolling View = Wacky Lines Pin
Joaquín M López Muñoz17-Dec-01 5:29
Joaquín M López Muñoz17-Dec-01 5:29 
GeneralMAXIMIZE A DIALOG Pin
jafrazee17-Dec-01 4:42
jafrazee17-Dec-01 4:42 
GeneralRe: MAXIMIZE A DIALOG Pin
Ernest Laurentin17-Dec-01 5:14
Ernest Laurentin17-Dec-01 5:14 
GeneralRe: MAXIMIZE A DIALOG Pin
Eugene Pustovoyt17-Dec-01 8:25
Eugene Pustovoyt17-Dec-01 8:25 
GeneralRe: MAXIMIZE A DIALOG Pin
jafrazee17-Dec-01 9:58
jafrazee17-Dec-01 9:58 
GeneralCalcWindowRect for CFrameWnd Pin
17-Dec-01 4:38
suss17-Dec-01 4:38 
GeneralRe: CalcWindowRect for CFrameWnd Pin
Michael Dunn17-Dec-01 7:28
sitebuilderMichael Dunn17-Dec-01 7:28 
GeneralRe: CalcWindowRect for CFrameWnd Pin
17-Dec-01 8:14
suss17-Dec-01 8:14 
GeneralRe: CalcWindowRect for CFrameWnd Pin
Joaquín M López Muñoz17-Dec-01 8:27
Joaquín M López Muñoz17-Dec-01 8:27 
GeneralRe: CalcWindowRect for CFrameWnd Pin
17-Dec-01 17:34
suss17-Dec-01 17:34 
Generalpowerpoint automation problem Pin
Kuniva17-Dec-01 4:05
Kuniva17-Dec-01 4:05 
GeneralConvert Calender ! Pin
Hadi Rezaee17-Dec-01 3:48
Hadi Rezaee17-Dec-01 3:48 
GeneralRe: Convert Calender ! Pin
Rashid Thadha17-Dec-01 4:12
Rashid Thadha17-Dec-01 4:12 
GeneralRe: Convert Calender ! Pin
Hadi Rezaee17-Dec-01 5:21
Hadi Rezaee17-Dec-01 5:21 
Questionhow to read ChooseColor() selection without exiting the dialog Pin
17-Dec-01 3:31
suss17-Dec-01 3:31 
Generalcontrol a downloaded activex control Pin
SAWilde17-Dec-01 2:40
SAWilde17-Dec-01 2:40 
GeneralRe: control a downloaded activex control Pin
Todd.Harvey18-Dec-01 9:07
Todd.Harvey18-Dec-01 9:07 

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.