Problem with OnLButtonUp()
tiger@flynet.de
Wednesday, February 26, 1997
Environment: VC++ 4.2-flat, Win 95
Hi there,
I've created a MDI Application with several Splitter-Panes in the
CMDIChildWindow. In two Panes I display two modified ListViews:
CListView
|
|
CLVExtension
|
--- CLVOne
|
--- CLVTwo
Both Lists have the LVS_REPORT - Style supporting Drag'n'Drop.
No Problems here.
If I add CLVOne::OnLButtonUp() and CLVTwo::OnLButtonUp() using
Class-Wizzard, both methods are never called. This looks really
strange to me, because OnLButtonDown() and OnMouseMove() are working fine.
Observing the Lists (Spy++) I've found that the message WM_LBUTTONUP is
posted! (I'm not using API functions like SetCapture() ) Any suggestions ?
Thanks for your help
Frank Leuenberger
tiger@flynet.de
Regis NICOLAS -- regis.nicolas@smartcode.fr
Thursday, February 27, 1997
At 12:38 PM 2/26/97 +0000, you wrote:
>Environment: VC++ 4.2-flat, Win 95
>
>Hi there,
>
>I've created a MDI Application with several Splitter-Panes in the
>CMDIChildWindow. In two Panes I display two modified ListViews:
>
>CListView
> |
> |
>CLVExtension
> |
> --- CLVOne
> |
> --- CLVTwo
>
>Both Lists have the LVS_REPORT - Style supporting Drag'n'Drop.
>No Problems here.
>If I add CLVOne::OnLButtonUp() and CLVTwo::OnLButtonUp() using
>Class-Wizzard, both methods are never called. This looks really
>strange to me, because OnLButtonDown() and OnMouseMove() are working fine.
>Observing the Lists (Spy++) I've found that the message WM_LBUTTONUP is
>posted! (I'm not using API functions like SetCapture() ) Any suggestions ?
>
>Thanks for your help
>
>Frank Leuenberger
>tiger@flynet.de
>
>
I had a similar problem once. The drag and drop feature uses GetCapture to
work properly and then the WM_LBUTTONUP is captured and you will not get it.
I used the following work around: In OnLButtonDown, if the Drag and Drop
succeeded I reposted the WM_LBUTTONUP message.
May be you have the same problem.
Hope it helps...
------------------------------
Regis NICOLAS - R&D Windows
Smartcode Technologie
mailto:nicolas@smartcode.fr
http://www.smartcode.fr/
http://www.smartcodesoft.com/
Tel.: (33) (0)4 67 59 30 16
Become an MFC-L member
| Вернуться в корень Архива
|