SDI problem |
Post Reply |
Author | |
JoeBlack
Newbie Joined: 10 June 2003 Status: Offline Points: 3 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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; }
|
|
zhou_wz
Groupie Joined: 11 December 2003 Status: Offline Points: 44 |
Post Options
Thanks(0)
|
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? |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |