user defined WM_ question

Eric Strain <eric_strain1-/[email protected]>
Newsgroups gmane.comp.windows.off-topic
Message-ID <[email protected]>
Hi All,
 I have a function that I need to fire when a specific event occurs. The event that I need to trap is a network failure of any kind. I have the code that detects when a network failure has occurred but at present the function is inside a command line interface program and I want to transfer that function into an MFC app and have the function activated by a WM_ event. My question is, is it possible to get the user defined WM_ to fire automatically, or does the user have to send the event message manually, such as by clicking a UI button or something?

Also, I considered using WM_USER to define the custom WM_ message, but my research indicates that WM_APP is the preferred method for defining a custom message. Any thoughts on this? Even better, any concrete examples?  ; )   I've looked all over the net and through my library of books with no luck. It's a shame a person can't loose weight by running in circles, because I seem to be getting nowhere fast. Thanks guys.

-Eric
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.