当前位置:编程学习 > C#/ASP.NET >>

怎么关闭 PropertySheet 打开的属性窗体?

PROPSHEETPAGE psp[7];
PROPSHEETHEADER psh;
int i;
i=0;
psp[i].dwSize      = sizeof(PROPSHEETPAGE);
psp[i].dwFlags     = PSP_USEICONID | PSP_USETITLE;
psp[i].hInstance   = g_hInstance;
psp[i].pszTemplate = MAKEINTRESOURCE(IDD_VIDEODLG);
psp[i].pszIcon     = NULL;
psp[i].pfnDlgProc  = CVideoDlg::WndProcVideo;
psp[i].pszTitle    = "Set Video";
psp[i].lParam      = 0;
psp[i].pfnCallback = NULL;
psh.dwSize      = sizeof(PROPSHEETHEADER);
psh.dwFlags     = PSH_USEICONID | PSH_PROPSHEETPAGE | PSH_NOAPPLYNOW;
psh.hwndParent  = m_hWnd;
psh.hInstance   = g_hInstance;
psh.pszIcon     = NULL;
psh.pszCaption  = (LPSTR)"Settings";
psh.nPages      = sizeof(psp) / sizeof(PROPSHEETPAGE);
psh.nStartPage  = 0;
psh.ppsp        = (LPCPROPSHEETPAGE)&psp;
psh.pfnCallback = NULL;

PropertySheet(&psh);

窗体打开后,想用代码自动的关闭窗体,要怎么写?
补充:.NET技术 ,  VC.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,