Print Page | Close Window

SDI bug!!!

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=318
Printed Date: 24 November 2024 at 5:00am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SDI bug!!!
Posted By: zhou_wz
Subject: SDI bug!!!
Date Posted: 30 December 2003 at 6:17am

As author JoeBlack said, 

When pane docked at left side, the pin and X button of Docking pane 's disppear.

When mouse hover on them, they appear!

An solution provided by oleg

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)

{

    if( !CFrameWnd::PreCreateWindow(cs) )

        return FALSE;

    cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;

    return TRUE;

}

The dockingpane shows correctly

but the views in app dont!

A tabview in my SDI, the tabctrl will change its look according the theme selected!

When Theme changes, The tabctrl will change too!

When use WS_CLIPCHILDREN,  I am fraid all my views can't repaint automaticly

So, I dont think it is a good solution for the bug!

We should NOT prevent views repainting!

 

 




Replies:
Posted By: Oleg
Date Posted: 03 January 2004 at 2:33am

You can repaint views manually in OnSettingChange handler.

 RedrawWindow( NULL, NULL,
  RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE | RDW_ALLCHILDREN );



-------------
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