Re: WM_INITMENU and GetSystemMenu different, why ?
- From: "Gary Chanson" <gchanson@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 16:36:27 -0400
"Xavier" <me@xxxxxxxxxxx> wrote in message
news:Xns96858D959366harkofreefr@xxxxxxxxxxxxxxxxxx
> "Gary Chanson" <gchanson@xxxxxxxxxxxxxxxxxxxx> wrote in
> news:uGp7P9VfFHA.3940@xxxxxxxxxxxxxxxxxxxx:
>
> >
> > Any kind but WH_CALLWNDPROC is probably the best choice since it's
> > so
> > general. You can do your menu modifying (and restoring) in dllmain.
> > All that you care about from the point of view of the hook itself is
> > that it get called so that your dllmain gets run.
> >
>
> OK, but what message I have to intercept ? And what do you mean by "All
> that you care about from the point of view of the hook itself is that it
> get called so that your dllmain gets run."
>
> (sorry, I discovered hooks a few days ago :) )
In this case, it simply means that your DLL will get loaded when any
message is sent to a window procedure in the target thread. You can be
reasonably sure this will happen very often and it's not critical exactly when
your DLL gets loaded. In other cases, it might take sending a private message
to the thread to insure that the hook DLL gets loaded when it's needed.
--
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
- http://www.mvps.org/ArcaneIncantations/consulting.htm
-gchanson@xxxxxxxx
.
- References:
- WM_INITMENU and GetSystemMenu different, why ?
- From: Xavier
- Re: WM_INITMENU and GetSystemMenu different, why ?
- From: Gary Chanson
- Re: WM_INITMENU and GetSystemMenu different, why ?
- From: Xavier
- Re: WM_INITMENU and GetSystemMenu different, why ?
- From: Gary Chanson
- Re: WM_INITMENU and GetSystemMenu different, why ?
- From: Xavier
- WM_INITMENU and GetSystemMenu different, why ?
- Prev by Date: Re: Getting The IContextMenu
- Previous by thread: Re: WM_INITMENU and GetSystemMenu different, why ?
- Next by thread: Re: WM_INITMENU and GetSystemMenu different, why ?
- Index(es):
Relevant Pages
|
Loading