Re: WM_LBUTTONDOWN and SetWindowPos
From: Janiv Ratson (janiv_at_aoe6.net)
Date: 11/08/04
- Next message: Janiv Ratson: "Re: WM_LBUTTONDOWN and SetWindowPos"
- Previous message: Janiv Ratson: "Re: WM_LBUTTONDOWN and SetWindowPos"
- In reply to: Janiv Ratson: "Re: WM_LBUTTONDOWN and SetWindowPos"
- Next in thread: Janiv Ratson: "Re: WM_LBUTTONDOWN and SetWindowPos"
- Reply: Janiv Ratson: "Re: WM_LBUTTONDOWN and SetWindowPos"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 8 Nov 2004 13:40:00 +0200
?>
"Janiv Ratson" <janiv@aoe6.net> wrote in message
news:eyNU46KxEHA.1396@tk2msftngp13.phx.gbl...
> The top most control is either a Button or a Static (with SS_NOTIFY, cause
> if it is not overlapped , than I get the notification).
> What can I do ?
> 10x,
> Janiv.
>
> "Michael K. O'Neill" <MikeAThon2000@nospam.hotmail.com> wrote in message
> news:e5Iy0fhwEHA.4040@TK2MSFTNGP10.phx.gbl...
> > What are the controls? Buttons? Statics? Is the top-most control a
static?
> > If so, then the static will never get a mouse message (regardless of its
> > z-order) unless the SS_NOTIFY style is set.
> >
> > Try trapping on the WM_NCHITTEST message (for the top-most control) and
> see
> > what is being returned.
> >
> > Mike
> >
> >
> > "Janiv Ratson" <janiv@aoe6.net> wrote in message
> > news:OqH5a0YwEHA.1228@TK2MSFTNGP10.phx.gbl...
> > > I have a View (form) that holds few controls.
> > > The view is the one that handle the button down.
> > > The 2 controls within the view were set to bottom and topmost Z order.
> > > 10x,
> > > Janiv.
> > >
> > > Any other suggestions ?
> > >
> > > "Ajay Kalra" <ajaykalra@yahoo.com> wrote in message
> > > news:evsC7oVwEHA.1308@TK2MSFTNGP09.phx.gbl...
> > > > Where are you handling the click? Only the control which got clicked
> > would
> > > > send this message. There cannot be any confusion unless you are
doing
> > it
> > > at
> > > > a higher level.
> > > >
> > > > --
> > > > Ajay Kalra [MVP - VC++]
> > > > ajaykalra@yahoo.com
> > > >
> > > >
> > > > "Janiv Ratson" <janiv@aoe6.net> wrote in message
> > > > news:OxPJsiOwEHA.536@TK2MSFTNGP11.phx.gbl...
> > > > > Hi,
> > > > > I use the SetWindowPos function to set Z order and it works,
hence,
> > the
> > > > > control on the top most shown on the bottom control.
> > > > > The problem begins when th euserclicktheLButtondown.
> > > > > Although the user presses the top most control, in the message
> > > > > WM_LBUTTONDOWN I get a handle to the bottom window instead of the
> top
> > > most
> > > > > one.
> > > > >
> > > > > Why is that ?
> > > > > How can I fix it ?
> > > > >
> > > > > 10x,
> > > > > Janiv.
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: Janiv Ratson: "Re: WM_LBUTTONDOWN and SetWindowPos"
- Previous message: Janiv Ratson: "Re: WM_LBUTTONDOWN and SetWindowPos"
- In reply to: Janiv Ratson: "Re: WM_LBUTTONDOWN and SetWindowPos"
- Next in thread: Janiv Ratson: "Re: WM_LBUTTONDOWN and SetWindowPos"
- Reply: Janiv Ratson: "Re: WM_LBUTTONDOWN and SetWindowPos"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|