Category Windows and views, Object ProView

Function ProViewNameToView


Description
Returns a pointer to the specified view, given the model and view name.
Replacement in Object TOOLKIT: pfcViewOwner::GetView
Synopsis
#include <ProView.h>
ProErrorProViewNameToView(
ProMdl model
/* (In)
The handle to the model whose view you want to find
*/
ProLine view_name
/* (In)
The view name
*/
ProView* p_view
/* (Out)
The pointer to the view
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully returned the information.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_E_NOT_FOUNDA view was not found for the specified name.
PRO_TK_INVALID_ITEMThe specified view is not retrievable; e.g. the model is sheet metal at a certain stage of bending or unbending.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.

Sample Code References:

  1. pt_examples ( TestView.c )