Print Page | Close Window

problem in your SDI app-Ribbonsample

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=12948
Printed Date: 20 January 2025 at 8:36pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: problem in your SDI app-Ribbonsample
Posted By: Pariksh*t
Subject: problem in your SDI app-Ribbonsample
Date Posted: 17 December 2008 at 12:05am
https://forum.codejock.com/uploads/20081217_000522_Untitled.zip - uploads/20081217_000522_Untitled.zip
 
hi,
In Ribbon sample(SDI) example, There are text 'Untitled - Codejock Ribbon Sample' in title bar. How can I change/remove this text 'Untitled' ?.
And application's name 'Codejock Ribbon Sample' is in blue color even in Black theme. How can I change it's color?

plz reply asap.




Replies:
Posted By: znakeeye
Date Posted: 17 December 2008 at 4:39am
This is MFC-stuff.
 
In CYourFrameWnd::PreCreateWindow():
cs.style &= ~FWS_ADDTITLE;


-------------
PokerMemento - http://www.pokermemento.com/


Posted By: Pariksh*t
Date Posted: 17 December 2008 at 5:04am
i tried it ur RibbonSample application in

BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) function.....but getting this error

 
error C2065: 'FWS_ADDTITLE' : undeclared identifier
wot shoud i do?


Posted By: Pariksh*t
Date Posted: 17 December 2008 at 5:28am

it worked...

cs.style &= ~FWS_ADDTOTITLE;

thanx.......



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