![]() |
Couldn't work with other self-draw menu |
Post Reply ![]() |
Author | |
KCJS ![]() Newbie ![]() Joined: 03 January 2009 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() Posted: 06 January 2009 at 10:40pm |
hi all I have a MFC application which is using self-draw menu(author:Bruno Podetti, www.podetti.com/NewMenu) 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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I recommend enable our CommandBars. He use too much hacks in his code.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
KCJS ![]() Newbie ![]() Joined: 03 January 2009 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
Knuth ![]() Groupie ![]() ![]() Joined: 01 March 2008 Location: China Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() |
I encountered the same problem. This is caused by the skin, but I didn't know how to solve this.
|
|
![]() |
|
KCJS ![]() Newbie ![]() Joined: 03 January 2009 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
Sometimes the close button is disabled for MainFrame window after applying skinframework
Who can tell me the reason
|
|
![]() |
|
Kluftinger ![]() Newbie ![]() Joined: 06 October 2009 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
Just curious why not use Codejock CommandBars? What do those menus do that Codejock can't?
|
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
I have to agree with SuperMario here. Takes like one hour to emigrate to CommandBars...
|
|
PokerMemento - http://www.pokermemento.com/
|
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
Anyway, we fixed the issue for 13.2
|
|
![]() |
|
KCJS ![]() Newbie ![]() Joined: 03 January 2009 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
I give a temporary solution to my question the solution is to modify the function CXTPSkinPopupMenu::OnPaint() it works well in my project
|
|
![]() |
|
KCJS ![]() Newbie ![]() Joined: 03 January 2009 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |