Hide Table of Contents
OnWindowFromHandleControlCreated Method (IPropertyManagerPage2Handler8)

Obsolete. Superseded by IPropertyManagerPage2Handler9::OnWindowFromHandleControlCreated.

.NET Syntax

Visual Basic (Declaration) 
Function OnWindowFromHandleControlCreated( _
   ByVal Id As System.Integer, _
   ByVal Status As System.Boolean _
) As System.Integer
Visual Basic (Usage) 
Dim instance As IPropertyManagerPage2Handler8
Dim Id As System.Integer
Dim Status As System.Boolean
Dim value As System.Integer
 
value = instance.OnWindowFromHandleControlCreated(Id, Status)
C# 
System.int OnWindowFromHandleControlCreated( 
   System.int Id,
   System.bool Status
)
C++/CLI 
System.int OnWindowFromHandleControlCreated( 
&   System.int Id,
&   System.bool Status
) 

Parameters

Id
ID of this .NET control
Status
True if the .NET control is successfully created; false if not

Return Value

If Status = true, return nothing

If Status = false, return an action as defined in swHandleWindowFromHandleCreationFailure_e

(see Remarks)

Remarks

If the .NET control is not successfully created (Status = false), the program creating the PropertyManager page should receive notification from this handler. Return one of the following options in swHandleWindowFromHandleCreationFailure_e:

 

  • swHandleWindowFromHandleCreationFailure_Cancel. Continue creating the PropertyManager page without the .NET control. This is the default.

  • swHandleWindowFromHandleCreationFailure_Retry. Try to create the .NET control again. You can call the IPropertyManagerPageWindowFromHandle::SetWindowHandle method to change the .NET control handle to perhaps use another similar control or another version of the control, and then return swHandleWindowFromHandleCreationFailure_Retry. Avoid an endless loop situation.

  • swHandleWindowFromHandleCreationFailure_Continue. Cancel creating PropertyManager page. For example, it might be that the PropertyManager page is useless without the control, so the calling add-in might want to quit and handle the situation on its own.

For example if the control is created successfully, then SOLIDWORKS passes Status = true to the add-in, and nothing is returned. If the control fails to be created, SOLIDWORKS passes Status = false to the add-in, and the handler returns swHandleWindowFromHandleCreationFailure_Continue.

 

See Also

Availability

SOLIDWORKS 2011 FCS, Revision Number 19.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   OnWindowFromHandleControlCreated Method (IPropertyManagerPage2Handler8)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2016 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.