Print Page | Close Window

Disabled CXTPTaskPanel gets enabled by resize

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=16597
Printed Date: 28 September 2024 at 9:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disabled CXTPTaskPanel gets enabled by resize
Posted By: czink
Subject: Disabled CXTPTaskPanel gets enabled by resize
Date Posted: 15 April 2010 at 9:26am
Hello,
 
when a CXTPTaskPanel is disabled by EnableWindow(FALSE) under certain circumstances it will be reenabled if the panel gets resized. To reproduce this behaviour please use the GUI_OneNote example in \CodeJock\Samples\UserInterface\GUI_OneNote. For simplicity I placed the code to disable the panel inside CMainFrame::OnCustomize():
 
void CMainFrame::OnCustomize()
{
   m_wndTaskPanel.EnableWindow(FALSE);
   return;
}
 
After compiling start the application, make a right-cklick on one of the bars and choose "customize" (see the picture below for details). Now the CXTPTaskPanel ("New" on the right side) is disabled (Hyperlinks don't work, etc). Now resize this Taskpanel and it gets enabled again.
 
 
Is this the desired behaviour?
 
Thanks
 
Christian Zink
 
Product: Xtreme Toolkit Pro 2009 Vol 3; 13.3.1.0
Platform: Windows XP (32bit) / Vista (32bit)
Language: Visual C++ MFC



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