Print Page | Close Window

two simple questions

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=15142
Printed Date: 28 April 2024 at 6:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: two simple questions
Posted By: feffe
Subject: two simple questions
Date Posted: 09 September 2009 at 11:29am
Thanks in advance for replies.
 
First question:
 
What's the difference between:
> m_pControl = pGroup->Add(xtpControlButton(), ID);
> m_pControl = pGroup->Add(new CXTPControlButton(), ID);
 
Second question:
> I have created a CXTPControlComboBox and I've associated it with ON_CBN_SELENDOK in the message map,
but nothing seems to happen.
 
why?



Replies:
Posted By: Oleg
Date Posted: 10 September 2009 at 4:37am
Hi,
 
1. No difference :)  only without brackets: m_pControl = pGroup->Add(xtpControlButton, ID);  recommend use this one.
 
2. See CustomThemes sample. It shows how catch notifications from combo.


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



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