Click here to Skip to main content
16,004,969 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dailog in MFC dialog app Pin
Shog922-Apr-02 9:39
sitebuilderShog922-Apr-02 9:39 
GeneralRe: dailog in MFC dialog app Pin
Ravi Bhavnani22-Apr-02 9:29
professionalRavi Bhavnani22-Apr-02 9:29 
Generalhas anybody have any idea about dragdrop a bitmap Pin
shokisingh22-Apr-02 6:31
shokisingh22-Apr-02 6:31 
GeneralRe: has anybody have any idea about dragdrop a bitmap Pin
Paul M Watt22-Apr-02 7:22
mentorPaul M Watt22-Apr-02 7:22 
GeneralWindows GDI and Bitmap tutorials Pin
Mike Zinni22-Apr-02 5:37
Mike Zinni22-Apr-02 5:37 
GeneralRe: Windows GDI and Bitmap tutorials Pin
Paul M Watt22-Apr-02 5:58
mentorPaul M Watt22-Apr-02 5:58 
GeneralChristian Graus, Continuously changing display - Pin
User 988522-Apr-02 5:18
User 988522-Apr-02 5:18 
GeneralRe: Christian Graus, Continuously changing display - Pin
Paul M Watt22-Apr-02 5:53
mentorPaul M Watt22-Apr-02 5:53 
In MFC there is and OnIdle handler that MDC generates for you.

How long do your updates take? I think the method that you have devised is perfectly acceptable. It is simple, and it would also be easy to change the update rate by changing the timer rate. Except, do you have multiple threads, because it may not be neccesary to flag your control as needing an update if you only have one thread.

If you are using teh SDK, there is a way to generate your own IDLE handler by using PeekMessage instead of GetMessage, and callng your handler whenever the queue does not have any messages. then you will have to insert a WaitMessage function when the message queue is empty to prevent the loop from spinning endlessly.

If you choose to do the idle handler, I would suggest that you put a limit on how often your list can update, because idle updates can happen quite frequently.

Good Luck


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: Christian Graus, Continuously changing display - Pin
User 988522-Apr-02 6:26
User 988522-Apr-02 6:26 
GeneralRe: Christian Graus, Continuously changing display - Pin
Ravi Bhavnani22-Apr-02 6:18
professionalRavi Bhavnani22-Apr-02 6:18 
GeneralRe: Christian Graus, Continuously changing display - Pin
User 988522-Apr-02 6:56
User 988522-Apr-02 6:56 
GeneralRe: Christian Graus, Continuously changing display - Pin
Ravi Bhavnani22-Apr-02 7:32
professionalRavi Bhavnani22-Apr-02 7:32 
GeneralShellOpen is hosed Pin
#realJSOP22-Apr-02 5:15
professional#realJSOP22-Apr-02 5:15 
GeneralRe: ShellOpen is hosed Pin
l a u r e n22-Apr-02 5:25
l a u r e n22-Apr-02 5:25 
GeneralRe: ShellOpen is hosed Pin
#realJSOP22-Apr-02 5:58
professional#realJSOP22-Apr-02 5:58 
GeneralRe: ShellOpen is hosed Pin
l a u r e n22-Apr-02 6:01
l a u r e n22-Apr-02 6:01 
GeneralRe: ShellOpen is hosed Pin
Jim Crafton22-Apr-02 6:29
Jim Crafton22-Apr-02 6:29 
GeneralRe: ShellOpen is hosed Pin
Jim Crafton22-Apr-02 6:31
Jim Crafton22-Apr-02 6:31 
GeneralRe: ShellOpen is hosed Pin
David Defoort22-Apr-02 6:31
David Defoort22-Apr-02 6:31 
GeneralRe: ShellOpen is hosed - the answer Pin
#realJSOP22-Apr-02 6:59
professional#realJSOP22-Apr-02 6:59 
GeneralRe: ShellOpen is hosed - the answer Pin
#realJSOP22-Apr-02 8:59
professional#realJSOP22-Apr-02 8:59 
GeneralRe: ShellOpen is hosed - the answer Pin
Gary Kirkham21-Jan-04 5:29
Gary Kirkham21-Jan-04 5:29 
GeneralRe: ShellOpen is hosed - the answer Pin
#realJSOP21-Jan-04 11:18
professional#realJSOP21-Jan-04 11:18 
GeneralSimple MFC question. Pin
Jason Hooper22-Apr-02 5:13
Jason Hooper22-Apr-02 5:13 
GeneralRe: Simple MFC question. Pin
Michael P Butler22-Apr-02 5:25
Michael P Butler22-Apr-02 5:25 

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.