a question abt DispatchMessage
-
Dear all, I would like to know what the Dispatch message actually does?I havent quite understood what it does? does it send the message to the message queue? thanx!
-
Dear all, I would like to know what the Dispatch message actually does?I havent quite understood what it does? does it send the message to the message queue? thanx!
namasthe, Dispatch message will send the message to the corresponding applications window procedure. r u from AP??? Regards, Prashanth.v
-
Dear all, I would like to know what the Dispatch message actually does?I havent quite understood what it does? does it send the message to the message queue? thanx!
The system automatically creates a message queue for each thread. If the thread creates one or more windows, a message loop must be provided; this message loop retrieves messages from the thread's message queue and dispatches them to the appropriate window procedures You create a message loop by using the GetMessage and DispatchMessage functions. // Start the message loop. while( (bRet = GetMessage( &msg, NULL, 0, 0 )) != 0) { if (bRet == -1){ // handle the error and possibly exit } else{ TranslateMessage(&msg); DispatchMessage(&msg); } } // Return the exit code to the system. return msg.wParam; The DispatchMessage function dispatches a message to a window procedure. It is typically used to dispatch a message retrieved by the GetMessage function Appu.. "If you judge people, you have no time to love them."
-
The system automatically creates a message queue for each thread. If the thread creates one or more windows, a message loop must be provided; this message loop retrieves messages from the thread's message queue and dispatches them to the appropriate window procedures You create a message loop by using the GetMessage and DispatchMessage functions. // Start the message loop. while( (bRet = GetMessage( &msg, NULL, 0, 0 )) != 0) { if (bRet == -1){ // handle the error and possibly exit } else{ TranslateMessage(&msg); DispatchMessage(&msg); } } // Return the exit code to the system. return msg.wParam; The DispatchMessage function dispatches a message to a window procedure. It is typically used to dispatch a message retrieved by the GetMessage function Appu.. "If you judge people, you have no time to love them."
what if tehre is no window for taht thread?...then?where does teh message go?...moreover how is routing the mesg to a particulatr window possible?....Dispatch Message has only one parameter.....???? cheerz!
-
namasthe, Dispatch message will send the message to the corresponding applications window procedure. r u from AP??? Regards, Prashanth.v
what if the application has no window?....then? nope not from AP!.... thanx!