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

SDI bug!!!

 Post Reply Post Reply
Author
Message
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 Topic: SDI bug!!!
    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!

 

 

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: 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
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.156 seconds.