Click here to Skip to main content
15,894,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to Call a function from another class Pin
gmlnd21-Apr-03 7:44
gmlnd21-Apr-03 7:44 
AnswerRe: How to Call a function from another class Pin
David Crow21-Apr-03 7:47
David Crow21-Apr-03 7:47 
AnswerRe: How to Call a function from another class Pin
AnkushChopra21-Apr-03 19:10
AnkushChopra21-Apr-03 19:10 
GeneralRe: How to Call a function from another class Pin
gmlnd22-Apr-03 5:32
gmlnd22-Apr-03 5:32 
Generalhelp me@!Graphics and vectorgraph Pin
vagabond200221-Apr-03 7:16
vagabond200221-Apr-03 7:16 
GeneralRe: help me@!Graphics and vectorgraph Pin
John R. Shaw22-Apr-03 20:28
John R. Shaw22-Apr-03 20:28 
GeneralPeekMessage hanging Pin
Dave_21-Apr-03 6:57
Dave_21-Apr-03 6:57 
GeneralRe: PeekMessage hanging Pin
David Crow21-Apr-03 8:03
David Crow21-Apr-03 8:03 
I assume you have a single-threaded program. When you click on one of the controls on the modeless dialog, it is not receiving enough of the CPU to carry out what needs to be done (e.g, paint). When it does get a timeslice, things probably appear "jumpy."

The PeekMessage() solution you have employed is an antiquated and largely unused 16-bit Windows solution (but still used because it is "well known"). It's bad for several reasons. The most important one is that it puts, in the time-critical main loop, a function whose overhead is substantial. Another problem is, since there is a modeless dialog active, there is no IsDialogMessage() call there to handle it. Go with a worker thread.
GeneralRe: PeekMessage hanging Pin
Dave_21-Apr-03 9:32
Dave_21-Apr-03 9:32 
GeneralDeviceIoControl / GetOverlappedResult misbehaving Pin
Brian Tietz21-Apr-03 6:33
Brian Tietz21-Apr-03 6:33 
Generalwindows get bored me Pin
karanba21-Apr-03 6:01
karanba21-Apr-03 6:01 
GeneralRe: windows get bored me Pin
David Crow21-Apr-03 8:06
David Crow21-Apr-03 8:06 
Generaltem out for winsocks Pin
karanba21-Apr-03 5:50
karanba21-Apr-03 5:50 
GeneralRe: tem out for winsocks Pin
valikac21-Apr-03 9:45
valikac21-Apr-03 9:45 
GeneralLea Allocator.... Pin
User 988521-Apr-03 5:49
User 988521-Apr-03 5:49 
GeneralRe: Lea Allocator.... Pin
Tim Smith21-Apr-03 5:56
Tim Smith21-Apr-03 5:56 
GeneralRe: Lea Allocator.... Pin
User 988521-Apr-03 5:58
User 988521-Apr-03 5:58 
GeneralRe: Lea Allocator.... Pin
User 988521-Apr-03 5:57
User 988521-Apr-03 5:57 
QuestionShare memory problem? Pin
chen21-Apr-03 5:33
chen21-Apr-03 5:33 
AnswerRe: Share memory problem? Pin
John M. Drescher21-Apr-03 8:02
John M. Drescher21-Apr-03 8:02 
AnswerRe: Share memory problem? Pin
User 988521-Apr-03 9:36
User 988521-Apr-03 9:36 
QuestionHow to enumurate the shell folders like the explorer.exe? Pin
zmnie21-Apr-03 5:03
zmnie21-Apr-03 5:03 
Generaleasy question about RecordSet Pin
Martin_Viet21-Apr-03 4:33
Martin_Viet21-Apr-03 4:33 
GeneralRe: easy question about RecordSet Pin
dabs21-Apr-03 4:56
dabs21-Apr-03 4:56 
GeneralThanx you very much!!!!!! (;)) Pin
Martin_Viet21-Apr-03 5:10
Martin_Viet21-Apr-03 5:10 

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.