Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPControlCustom and Clone()
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlCustom and Clone()

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlCustom and Clone()
    Posted: 15 May 2009 at 7:52am
XTP 13.
 
I copy a whole group from tab #1 to tab #2. Then I click on tab #1 and tab#2 alternatively. Hence, I'm reusing a window here (which might be wrong in the first place). Sometimes, my CXTPControlCustom-button disappears - only showing the caption!
 
 
At first sight...
 
Then after changing tab a couple of times...
 
 
What's wrong? I sense CXTPControlCustom::Clone() is incomplete. Perhaps it should somehow ask the child control to copy itself to this?
CXTPCustomChildControl<CWnd>::Clone(CXTPCustomChildControl<CWnd> *pWnd)...? Dunno!
PokerMemento - http://www.pokermemento.com/
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 2009 at 1:26am
Hi,
 
Yes, Custom Controls have such restrictions.  There is no way for Custom control create 2 window handlers from 1. :(
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.