Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Sizing the columns issue with layered win
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sizing the columns issue with layered win

 Post Reply Post Reply
Author
Message
nguyena1 View Drop Down
Groupie
Groupie


Joined: 28 November 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote nguyena1 Quote  Post ReplyReply Direct Link To This Post Topic: Sizing the columns issue with layered win
    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!!!

 

 

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 16 January 2006 at 12:07pm

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
Back to Top
nguyena1 View Drop Down
Groupie
Groupie


Joined: 28 November 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote nguyena1 Quote  Post ReplyReply Direct Link To This Post 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). 

2006-01-16_145432_alphafloating.zip

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 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
Back to Top
nguyena1 View Drop Down
Groupie
Groupie


Joined: 28 November 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote nguyena1 Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2006 at 1:36pm
Okay, Thanks!
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.141 seconds.