CanAddNonAttributed

CanAddNonAttributed

 

Indicates that the ATL project supports nonattributed objects.


function CanAddNonAttributed( );

true if the project supports nonattributed and attributed ATL objects; false if the project supports only attributed projects.

Call this function to indicate whether the project supports both nonattributed and attributed objects.

Example

// Check if attributed project using CanAddNonAttributed
window.external.Load(document);
if (IsAttributedProject(window.external))
{
   ATTRIBUTED.checked = true;
   if (!CanAddNonAttributed())
      ATTRIBUTED.disabled = true;
}
Show:
© 2016 Microsoft