Re: inputbox
- Posted by =?iso-8859-2?B?qWtvZGE=?= <tone.skoda at SIOL.NET> Jul 27, 2000
- 409 views
----- Original Message ----- From: Bernie <xotron at PCOM.NET> To: <EUPHORIA at LISTSERV.MUOHIO.EDU> Sent: Wednesday, July 26, 2000 11:03 PM Subject: Re: inputbox > On Wed, 26 Jul 2000 21:40:16 +0200, =?iso-8859-2?B?qWtvZGE=?= > <tone.skoda at SIOL.NET> wrote: > > >> -- message loop > >> while c_func( xGetMessage, { msg, NULL, 0, 0 } ) and not > >> EventLoopExit[ele] do > > if msg.message=WM_COMMAND then > > .... > > end if > >> c_proc( xTranslateMessage, { msg } ) > >> c_proc( xDispatchMessage, { msg } ) > >> end while > > > >why can't we process messages directly withing this loop? then it would be > >similar to dos programming, where you handle user actions in one big loop. > >WndProc just complicates things up. why is this in windows that way? > > > > I think you are forgeting that more than one application can be > > running at the same time in windows and each application has > > a window's procedure so that windows can send the message to the > > proper application window. are you saying that messages for all windows an application has go thru that loop? i thought there were messages just for main application window.