Print Page | Close Window

SDI problem

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=60
Printed Date: 24 November 2024 at 5:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SDI problem
Posted By: JoeBlack
Subject: SDI problem
Date Posted: 10 June 2003 at 5:19pm

Env:Windows XP Pro. SP1(Japnese), VC++6.0SP5(Japanese), MFC, SDI

I'm not good at English. If you have any question about my English, please let me know.

At First, please extract  http://forum.codejock.com/uploads/BCC_problem.zip - BCC_problem.zip  and see images. This is SDI window.

The right side of Pane1 was lacking when Pane1 was attached to left side of the main window.(problem1.jpg)  If it was  attached to right, top, and bottom side, there was no problem.

But if I moved mouse cursor to pin and x button of Pane1, these were appeared. (problem2.jpg, problem3.jpg)

If I pushed pin button, the lack of Pane1 was appeared. (problem4.jpg)

This problem was occured when I selected SDI widow type on AppWizard. If I selected MDI window type, there was no problem.

I tried changing resource type from Japnese to English, the problem was occured, too.

If you have any good idea to solve this problem, please help me.

Thanks a lot!




Replies:
Posted By: Oleg
Date Posted: 10 June 2003 at 11:17pm

In SDI applications need to add  clipping styles to your main frame

 

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)

{

    if( !CFrameWnd::PreCreateWindow(cs) )

        return FALSE;

    cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;

    return TRUE;

}

 

 



Posted By: zhou_wz
Date Posted: 30 December 2003 at 6:05am

Yes!

The docking pane bug is fixed, but it import anothor bug!

The views in SDI MainFrame can't repaint itself correctly!

When I switched Theme of my app, I want my views redraw and turn to be another looks!

But with option WS_CLIPCHILDREN Of course I failedŁĄ

So I think you should not prevent all windows repainting!

Could you Give another solution?




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