Click here to Skip to main content
16,014,838 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: conversion from 'long' to 'void *' of greater size Pin
toxcct16-Jun-04 9:52
toxcct16-Jun-04 9:52 
GeneralRe: conversion from 'long' to 'void *' of greater size Pin
Henry miller17-Jun-04 3:28
Henry miller17-Jun-04 3:28 
GeneralEmail link Pin
marcomars16-Jun-04 5:58
marcomars16-Jun-04 5:58 
GeneralRe: Email link Pin
David Crow16-Jun-04 6:14
David Crow16-Jun-04 6:14 
Questionscroll the document? Pin
Nelson L.16-Jun-04 5:48
Nelson L.16-Jun-04 5:48 
GeneralFindWindow returning error 126 ERROR_MOD_NOT_FOUND Pin
Anonymous16-Jun-04 5:30
Anonymous16-Jun-04 5:30 
QuestionHow to implement Invalidation/Redraw pattern Pin
P. Gnana Prakash16-Jun-04 5:30
P. Gnana Prakash16-Jun-04 5:30 
AnswerRe: How to implement Invalidation/Redraw pattern Pin
Blake Miller16-Jun-04 13:38
Blake Miller16-Jun-04 13:38 
I read the pattern. Basically, it seems to resolve into these major issues:

1. Don't redraw objects in your list unless a new or relocated object uncovered it.
2. Don't draw objects in your list that are completely obscured by another object.
3. While dragging an object, don't redraw all objects on screen, only those that were uncovered - OR - wait until there is some other event, like mouse up, and then redraw objects that were uncovered along the way.

If you keep adding to the invalidation rectangle as an object is moving, and then invalidate that rectoangle after the object stops moving, when your window paint message comes along, the paint rectangle will match your invalidated rectangle. Go through your list and only draw objects that are partially or entirely within that rectangle, and skip all the others. Not 100% efficient, but it will get you going and be better than redrawing EVERYTHING each time you get a paint message.

AnswerRe: How to implement Invalidation/Redraw pattern Pin
Johan Rosengren16-Jun-04 21:08
Johan Rosengren16-Jun-04 21:08 
GeneralBuilding a neural network Pin
pavanbabut16-Jun-04 5:20
pavanbabut16-Jun-04 5:20 
GeneralMessage Before window displayed Pin
sschilachi16-Jun-04 4:59
sschilachi16-Jun-04 4:59 
GeneralRe: Message Before window displayed Pin
Ravi Bhavnani16-Jun-04 5:00
professionalRavi Bhavnani16-Jun-04 5:00 
GeneralRe: Message Before window displayed Pin
sschilachi16-Jun-04 5:34
sschilachi16-Jun-04 5:34 
GeneralGetting the filesize of all files inside of a folder, quicker Pin
Dean Michaud16-Jun-04 4:55
Dean Michaud16-Jun-04 4:55 
GeneralRe: Getting the filesize of all files inside of a folder, quicker Pin
palbano16-Jun-04 5:53
palbano16-Jun-04 5:53 
GeneralRe: Getting the filesize of all files inside of a folder, quicker Pin
bikram singh16-Jun-04 6:03
bikram singh16-Jun-04 6:03 
GeneralRe: Getting the filesize of all files inside of a folder, quicker Pin
Anonymous16-Jun-04 6:16
Anonymous16-Jun-04 6:16 
GeneralRe: Getting the filesize of all files inside of a folder, quicker Pin
palbano16-Jun-04 6:24
palbano16-Jun-04 6:24 
GeneralRe: Getting the filesize of all files inside of a folder, quicker Pin
Dean Michaud16-Jun-04 10:59
Dean Michaud16-Jun-04 10:59 
GeneralRe: Getting the filesize of all files inside of a folder, quicker Pin
Blake Miller16-Jun-04 13:42
Blake Miller16-Jun-04 13:42 
GeneralRe: Getting the filesize of all files inside of a folder, quicker Pin
Tim Smith16-Jun-04 16:43
Tim Smith16-Jun-04 16:43 
QuestionHow to complile WMI andf ADSI with studio version 6 ? Pin
vgrigor116-Jun-04 4:19
vgrigor116-Jun-04 4:19 
GeneralHelp!!! Pin
El'Cachubrey16-Jun-04 4:02
El'Cachubrey16-Jun-04 4:02 
GeneralRe: Help!!! Pin
Rodrigo Pinto Pereira de Souza16-Jun-04 7:22
Rodrigo Pinto Pereira de Souza16-Jun-04 7:22 
GeneralRe: Help!!! Pin
Rodrigo Pinto Pereira de Souza16-Jun-04 7:23
Rodrigo Pinto Pereira de Souza16-Jun-04 7:23 

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.