Official KolibriOS board
It is currently Fri Jan 28, 2022 9:14 am

All times are UTC+03:00

Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Message Loop
PostPosted: Sun Aug 19, 2007 12:32 pm 

Joined: Sun Oct 22, 2006 6:24 pm
Posts: 14
Здравство и Богатсво !

Как изгледа ситуацийта на имплементиранйе на "Мессаге Пумпе Сустем" во Колибриос.

По мой вид еден Евент Сустем со Мессаге Пумпе не е имплементиран во Колибриос !

Еден Пример как Мессаге Пумпе кай Виндовс функтионира.

invoke GetMessage, ADDR msg,NULL,0,0
.BREAK .IF (!eax)
invoke TranslateMessage, ADDR msg
invoke DispatchMessage, ADDR msg

At this time, our window is up on the screen. But it cannot receive input from the world. So we have to *inform* it of relevant events. We accomplish this with a message loop. There's only one message loop for each module. This message loop continually checks for messages from Windows with GetMessage call. GetMessage passes a pointer to a MSG structure to Windows. This MSG structure will be filled with information about the message that Windows want to send to a window in the module. GetMessage function will not return until there's a message for a window in the module. During that time, Windows can give control to other programs. This is what forms the cooperative multitasking scheme of Win16 platform. GetMessage returns FALSE if WM_QUIT message is received which, in the message loop, will terminate the loop and exit the program.
TranslateMessage is a utility function that takes raw keyboard input and generates a new message (WM_CHAR) that is placed on the message queue. The message with WM_CHAR contains the ASCII value for the key pressed, which is easier to deal with than the raw keyboard scan codes. You can omit this call if your program doesn't process keystrokes.
DispatchMessage sends the message data to the window procedure responsible for the specific window the message is for.


 Post subject:
PostPosted: Thu Aug 23, 2007 6:50 pm 
Kernel Developer
User avatar

Joined: Wed Jul 25, 2007 2:26 pm
Posts: 43
давайте договоримся постить по-русски, или (за не знанием онного) хотя бы как минимум по-английски

 Post subject:
PostPosted: Wed Sep 05, 2007 11:25 pm 

Joined: Sun Oct 22, 2006 6:24 pm
Posts: 14
davajte govorite malko poveke makedonski !
Ne se pravejte tolko prosti majko moja ;-) !

But before you all start Crying here
the question is how much of such EVENTS like here as example will be one day implemented in KOS !








Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+03:00

Who is online

Users browsing this forum: No registered users and 4 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited