Partager via


CCachedDataPathProperty::CCachedDataPathProperty

Construit un objet CCachedDataPathProperty.

CCachedDataPathProperty(
   COleControl* pControl = NULL
);
CCachedDataPathProperty(
   LPCTSTR lpszPath,
   COleControl* pControl = NULL
);

Paramètres

  • pControl
    Pointeur vers l'objet contrôle ActiveX à associer à cet objet d' CCachedDataPathProperty .

  • lpszPath
    Le chemin d'accès, qui peut être absolu ou relatif, utilisé pour créer un moniker asynchrone qui référence l'emplacement absolu réel de la propriété.Utilise URL, pas noms de fichiers d'CCachedDataPathProperty .Si vous souhaitez un objet d' CCachedDataPathProperty d'un fichier, ajoutez file:// au chemin d'accès.

Notes

L'objet d' COleControl globale pointe vers pControl est utilisé par Ouvrez et extrait par des classes dérivées.Si pControl est NULL, le contrôle utilisé avec Ouvrir doit être défini avec SetControl.Si lpszPath est NULL, vous pouvez passer dans le chemin d'accès à Ouvrir ou le placer à SetPath.

Configuration requise

Header: afxctl.h

Voir aussi

Référence

Classe de CCachedDataPathProperty

Graphique de la hiérarchie

Classe de CDataPathProperty