Print Page | Close Window

how to capture mouse button down/up

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1880
Printed Date: 07 November 2025 at 4:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to capture mouse button down/up
Posted By: Maye Johnson
Subject: how to capture mouse button down/up
Date 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?




Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net