Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - how to capture mouse button down/up
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to capture mouse button down/up

 Post Reply Post Reply
Author
Message
Maye Johnson View Drop Down
Groupie
Groupie


Joined: 16 October 2004
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maye Johnson Quote  Post ReplyReply Direct Link To This Post Topic: how to capture mouse button down/up
    Posted: 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?

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.