BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Message Mapping

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Ramy
Guest





PostPosted: Fri Jun 25, 2004 12:32 pm    Post subject: Message Mapping Reply with quote




Message Mapping is very useful method, it helps me a lot in my
new application, where can i find a full list of all the
messages that i can cath by this method?

BEGIN_MESSAGE_MAP
VCL_MESSAGE_HANDLER( WM_SYSCOMMAND, TMessage, WMSysCommand )
END_MESSAGE_MAP( TForm )


void __fastcall TBaseForm::WMSysCommand( TMessage &Message )
{
if( Message.WParam == SC_RESTORE )
TForm::Dispatch( &Message );
}

Also, any chance to get help more on the -

"a VERY strange problem with ToolBar ! ! !"

tread?

http://newsgroups.borland.com/cgi-bin/dnewsweb?utag=&group=borland.public.cppbuilder.vcl.components.using&xrelated=82295&cmd_related=Related+Items

thanks.... i'm still stack with it...

Ramy

Back to top
Ramy
Guest





PostPosted: Fri Jun 25, 2004 12:35 pm    Post subject: Re: Message Mapping Reply with quote




Sorry i ment -

void __fastcall TBaseForm::WMSysCommand( TMessage &Message )
{
if( Message.WParam == SC_RESTORE )
{
// Do something...
}

TForm::Dispatch( &Message );
}


Quote:
void __fastcall TBaseForm::WMSysCommand( TMessage &Message )
{
if( Message.WParam == SC_RESTORE )
TForm::Dispatch( &Message );
}



Back to top
Matthew Ferreira
Guest





PostPosted: Fri Jun 25, 2004 2:29 pm    Post subject: Re: Message Mapping Reply with quote



Quote:
Message Mapping is very useful method, it helps me a lot
in my
new application, where can i find a full list of all the
messages that i can cath by this method?

Take a look at the Message.hpp file. It contains all
catchable
messages and the structures they use.

--

=========================
Matthew Ferreira
mferreir[at]ramapo[dot]edu



Back to top
Ramy
Guest





PostPosted: Fri Jun 25, 2004 4:21 pm    Post subject: Re: Message Mapping Reply with quote


I have found 2 files - "Message.hpp" and "Message.h", in any of
them i did not find the word "SC_RESTORE". I checked it on PC
with Windows-XP (and Builder 4.0).

Ramy



"Matthew Ferreira" <mferreir (AT) ramapo (DOT) edu> wrote:
Quote:
Message Mapping is very useful method, it helps me a lot
in my
new application, where can i find a full list of all the
messages that i can cath by this method?

Take a look at the Message.hpp file. It contains all
catchable
messages and the structures they use.


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Jun 25, 2004 5:45 pm    Post subject: Re: Message Mapping Reply with quote


"Matthew Ferreira" <mferreir (AT) ramapo (DOT) edu> wrote


Quote:
Take a look at the Message.hpp file. It contains
all catchable messages and the structures they use.

That header file only contains the VCL's internal messages. MESSAGE_MAPs
can be used for any kind of message known at compile-time. Including Win32
API messages (which is where WM_SYSCOMMAND comes from).


Gambit



Back to top
Matthew Ferreira
Guest





PostPosted: Fri Jun 25, 2004 7:37 pm    Post subject: Re: Message Mapping Reply with quote

Quote:
That header file only contains the VCL's internal messages. MESSAGE_MAPs
can be used for any kind of message known at compile-time. Including
Win32
API messages (which is where WM_SYSCOMMAND comes from).

I thought I remembered seeing the WinAPI messages in there.
I must be thinking of a different file.

--

=========================
Matthew Ferreira
mferreir[at]ramapo[dot]edu



Back to top
Rudy Velthuis [TeamB]
Guest





PostPosted: Fri Jun 25, 2004 8:02 pm    Post subject: Re: Message Mapping Reply with quote

At 21:37:28, 25.06.2004, Matthew Ferreira wrote:

Quote:
That header file only contains the VCL's internal messages.
MESSAGE_MAPs can be used for any kind of message known at
compile-time. Including
Win32
API messages (which is where WM_SYSCOMMAND comes from).

I thought I remembered seeing the WinAPI messages in there.
I must be thinking of a different file.

You probably saw the structs representing the general message struct, as
defined for the VCL.
--
Rudy Velthuis [TeamB]

"Ask people why they have deer heads on their walls and they tell you
it's because they're such beautiful animals. I think my wife is
beautiful, but I only have photographs of her on the wall."
-- George Carlin

Back to top
Ramy
Guest





PostPosted: Fri Jun 25, 2004 9:15 pm    Post subject: Re: Message Mapping Reply with quote


Thanks very much for the help here, i have found it :-)

By the way i'll be happy if someone can help me with the
problem that i have with the ToolBar, i'm still stack with it.

The title if the tread is -

"a VERY strange problem with ToolBar ! ! !"

And here is a direct link to the tread -

http://newsgroups.borland.com/cgi-bin/dnewsweb?utag=&group=borland.public.cppbuilder.vcl.components.using&xrelated=82295&cmd_related=Related+Items

Thanks....
Ramy


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.