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 » Bars in child frames Collapse All
Subject Author Date
Pavel Pavlov Nov 18, 2004 - 11:19 PM

I have a autohiding bar with dialog within. (using CExtControlBar and CExtResizableDialog). When I push pin button on bar the bar is hiding. But on hover mouse over caption of bar the is not restore. Some controls of dialog are drawing if hover mouse but the whole bar is not. Can I make such bars in child frames? Or is it only for main frame windows?

Technical Support Nov 22, 2004 - 2:26 AM

We guess you have an SDI application. In case of the SDI application, the view class has no WS_CLIPSIBLINGS window style. You can add the following line to the PreCreateWindow virtual method of your view class:

cs.style |= WS_CLIPSIBLINGS;
The CSDIDOCVIEWView::PreCreateWindow method in the SDIDOCVIEW sample application demonstrates this.

Pavel Pavlov Nov 22, 2004 - 3:23 AM

No, I use MDI application type. But I added cs.style |= WS_CLIPSIBLINGS; in my view class and hiding\restoring features work now. Although, there is another problem: In main frame I have autohiding bar and in child frame I have autohiding bar, bars are positioned on left side of application. If both bars are hided, and then I move mouse over inner bar which starting restore, and then in this process of restoring of inner bar I move mouse over outer bar I ger assert ASSERT( g_hMouseHook == NULL ); in extcontrolbartabbedfeatures.cpp on line 4455. I solved this problem by placing inner and outer bars on different sides of application, but that is no good.

Technical Support Nov 22, 2004 - 7:02 AM

We confirm that the unwanted assertion described in your message occurs. It is not critical and we have already fixed it. If you are a registered user of the full version, we can provide you with the update.