Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » SDI & CExtControlBar & FrameInjectAutoHideAreas Collapse All
Subject Author Date
genka Oct 7, 2002 - 10:23 AM

Hallo,

I have a one Trick ,-)
If I use in SDI Application AutoHideAreas then one part will be not repainted on CView.
Do you have a one Tip?

Russian:
Esli ja ispolzuju AutoHide w SDI application to, tam gde CView, Control Bar ne budet pereresowan pri nawedenii mischki. Pri slozennom sostojanii okno widwigaetsja i ta chast’ controlbar kotoraja nachoditsja nad CView ne pererisowiwaetsja.

Ja poprobowal Samples SDI, SDIDOCVIEW s AutoHide tam toze problemi.

U was est’ kakoe-nibud’ predlozenie?

WBW,
genka

Sergiy Lavrynenko Oct 7, 2002 - 12:17 PM

Hi,
thank you for a good question.

The answer is: just add the standard WS_CLIPSIBLINGS window style to the view window.

That is essential for SDI applications.

So, what you have to do is to override PreCreateWindow() like this:

BOOL CMyView::PreCreateWindow( CREATESTRUCT & cs )
{
if( !CParentOfMyView::PreCreateWindow(cs) )
return FALSE;

...

    cs.style |= WS_CLIPSIBLINGS;

...

return TRUE;
}

genka Oct 7, 2002 - 1:54 PM

Hallo Sergiy,

Thank You! ,-)

WBW,
genka