Click here to Skip to main content
15,914,452 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Gathering ethernet network statistics Pin
David Crow22-Feb-05 14:07
David Crow22-Feb-05 14:07 
GeneralRe: Gathering ethernet network statistics Pin
Bail Organa23-Feb-05 10:19
Bail Organa23-Feb-05 10:19 
GeneralRe: Gathering ethernet network statistics Pin
David Crow23-Feb-05 10:28
David Crow23-Feb-05 10:28 
GeneralOnDraw() troubles.... Pin
bitpusher22-Feb-05 10:34
bitpusher22-Feb-05 10:34 
GeneralRe: OnDraw() troubles.... Pin
John R. Shaw22-Feb-05 16:10
John R. Shaw22-Feb-05 16:10 
GeneralRe: OnDraw() troubles.... Pin
bitpusher23-Feb-05 6:40
bitpusher23-Feb-05 6:40 
GeneralRe: OnDraw() troubles.... Pin
bobi_zcl22-Feb-05 21:50
bobi_zcl22-Feb-05 21:50 
GeneralRe: OnDraw() troubles.... Pin
bitpusher23-Feb-05 6:36
bitpusher23-Feb-05 6:36 
Thanks for the reply. The View class contains an array of CButtons that it creates upon init-dialog. Then, in the View’s OnDraw() method, these buttons are repositioned (MoveWindow()) based on the user’s resizing the overall view. After calling MoveWindow(), I draw a bunch of lines (dc->LineTo()).
When the app is running and the user resizes the view, the lines all have blank squares imprinted over them where the CButton(s) used to be (i.e., before they were moved with MoveWindow()).
When I insert debug TRACE()s, I see that the CButton’s OnEraseBackground method is temporally executed AFTER the View’s OnDraw() is completed. I suspect that the MoveWindow() simply puts a message in the queue for the CButtons to erase themselves. However, I want this operation to complete immediately before the lines are drawn.
Any suggestions?

Thanks!


JennyP
GeneralSTL sort functor question Pin
Maximilien22-Feb-05 10:03
Maximilien22-Feb-05 10:03 
GeneralRe: STL sort functor question Pin
Gevorg22-Feb-05 10:09
Gevorg22-Feb-05 10:09 
GeneralRe: STL sort functor question Pin
Michael Dunn22-Feb-05 11:11
sitebuilderMichael Dunn22-Feb-05 11:11 
GeneralQuestion about the copy constructor Pin
Budric B.22-Feb-05 9:00
Budric B.22-Feb-05 9:00 
GeneralRe: Question about the copy constructor Pin
Mohammad A Gdeisat22-Feb-05 10:09
Mohammad A Gdeisat22-Feb-05 10:09 
GeneralRe: Question about the copy constructor Pin
S. Senthil Kumar22-Feb-05 18:19
S. Senthil Kumar22-Feb-05 18:19 
GeneralRe: Question about the copy constructor Pin
Anonymous22-Feb-05 21:55
Anonymous22-Feb-05 21:55 
GeneralRe: Question about the copy constructor Pin
S. Senthil Kumar22-Feb-05 18:35
S. Senthil Kumar22-Feb-05 18:35 
GeneralRe: Question about the copy constructor Pin
John R. Shaw22-Feb-05 18:58
John R. Shaw22-Feb-05 18:58 
GeneralThank you all Pin
Budric B.23-Feb-05 3:05
Budric B.23-Feb-05 3:05 
GeneralDebuggin mixed (managed/unmanaged) code Pin
CLermen22-Feb-05 8:44
CLermen22-Feb-05 8:44 
GeneralRe: Debuggin mixed (managed/unmanaged) code Pin
Sheng Jiang 蒋晟22-Feb-05 13:25
Sheng Jiang 蒋晟22-Feb-05 13:25 
GeneralRe: Debuggin mixed (managed/unmanaged) code Pin
CLermen23-Feb-05 2:31
CLermen23-Feb-05 2:31 
QuestionCFormView window can never be on top of CDialog. Why? How can I change this? Pin
digwizfox22-Feb-05 8:10
digwizfox22-Feb-05 8:10 
GeneralNamedPipe Server Pin
humps22-Feb-05 7:50
humps22-Feb-05 7:50 
GeneralImplementing a join operation in an ODBC based application -- Question! Pin
ur_unholyness22-Feb-05 6:10
ur_unholyness22-Feb-05 6:10 
GeneralRe: Implementing a join operation in an ODBC based application -- Question! Pin
David Crow22-Feb-05 8:17
David Crow22-Feb-05 8:17 

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.