| View previous topic :: View next topic |
| Author |
Message |
Ramy Guest
|
Posted: Fri Jun 25, 2004 12:32 pm Post subject: Message Mapping |
|
|
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
|
Posted: Fri Jun 25, 2004 12:35 pm Post subject: Re: Message Mapping |
|
|
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
|
Posted: Fri Jun 25, 2004 2:29 pm Post subject: Re: Message Mapping |
|
|
| 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
|
Posted: Fri Jun 25, 2004 4:21 pm Post subject: Re: Message Mapping |
|
|
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
|
Posted: Fri Jun 25, 2004 5:45 pm Post subject: Re: Message Mapping |
|
|
"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
|
Posted: Fri Jun 25, 2004 7:37 pm Post subject: Re: Message Mapping |
|
|
| 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
|
Posted: Fri Jun 25, 2004 8:02 pm Post subject: Re: Message Mapping |
|
|
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
|
|
| Back to top |
|
 |
|