Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » what is the difference betweeb CmdScreenTipAttach() and CmdScreenTipSet() Collapse All
Subject Author Date
Vlad K Jun 23, 2007 - 10:22 AM

i sought the help but it did not help :)

Technical Support Jun 25, 2007 - 5:41 AM

The CmdScreenTipAttach() method invokes CmdScreenTipSet() with he bClone parameter set to false. Here is the source code of this method:

void CExtCustomizeCmdTreeNode::CmdScreenTipAttach(
      CExtCustomizeCmdScreenTip * pCmdScreenTip,
      bool bBasic // = true
      ASSERT_VALID( this );
      CmdScreenTipSet( pCmdScreenTip, false, bBasic );
In both cases, your code allocates the CExtCustomizeCmdScreenTip object using C++ new operator and initializes it. If you use CmdScreenTipAttach(), you should simply forget about deleting the screen tip information object. If you invoke the CmdScreenTipSet() method with the bClone parameter set to true, then your code is responsible for deleting the CExtCustomizeCmdScreenTip object. Cloning in this case may be convenient when you need to initialize several very similar screen tips for neighboring buttons in the ribbon control.