IonicWind Software

Aurora Compiler => General Discussion => Topic started by: JR on April 18, 2006, 02:15:27 AM

Title: GetMessage
Post by: JR on April 18, 2006, 02:15:27 AM
Can we use GetMessage, IsDialogMessage, TranslateMessage, DispatchMessage with Aurora?

while(GetMessage(&Msg, NULL, 0, 0) > 0)
{
    TranslateMessage(&Msg);
    DispatchMessage(&Msg);
}

I'm asking this question because I plan to use ATL.DLL as an ActiveX container and with some controls I need to forward the message to the control and check if it has been processed or not.

If we can't use it, is there a workaround?
Title: Re: GetMessage
Post by: Ionic Wind Support Team on April 18, 2006, 08:33:36 AM
Yes.

WAIT is the internal message loop which does basically the same thing.  A little more complex though ;)

WAIT handles translating accelerators, processing the TAB key for windows when the EnableTabs method is used, etc.   You could also just modify the source to WAIT and make your own custom one.  It's in the source archive ($20).

Paul.
Title: Re: GetMessage
Post by: John S on April 18, 2006, 11:19:05 AM
Paul,
quick (possibly dumb) question regarding API calls ... is Aurora making calls to Win32 API or MFC? 
(I'm barely functioning due late nights doing homework)

John
Title: Re: GetMessage
Post by: Mike Stefanik on April 18, 2006, 11:25:53 AM
It's calling the API. In the end, MFC is doing the same thing as well. The Microsoft Foundation Classes are essentially a wrapper around the various Windows API subsystems.
Title: Re: GetMessage
Post by: Ionic Wind Support Team on April 18, 2006, 01:16:57 PM
Aurora doesn't use MFC at all.  It has it's own class libraries.

Title: Re: GetMessage
Post by: JR on April 18, 2006, 04:24:22 PM
Quote from: Ionic Wizard on April 18, 2006, 08:33:36 AM
Yes.

WAIT is the internal message loop which does basically the same thing.  A little more complex though ;)

WAIT handles translating accelerators, processing the TAB key for windows when the EnableTabs method is used, etc.   You could also just modify the source to WAIT and make your own custom one.  It's in the source archive ($20).

Paul.
Ok. I have just ordered the compiler and the source code and made the payment by PayPal. However, it would be nice if you'll add PreTranslateMessage.
Title: Re: GetMessage
Post by: Parker on April 18, 2006, 09:28:00 PM
I have to agree there. PreTranslateMessage would be very useful.