Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - SDI problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SDI problem

 Post Reply Post Reply
Author
Message
JoeBlack View Drop Down
Newbie
Newbie


Joined: 10 June 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote JoeBlack Quote  Post ReplyReply Direct Link To This Post Topic: SDI problem
    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 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!



Edited by JoeBlack
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: 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;

}

 

 

Back to Top
zhou_wz View Drop Down
Groupie
Groupie


Joined: 11 December 2003
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote zhou_wz Quote  Post ReplyReply Direct Link To This Post 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?

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.188 seconds.