Print Page | Close Window

Windows Messages

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2326
Printed Date: 14 July 2025 at 1:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Windows Messages
Posted By: Maui
Subject: Windows Messages
Date Posted: 06 June 2005 at 5:44am

Hi,

I have a usercontrol that I put in my programs. Within that usercontrol I subclass windows messages so that I know when the form my control is on is active.

For normal forms this message is WM_ACTIVATE, for midi forms it is WM_NCACTIVATE.

I have encountered a problem putting my control on a form that I use as a Pane in the Tab Control.

The problem is that neither of these messages are received by the form my control is on. It seems that when the form is attached as a Pane the windows messages stop going to it.

Is there anyone at Codejock that can shed some light on this problem for me?

In the short term I can get around the problem by removing the code from my control that tests to see if the form it is on is active, but thats not good for me long term and I would like to understand what is going on so that I can make my control more robust.

Thanks




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