Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - two simple questions
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

two simple questions

 Post Reply Post Reply
Author
Message
feffe View Drop Down
Groupie
Groupie


Joined: 04 September 2009
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote feffe Quote  Post ReplyReply Direct Link To This Post Topic: two simple questions
    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?
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: 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
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.125 seconds.