Print Page | Close Window

Sizing the columns issue with layered win

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=3517
Printed Date: 23 November 2024 at 8:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Sizing the columns issue with layered win
Posted By: nguyena1
Subject: Sizing the columns issue with layered win
Date Posted: 16 January 2006 at 11:27am

Hey there, I'm having difficulties with my report control.  When I resize the columns, (click and and drag on edge of columns), it causes all my floated panes(including the current pane) to disappear until i let go of the click.  This also only happens if the pane is floated.  If it is docked, then this issue doesn't happen.

A big key note is:  My windows are layered(we have semitransparent windows) .  When I dont layer the windows, resizing the columns works fine.  Here is where the overloaded Create where I set the windows to be layered.

BOOL CTacDockingPaneMiniWnd::Create(CRect rc)
{
 BOOL bRet = CXTPDockingPaneMiniWnd::Create(rc);
 if (bRet)
 {
  if (G_USETRANSPARENCY)
  {
   SetWindowLong(m_hWnd,GWL_EXSTYLE,GetWindow Long(m_hWnd,GWL_EXSTYLE) | WS_EX_LAYERED);
   SetLayeredWindowAttributes(RGB(0,0,0),(BYT E)255,LWA_ALPHA);
  }
 }
 return bRet;
}

Just as a note, for panes with TreeCtrl, this issue does not happen when you resize the columns.

Is there any way I can resolve this issue with layered windows?  I'm fresh out of ideas.  Thanks All!!!

 

 

 




Replies:
Posted By: Oleg
Date Posted: 16 January 2006 at 12:07pm

https://forum.codejock.com/uploads/oleg/2006-01-16_120625_AlphaFloating.zip - 2006-01-16_120625_AlphaFloating.zip

Hmm, I can't reproduce it, please try attachment. Do you have problem with it?

if yes, please wirte

Os, toolkitpro version and attach builded executable here (with dll)

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: nguyena1
Date Posted: 16 January 2006 at 2:55pm

Alrighty,  what you sent, I tried it on my development system(Windows 2000), and it makes the docking panes disappear when you resize the columns.

I decided to try it on my Windows XP machine and it works completely fine.  Try this program(same as yours) on a windows2000 machine. 

Here is my exe build on windows2000 machine(debug). 

https://forum.codejock.com/uploads/nguyena1/2006-01-16_145432_alphafloating.zip - 2006-01-16_145432_alphafloating.zip

 



Posted By: Oleg
Date Posted: 18 January 2006 at 1:24am

Hello,

afraid this is lack of Windows 2000, yes I reproduced it, but it also happen if you start drag one docking pane, second disappear. and if you try use standard CToolBar instead our, it also happen if you drag it.

I think your G_USETRANSPARENCY must be true only if OS win XP detected.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: nguyena1
Date Posted: 19 January 2006 at 1:36pm
Okay, 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