Click here to Skip to main content
16,016,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory Leaks Pin
PJ Arends22-May-02 8:45
professionalPJ Arends22-May-02 8:45 
GeneralRe: Memory Leaks Pin
jbarton22-May-02 6:57
jbarton22-May-02 6:57 
GeneralRe: Memory Leaks Pin
Chris Losinger22-May-02 7:05
professionalChris Losinger22-May-02 7:05 
GeneralRe: Memory Leaks Pin
jbarton22-May-02 7:18
jbarton22-May-02 7:18 
GeneralRe: Memory Leaks Pin
JohnnyG22-May-02 8:55
JohnnyG22-May-02 8:55 
GeneralRe: Memory Leaks Pin
Tim Smith22-May-02 8:58
Tim Smith22-May-02 8:58 
GeneralRe: Memory Leaks Pin
Alex Cramer22-May-02 20:53
Alex Cramer22-May-02 20:53 
GeneralCListBox avoid (scrollbar-)repaint while updating items Pin
22-May-02 3:47
suss22-May-02 3:47 
Hi,
I want to update a CListBox derived class (adding many lines and deleting some). My problem is the scrollbar becomes mad (updated every time I change listbox items). I want it updated only once, after the full update. But how?

Step 1: I traced messages with MS Spy++. A WM_PAINT cause a repaint of the scrollbar, the WM_PAINT sends a ON_WM_NCPAINT(). I guess it's send directly to the scrollbar, because I do not receive a ON_WM_NCPAINT() in the listbox in that case.
Step 2: Well, maybe I need to handle the WM_PAINT and stop all WM_PAINTs while updating my CListBox (even better). I have a BOOL telling me when I'm updating.
Step 3. The WM_PAINT handler from my CListBox is empty and the default handler CListBox:OnPaint() does nothing. Now I'm stuck....

Thx for any help!
GeneralRe: CListBox avoid (scrollbar-)repaint while updating items Pin
Chris Losinger22-May-02 3:56
professionalChris Losinger22-May-02 3:56 
GeneralRe: CListBox avoid (scrollbar-)repaint while updating items Pin
Tim Smith22-May-02 4:56
Tim Smith22-May-02 4:56 
GeneralRe: CListBox avoid (scrollbar-)repaint while updating items Pin
22-May-02 8:25
suss22-May-02 8:25 
QuestionStructs: on heap or stack? Pin
Anton A. Loukine22-May-02 3:48
Anton A. Loukine22-May-02 3:48 
AnswerRe: Structs: on heap or stack? Pin
Joaquín M López Muñoz22-May-02 4:23
Joaquín M López Muñoz22-May-02 4:23 
GeneralRe: Structs: on heap or stack? Pin
Anton A. Loukine22-May-02 6:31
Anton A. Loukine22-May-02 6:31 
GeneralRe: Structs: on heap or stack? Pin
Joaquín M López Muñoz22-May-02 6:44
Joaquín M López Muñoz22-May-02 6:44 
GeneralOwner draw help please. Pin
cycosi22-May-02 3:39
cycosi22-May-02 3:39 
GeneralRe: Owner draw help please. Pin
Roger Allen22-May-02 6:26
Roger Allen22-May-02 6:26 
GeneralRe: Owner draw help please. Pin
cycosi22-May-02 20:48
cycosi22-May-02 20:48 
GeneralRe: Owner draw help please. Pin
cycosi22-May-02 23:08
cycosi22-May-02 23:08 
GeneralMemory: debug vs. real world (3) Pin
Mike Osbahr22-May-02 3:24
Mike Osbahr22-May-02 3:24 
GeneralRe: Memory: debug vs. real world (3) Pin
Tim Smith22-May-02 5:00
Tim Smith22-May-02 5:00 
GeneralRe: Memory: debug vs. real world (3) Pin
Mike Osbahr22-May-02 5:54
Mike Osbahr22-May-02 5:54 
GeneralRe: Memory: debug vs. real world (3) Pin
Tim Smith22-May-02 7:39
Tim Smith22-May-02 7:39 
GeneralRe: Memory: debug vs. real world (3) Pin
Mike Osbahr22-May-02 9:39
Mike Osbahr22-May-02 9:39 
GeneralRe: Memory: debug vs. real world (3) Pin
Mike Nordell23-May-02 3:48
Mike Nordell23-May-02 3:48 

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.