CanAddNonAttributed
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at CanAddNonAttributed.
Indicates that the ATL project supports nonattributed objects.
Syntax
function CanAddNonAttributed( );
Return Value
true if the project supports nonattributed and attributed ATL objects; false if the project supports only attributed projects.
Remarks
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;
}
See Also
Customizing C++ Wizards with Common JScript Functions
JScript Functions for C++ Wizards
Creating a Custom Wizard
Designing a Wizard
Concepts
CanAddClass