Print Page | Close Window

EnableOffice2007Frame = True and MSGBOX

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=10206
Printed Date: 02 May 2024 at 1:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: EnableOffice2007Frame = True and MSGBOX
Posted By: Vulture
Subject: EnableOffice2007Frame = True and MSGBOX
Date Posted: 12 April 2008 at 5:49am
If I set EnableOffice2007Frame equal to True for a Commandbar in a VB6 form and show a MSGBOX then the drawing of the nice Office2007 frame disappers from the form and instead the standard form frame is shown. This looks a little wierd. Is there a work-around for this?

Btw. I am using XtremeSuite ActiveX version 11.2.2




Replies:
Posted By: JantjeKeizer
Date Posted: 12 April 2008 at 8:05am
At some point in your app, you've probably set the caption of your form. Replace it with SetWindowText.
Took me a while to figure that one out myself, too


Posted By: Vulture
Date Posted: 12 April 2008 at 8:12am
You are absolutely right 

I change the caption of the form when a new file is loaded to show the title of the file.

I will go right back and replace it with SetWindowText API instead :)

Thank you for your help! It worked like a charm.


Posted By: RedFin
Date Posted: 16 April 2008 at 10:27pm
Thanks for the SetWindowText tip ... I was using ribbon.RedrawBar to repaint the ribbon, but you could still see the standard title bar for an instant ... SetWindowText works perfectly!

Thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net