home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!news.iastate.edu!IASTATE.EDU!elvis
- From: elvis@IASTATE.EDU (Todd D Campbell)
- Subject: C++: Modeless OWL Messaging (PeekMessage?)
- Message-ID: <1992Jul23.101927@IASTATE.EDU>
- Sender: news@news.iastate.edu (USENET News System)
- Reply-To: elvis@IASTATE.EDU (Todd D Campbell)
- Organization: Iowa State University
- Date: Thu, 23 Jul 1992 15:19:27 GMT
- Lines: 26
-
-
- When I throw up a modeless window and begin a loop to do some processing,
- I want a 'stop' button to be able to interrupt (like the way the Cancel button
- works in Turbo C++ when you compile). I need a (not-blocking) OWL function to
- check the Windows message Queue and handle any messages, as:
-
- if (GetModule ()->MakeWindow (the_window)) {
- for (x = 0; x < 1000; x++)
- do_something ();
- the_window->Defer_To_Windows_Message_Processing ();
- }
- }
-
- My Windows reference lists PeekMessage and DispatchMessage as a way to check and
- respond to the message q, but when I call them, my TWindow doesn't get drawn
- properly.
-
- The OWL manual talks about using DefWndProc to handle messages, but I don't know
- where to get a TMessage to give to it. Is there an OWL
- equivilent to PeekMessage?
-
- Thanks,
-
- Todd Campbell
- elvis@iastate.edu
-
-