Condividi tramite


CPropertySheet::m_psh

Una struttura dei cui membri vengono memorizzate le caratteristiche PROPSHEETHEADER.

Note

Utilizzare questa struttura per inizializzare l'aspetto della finestra delle proprietà dopo costruita ma prima di visualizzare con la funzione membro DoModal.Ad esempio, impostare il membro dwSizem_psh alla dimensione desiderata la finestra delle proprietà presentino.

Per ulteriori informazioni su questa struttura, incluso un elenco di membri, vedere PROPSHEETHEADER in Windows SDK.

Esempio

// This code fragment shows how to change CPropertySheet's settings 
// before it is shown.  After the changes, CPropertySheet has the 
// caption "Simple Properties", no "Apply" button, and the 
// second page (CColorPage) initially on top.  

CPropertySheet dlgPropertySheet(_T("Simple PropertySheet"));

CStylePage stylePage;
CColorPage colorPage;
CShapePage shapePage;
dlgPropertySheet.AddPage(&stylePage);
dlgPropertySheet.AddPage(&colorPage);
dlgPropertySheet.AddPage(&shapePage);

dlgPropertySheet.m_psh.dwFlags |= PSH_NOAPPLYNOW | PSH_PROPTITLE;
dlgPropertySheet.m_psh.pszCaption = _T("Simple");
dlgPropertySheet.m_psh.nStartPage = 1;

dlgPropertySheet.DoModal();

Requisiti

Header: afxdlgs.h

Vedere anche

Riferimenti

Classe di CPropertySheet

Grafico della gerarchia

CPropertySheet::DoModal