Re: Message Reflection
- From: "John Carson" <jcarson_n_o_sp_am_@xxxxxxxxxxxxxxx>
- Date: Tue, 14 Jun 2005 02:04:37 +1000
"Steve Thresher" <steve.thresher@xxxxxxxxxxxxxx> wrote in message news:eLuyi5CcFHA.3808@xxxxxxxxxxxxxxxxxxxx
Can anyone tell me how message reflection should be implemented or point me at a reference on the topic. I am NOT using MFC. I am attempting to custom draw a header control and need to know how to get the WM_NOTIFY message from the parent control to my window procedure for the header control. I can subclass the parent of the header control when it is created but what happens when you destroy the header control? The parent window is still sub-classed with no way to work out the address for the parents original window procedure.
Any help would be greatly appreciated.
Steve.
I am puzzled by your question. When you subclass a window procedure, the address of the original window procedure is received as the return value of SetWindowLong. You need this address so you can call the original window procedure for those messages you don't choose to process.
You can choose to remove the subclass when you destroy the header control for the sake of a slight efficiency gain, but it should continue to work if you just leave it there unless you have written it in some strange way.
--
John Carson
.
- Follow-Ups:
- Re: Message Reflection
- From: Steve Thresher
- Re: Message Reflection
- References:
- Message Reflection
- From: Steve Thresher
- Message Reflection
- Prev by Date: Message Reflection
- Next by Date: Re: Message Reflection
- Previous by thread: Message Reflection
- Next by thread: Re: Message Reflection
- Index(es):
Relevant Pages
|
Loading