Print Page | Close Window

Couldn't work with other self-draw menu

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=13094
Printed Date: 22 November 2024 at 5:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Couldn't work with other self-draw menu
Posted By: KCJS
Subject: Couldn't work with other self-draw menu
Date Posted: 06 January 2009 at 10:40pm

hi all

I have a MFC application which is using self-draw menu(author:Bruno Podetti, http://www.podetti.com/NewMenu - www.podetti.com/NewMenu )
When I apply skinframework on it, every things seems perfect except the menu, although the menu is visible , but it is blank for popup menu item, here is snapshot

Through debuging, I find the function"void CNewMenu::DrawItem (LPDRAWITEMSTRUCT lpDIS)" never be called if we apply skinframework ,that is reason why the menu is blank, but how to solve this problems

here is my entironment
   Product: Xtreme ToolkitPro (MFC) version 12.1.1
   Platform: Windows (32bit) - XP
   Language: Visual C++


Thanks in advance,




Replies:
Posted By: Oleg
Date Posted: 07 January 2009 at 2:53pm
Hi,
I recommend enable our CommandBars. He use too much hacks in his code.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: KCJS
Date Posted: 07 January 2009 at 9:27pm
Why the function"void CNewMenu::DrawItem (LPDRAWITEMSTRUCT lpDIS)" never be called if we apply skinframework ,would you explain the reason from the view of Skin engine
 
Do we must give up our original  code? in fact we have run this application for a long time and the stability is ensured, so if possible, please tell me a soluction to deal with this issue,  Maybe for next project, we will use all XT all features from start


Posted By: Knuth
Date Posted: 05 February 2009 at 10:00pm
I encountered the same problem. This is caused by the skin, but I didn't know how to solve this.


Posted By: KCJS
Date Posted: 29 March 2009 at 11:58pm
Sometimes the close button is disabled for MainFrame window after applying skinframework
Who can tell me the reason


Posted By: Kluftinger
Date Posted: 06 October 2009 at 8:04am
I have the same problem. If I call from my application an other application then I can't see some toolbar buttons and no menu item text by popup-menus.
 
So I tried to solve the problem with the following ideas:
I excluced the library from the other application with <XTPSkinManager()->ExcludeModule> and I called
<XTPSkinManager()->SetAutoApplyNewWindows (FALSE)>.
 
Does anybody know a solution for this problem?
 
Thanks in advance


Posted By: SuperMario
Date Posted: 08 October 2009 at 9:01am
Just curious why not use Codejock CommandBars?  What do those menus do that Codejock can't?


Posted By: znakeeye
Date Posted: 12 October 2009 at 3:41am
I have to agree with SuperMario here. Takes like one hour to emigrate to CommandBars...

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


Posted By: SuperMario
Date Posted: 12 October 2009 at 1:18pm
Anyway, we fixed the issue for 13.2


Posted By: KCJS
Date Posted: 13 October 2009 at 3:39am

I give a temporary solution to my question

the solution is to modify the function CXTPSkinPopupMenu::OnPaint()
replace the code line
 dis.hwndItem = m_hWnd; 
with
 dis.hwndItem = (HWND)m_hMenu;

it works well in my project

  

 



Posted By: KCJS
Date Posted: 13 October 2009 at 3:55am
The only reason is it is tiny UI component
 
Of course the codejock is powerful ,but while it is too heavy
Sometime we don't need so many features



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