![]() |
how to capture mouse button down/up |
Post Reply
|
| Author | |
Maye Johnson
Groupie
Joined: 16 October 2004 Status: Offline Points: 40 |
Post Options
Thanks(0)
Quote Reply
Topic: how to capture mouse button down/upPosted: 01 March 2005 at 3:17am |
|
I have an SDI application that uses docking panes. My CMainFrame
class is derived from CXTPFrameWnd. What I'm trying to do is
implement click-and-drag screen capture into my application so the user
can capture any part of my application to a JPG file. I'm able to
install a keyboard hook, and my hook procedure is called when the user
hits the hotkey, but I don't receive WM_LBUTTONDOWN or UP messages in
my CMainFrame class.
Is the Docking Pane class intercepting all mouse messages for dragging of panes? |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 March 2005 at 12:01am |
|
WM_LBUTTONDOWN receves only window under cursor. In SDI application it must be CView in CMainFrame try to catch it there. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |