• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ PropertySheet函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中PropertySheet函数的典型用法代码示例。如果您正苦于以下问题:C++ PropertySheet函数的具体用法?C++ PropertySheet怎么用?C++ PropertySheet使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了PropertySheet函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: adv_dialog

int adv_dialog(HWND hwndOwner)
{
	PROPSHEETPAGE psp [1];
	PROPSHEETHEADER psh;

	psp[0].dwSize = sizeof (PROPSHEETPAGE);
	psp[0].dwFlags = PSP_USETITLE;
	psp[0].hInstance = g_hInst;
	psp[0].pszTemplate = MAKEINTRESOURCE (IDD_ABOUT);
	psp[0].pszIcon = NULL;
	psp[0].pfnDlgProc = adv_proc;
	psp[0].pszTitle = "About";
	psp[0].lParam = 0;

	psh.dwSize = sizeof (PROPSHEETHEADER);
	psh.dwFlags = PSH_PROPSHEETPAGE;
	psh.hwndParent = hwndOwner;
	psh.hInstance = g_hInst;
	psh.pszIcon = NULL;
	psh.pszCaption = (LPSTR)"XviD Configuration";
	psh.nPages = sizeof (psp) / sizeof (PROPSHEETPAGE);
	psh.ppsp = (LPCPROPSHEETPAGE) &psp;

	return PropertySheet (&psh);
}
开发者ID:0xrofi,项目名称:Aquaplus,代码行数:25,代码来源:Configure.cpp


示例2: Dialog_About_Create

/*
 * Dialog_About_Create() [external]
 *
 * Called to create the about dialog. Returns the handle to the
 * dialog created. This handle should only be used to check for
 * errors during creation. Call Dialog_About_GetWindow() to get
 * the handle for later use.
 */
HWND Dialog_About_Create(void)
{
    PROPSHEETPAGE psp[2];
    PROPSHEETHEADER psh;
    int i;

    for (i = 0; i < DIMOF(sps); i++)
    {
        INITSTRUCT(psp[i], TRUE);
        psp[i].hInstance    = g_hInstance;
    }

    psp[0].pszTemplate  = MAKEINTRESOURCE(IDD_ABOUT_GENERAL);
    psp[0].pfnDlgProc   = About_General_DlgProc;

    psp[1].pszTemplate  = MAKEINTRESOURCE(IDD_ABOUT_INFOCREDZ);
    psp[1].pfnDlgProc   = About_InfoCredz_DlgProc;

    INITSTRUCT(psh, TRUE);
    psh.dwFlags         = PSH_PROPSHEETPAGE | PSH_MODELESS | PSH_NOAPPLYNOW;
    psh.hwndParent      = Main_GetWindow();
    psh.hInstance       = Main_GetInstance();
    psh.pszCaption      = String_LoadString(IDS_TITLE_ABOUTDIALOG);
    psh.nPages          = DIMOF(sps);
    psh.ppsp            = (LPCPROPSHEETPAGE)&psp;

    s_hwndDlgAbout = (HWND)PropertySheet(&psh);

    return (s_hwndDlgAbout);
}
开发者ID:now,项目名称:slackedit,代码行数:38,代码来源:dlg_about.c


示例3: ui_pet_settings_dialog

void ui_pet_settings_dialog(HWND hwnd)
{
    PROPSHEETPAGE psp[4];
    PROPSHEETHEADER psh;
    int i;

    for (i = 0; i < 4; i++) {
        psp[i].dwSize = sizeof(PROPSHEETPAGE);
        psp[i].dwFlags = PSP_USETITLE /*| PSP_HASHELP*/ ;
        psp[i].hInstance = winmain_instance;
#ifdef _ANONYMOUS_UNION
        psp[i].pszIcon = NULL;
#else
        psp[i].u2.pszIcon = NULL;
#endif
        psp[i].lParam = 0;
        psp[i].pfnCallback = NULL;
    }

    psp[0].pfnDlgProc = model_dialog_proc;
    psp[0].pszTitle = translate_text(IDS_MEMORY);
    psp[1].pfnDlgProc = io_dialog_proc;
    psp[1].pszTitle = translate_text(IDS_INPUT_OUTPUT);
    psp[2].pfnDlgProc = superpet_io_dialog_proc;
    psp[2].pszTitle = TEXT("Super PET");
    psp[3].pfnDlgProc = pet8296_dialog_proc;
    psp[3].pszTitle = TEXT("8296 PET");

#ifdef _ANONYMOUS_UNION
    psp[0].pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_MEMORY_DIALOG);
    psp[1].pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_IO_DIALOG);
    psp[2].pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_SUPER_DIALOG);
    psp[3].pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_8296_DIALOG);
#else
    psp[0].DUMMYUNIONNAME.pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_MEMORY_DIALOG);
    psp[1].DUMMYUNIONNAME.pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_IO_DIALOG);
    psp[2].DUMMYUNIONNAME.pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_SUPER_DIALOG);
    psp[3].DUMMYUNIONNAME.pszTemplate = MAKEINTRESOURCE(IDD_PET_SETTINGS_8296_DIALOG);
#endif

    psh.dwSize = sizeof(PROPSHEETHEADER);
    psh.dwFlags = PSH_PROPSHEETPAGE | PSH_NOAPPLYNOW;
    psh.hwndParent = hwnd;
    psh.hInstance = winmain_instance;
    psh.pszCaption = translate_text(IDS_PET_SETTINGS);
    psh.nPages = 4;
#ifdef _ANONYMOUS_UNION
    psh.pszIcon = NULL;
    psh.nStartPage = 0;
    psh.ppsp = psp;
#else
    psh.DUMMYUNIONNAME.pszIcon = NULL;
    psh.u2.nStartPage = 0;
    psh.u3.ppsp = psp;
#endif
    psh.pfnCallback = NULL;

    system_psh_settings(&psh);
    PropertySheet(&psh);
}
开发者ID:r-type,项目名称:vice-libretro,代码行数:60,代码来源:uipetset.c


示例4: Applet

static LONG APIENTRY
Applet(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam)
{
    PROPSHEETPAGE psp[3];
    PROPSHEETHEADER psh;
    TCHAR Caption[BUFFERSIZE];

    if (OpenSetupInf())
    {
        ParseSetupInf();
    }

    LoadString(hApplet, IDS_CPLNAME, Caption, sizeof(Caption) / sizeof(TCHAR));

    ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
    psh.dwSize = sizeof(PROPSHEETHEADER);
    psh.dwFlags =  PSH_PROPSHEETPAGE | PSH_PROPTITLE;
    psh.hwndParent = hCPLWindow;
    psh.hInstance = hApplet;
    psh.hIcon = LoadIcon(hApplet, MAKEINTRESOURCE(IDC_CPLICON));
    psh.pszCaption = Caption;
    psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
    psh.nStartPage = 0;
    psh.ppsp = psp;

    InitPropSheetPage(&psp[0], IDD_GENERALPAGE, GeneralPageProc);
    InitPropSheetPage(&psp[1], IDD_LANGUAGESPAGE, LanguagesPageProc);
    InitPropSheetPage(&psp[2], IDD_ADVANCEDPAGE, AdvancedPageProc);

    return (LONG)(PropertySheet(&psh) != -1);
}
开发者ID:RPG-7,项目名称:reactos,代码行数:31,代码来源:intl.c


示例5: CreateConfigProperties

void CreateConfigProperties()
{
	TCHAR			szText[64];

	PROPSHEETPAGE	psp[1];
	PROPSHEETHEADER	psh;

	LoadString((HINSTANCE)g_hInst, IDS_TAB_LABEL1, szText, sizeof(szText));

	psp[0].dwSize		= sizeof(PROPSHEETPAGE);
	psp[0].dwFlags		= 0; //PSP_USETITLE;
	psp[0].hInstance	= g_hInst;
	psp[0].pszTemplate	= MAKEINTRESOURCE(IDD_CONFIGDLG_SERVERLIST);
	psp[0].pszIcon		= NULL;
	psp[0].pfnDlgProc	= ServerListProc;
	psp[0].pszTitle		= szText;
	psp[0].lParam		= 0;

	psh.dwSize		= sizeof(PROPSHEETHEADER);
	psh.dwFlags		= PSH_PROPSHEETPAGE | PSH_NOAPPLYNOW;
	psh.hwndParent	= g_hMainWnd;
	psh.hInstance	= g_hInst;
	psh.pszIcon		= NULL;
	psh.pszCaption	= (LPTSTR)_T("Configuration");
	psh.nPages		= sizeof(psp) / sizeof(PROPSHEETPAGE);
	psh.ppsp		= (LPCPROPSHEETPAGE)&psp;

	PropertySheet(&psh);
}
开发者ID:seem-sky,项目名称:learnserver,代码行数:29,代码来源:MainWndProc.cpp


示例6: UsrmgrApplet

/* Display Applet */
static LONG APIENTRY
UsrmgrApplet(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam)
{
    PROPSHEETPAGE psp[2];
    PROPSHEETHEADER psh;
    TCHAR Caption[1024];

    UNREFERENCED_PARAMETER(lParam);
    UNREFERENCED_PARAMETER(wParam);
    UNREFERENCED_PARAMETER(uMsg);

    LoadString(hApplet, IDS_CPLNAME, Caption, sizeof(Caption) / sizeof(TCHAR));

    ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
    psh.dwSize = sizeof(PROPSHEETHEADER);
    psh.dwFlags =  PSH_PROPSHEETPAGE | PSH_USEICONID | PSH_USECALLBACK;
    psh.hwndParent = hwnd;
    psh.hInstance = hApplet;
    psh.pszIcon = MAKEINTRESOURCEW(IDI_USRMGR_ICON);
    psh.pszCaption = Caption;
    psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
    psh.nStartPage = 0;
    psh.ppsp = psp;
    psh.pfnCallback = PropSheetProc;

    InitPropSheetPage(&psp[0], IDD_USERS, UsersPageProc);
    InitPropSheetPage(&psp[1], IDD_GROUPS, GroupsPageProc);
    /* InitPropSheetPage(&psp[2], IDD_EXTRA, ExtraPageProc); */

    return (LONG)(PropertySheet(&psh) != -1);
}
开发者ID:Moteesh,项目名称:reactos,代码行数:32,代码来源:usrmgr.c


示例7: DialogConfigMP

void DialogConfigMP(HINSTANCE g_hInst, HWND parent) {

    PROPSHEETPAGE pages[6];
    pages[0].dwSize=sizeof(PROPSHEETPAGE);
    pages[1].dwSize=sizeof(PROPSHEETPAGE);
    pages[2].dwSize=sizeof(PROPSHEETPAGE);
    pages[3].dwSize=sizeof(PROPSHEETPAGE);
	pages[4].dwSize=sizeof(PROPSHEETPAGE);
	pages[5].dwSize=sizeof(PROPSHEETPAGE);

    pages[0].hInstance=g_hInst;
    pages[1].hInstance=g_hInst;
    pages[2].hInstance=g_hInst;
    pages[3].hInstance=g_hInst;
    pages[4].hInstance=g_hInst;
	pages[5].hInstance=g_hInst;

    pages[0].dwFlags=PSP_DEFAULT;
    pages[1].dwFlags=PSP_DEFAULT;
    pages[2].dwFlags=PSP_DEFAULT;
    pages[3].dwFlags=PSP_DEFAULT;
    pages[4].dwFlags=PSP_DEFAULT;
	pages[5].dwFlags=PSP_DEFAULT;

    pages[0].pszTemplate=(LPCTSTR)IDD_OPTIONS1;
    pages[1].pszTemplate=(LPCTSTR)IDD_OPTIONS2;
    pages[2].pszTemplate=(LPCTSTR)IDD_OPTIONS3;
    pages[3].pszTemplate=(LPCTSTR)IDD_OPTIONS4;
    pages[4].pszTemplate=(LPCTSTR)IDD_STATUSY;
	pages[5].pszTemplate=(LPCTSTR)IDD_OPTIONS5;

    pages[0].pfnDlgProc=DlgProcConfigP1;
    pages[1].pfnDlgProc=DlgProcConfigP2;
    pages[2].pfnDlgProc=DlgProcConfigP3;
    pages[3].pfnDlgProc=DlgProcConfigP4;
    pages[4].pfnDlgProc=DlgProcConfigP5;
	pages[5].pfnDlgProc=DlgProcConfigP6;

    pages[0].lParam=0;
    pages[1].lParam=1;
    pages[2].lParam=2;
    pages[3].lParam=3;
    pages[4].lParam=4;
	pages[5].lParam=5;

    PROPSHEETHEADER psh;
    psh.dwSize=sizeof(PROPSHEETHEADER);
    psh.dwFlags=PSH_MAXIMIZE | PSH_PROPSHEETPAGE | PSH_USECALLBACK;
    psh.hwndParent=parent;
    psh.hInstance=g_hInst;
    psh.pszCaption=L"Options";
    psh.nPages=6;
    psh.nStartPage=0;
    psh.ppsp=pages;
	psh.pfnCallback = PropSheetCallback;

    PropertySheet(&psh);

    Config::getInstance()->save();
}
开发者ID:Tallefer,项目名称:bombusng-md,代码行数:60,代码来源:DlgConfig.cpp


示例8: ShowOptions

void ShowOptions(HWND hwndParent)
{
    // Store the window handle of the appbar so we can send it commands
    // when the options change
    s_hwndAppbar = hwndParent;

    // Initialize the memory
    PROPSHEETPAGE psp[2];
    ZeroMemory(psp, sizeof(PROPSHEETPAGE) * 2);

    // Fill out the property sheet pages
    psp[0].dwSize      = sizeof(PROPSHEETPAGE);
    psp[0].dwFlags     = PSP_USETITLE;
    psp[0].hInstance   = g_hInstance;
    psp[0].pszTemplate = MAKEINTRESOURCE(IDD_OPTIONS);
    psp[0].pszTitle    = L"AppBar Options";
    psp[0].pfnDlgProc  = OptionsPageProc;
    psp[0].lParam      = (LPARAM)((POPTIONS)GetAppbarData(hwndParent));

    // Now fill out the property sheet header
    PROPSHEETHEADER psh;
    psh.dwSize = sizeof(PROPSHEETHEADER);
    psh.dwFlags = PSH_PROPSHEETPAGE | PSH_PROPTITLE;
    psh.hwndParent = hwndParent;
    psh.hInstance = g_hInstance;
    psh.pszCaption = L"AppBar";
    psh.nPages = 1;
    psh.ppsp = psp;

    // Finally display the property sheet
    PropertySheet(&psh);
}
开发者ID:Ippei-Murofushi,项目名称:WindowsSDK7-Samples,代码行数:32,代码来源:PropSht.cpp


示例9: vncEditSecurity

AUTHSSP_API void vncEditSecurity(HWND hwnd, HINSTANCE hInstance) {
	if (CheckAclUI()) {
		g_hInst = hInstance;
		// Convert ISecurityInformation implementation into property pages
		vncSecurityInfo* psi = 
			new vncSecurityInfo(L"UltraVNC Server", L"UltraVNC Server");
		psi->AddRef();
		
			HPROPSHEETPAGE hpsp[1];
			hpsp[0] = CreateSecurityPage(psi);
			psi->Release(); // does "delete this"!

			// Wrap the property page in a modal dialog by calling PropertySheet
			PROPSHEETHEADER psh;
			ZeroMemory(&psh, sizeof psh);
			psh.dwSize		= sizeof psh;
			psh.hwndParent	= hwnd;
			psh.pszCaption	= _T("UltraVNC Security Editor");
			psh.nPages		= sizeof hpsp / sizeof *hpsp;
			psh.phpage		= hpsp;
			
			PropertySheet(&psh);
			
	} else {
		MessageBox(NULL, _T("aclui.dll (function EditSecurity()) not available\n")
			_T("with this Operatingsystem/Servicepack.\n")
			_T("Use ACL import/export utility instead."),
			//sz_ID_WINVNC_ERROR,
			_T("Error"),
			MB_OK | MB_ICONEXCLAMATION);
	}
}
开发者ID:runsoftcorp,项目名称:runremote,代码行数:32,代码来源:vncSecurityEditor.cpp


示例10: AppletInit

LONG CALLBACK AppletInit(HWND hWnd)
{
    PROPSHEETPAGEW psp;
    PROPSHEETHEADERW psh;
    WCHAR szCaption[1024];

    LoadStringW(hApplet, IDS_CPLNAME, szCaption, sizeof(szCaption) / sizeof(WCHAR));

    ZeroMemory(&psp, sizeof(PROPSHEETPAGE));
    psp.dwSize = sizeof(PROPSHEETPAGE);
    psp.dwFlags = PSP_DEFAULT;
    psp.hInstance = hApplet;
    psp.pszTemplate = MAKEINTRESOURCE(IDD_PROPPAGEGENERAL);
    psp.pfnDlgProc = GeneralPageProc;

    ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
    psh.dwSize = sizeof(PROPSHEETHEADER);
    psh.dwFlags =  PSH_PROPSHEETPAGE;
    psh.hwndParent = hWnd;
    psh.hInstance = hApplet;
    psh.hIcon = LoadIcon(hApplet, MAKEINTRESOURCE(IDI_CPLICON));
    psh.pszCaption = szCaption;
    psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
    psh.nStartPage = 0;
    psh.ppsp = &psp;

    return (LONG)(PropertySheet(&psh) != -1);
}
开发者ID:RareHare,项目名称:reactos,代码行数:28,代码来源:wined3dcfg.c


示例11: sizeof

HWND COption::CreateProp(HWND hWnd)
{
	m_hParentWnd = hWnd;
	HINSTANCE hInst = reinterpret_cast<HINSTANCE>(GetWindowLongPtr(hWnd, GWLP_HINSTANCE));

	PROPSHEETPAGE psp;
	HPROPSHEETPAGE hpsp[3];
	psp.dwSize = sizeof(PROPSHEETPAGE);
	psp.dwFlags = PSP_USETITLE;
	psp.hInstance = hInst;
	psp.lParam = reinterpret_cast<LPARAM>(this);
	psp.pszTemplate = _T("OPTION");

	psp.pszTitle = _T("Basic Settings");
	psp.pfnDlgProc = reinterpret_cast<DLGPROC>(StdProc);
	hpsp[0] = CreatePropertySheetPage(&psp);
	psp.pszTitle = _T("Extraction Settings");
	psp.pfnDlgProc = reinterpret_cast<DLGPROC>(ExtractProc);
	hpsp[1] = CreatePropertySheetPage(&psp);
	psp.pszTitle = _T("Susie Plugins");
	psp.pfnDlgProc = reinterpret_cast<DLGPROC>(SusieProc);
	hpsp[2] = CreatePropertySheetPage(&psp);

	PROPSHEETHEADER psh{};
	psh.dwSize = sizeof(PROPSHEETHEADER);
	psh.dwFlags = PSH_USECALLBACK;
	psh.hInstance = hInst;
	psh.hwndParent = hWnd;
	psh.nPages = 3;
	psh.phpage = hpsp;
	psh.pszCaption = _T("ExtractData");
	psh.pfnCallback = PropSheetProc;

	return reinterpret_cast<HWND>(PropertySheet(&psh));
}
开发者ID:lioncash,项目名称:ExtractData,代码行数:35,代码来源:Option.cpp


示例12: DisplayTrayProperties

VOID
DisplayTrayProperties(IN HWND hwndOwner)
{
    PROPSHEET_INFO propInfo;
    PROPSHEETHEADER psh;
    PROPSHEETPAGE psp[5];
    TCHAR szCaption[256];

    if (!LoadString(hExplorerInstance,
                    IDS_TASKBAR_STARTMENU_PROP_CAPTION,
                    szCaption,
                    sizeof(szCaption) / sizeof(szCaption[0])))
    {
        return;
    }

    ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
    psh.dwSize = sizeof(PROPSHEETHEADER);
    psh.dwFlags =  PSH_PROPSHEETPAGE | PSH_PROPTITLE;
    psh.hwndParent = hwndOwner;
    psh.hInstance = hExplorerInstance;
    psh.hIcon = NULL;
    psh.pszCaption = szCaption;
    psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
    psh.nStartPage = 0;
    psh.ppsp = psp;

    InitPropSheetPage(&psp[0], IDD_TASKBARPROP_TASKBAR, TaskbarPageProc, (LPARAM)&propInfo);
    InitPropSheetPage(&psp[1], IDD_TASKBARPROP_STARTMENU, StartMenuPageProc, (LPARAM)&propInfo);
    InitPropSheetPage(&psp[2], IDD_TASKBARPROP_NOTIFICATION, NotificationPageProc, (LPARAM)&propInfo);
    InitPropSheetPage(&psp[3], IDD_TASKBARPROP_TOOLBARS, ToolbarsPageProc, (LPARAM)&propInfo);
    InitPropSheetPage(&psp[4], IDD_TASKBARPROP_ADVANCED, AdvancedSettingsPageProc, (LPARAM)&propInfo);

    PropertySheet(&psh);
}
开发者ID:Nevermore2015,项目名称:reactos,代码行数:35,代码来源:trayprop.c


示例13: ShowPreferencesDialog

void ShowPreferencesDialog()
{
  PROPSHEETPAGE PropSheet[NUMPAGES];
  PROPSHEETHEADER PropHeader;

  PropSheet[0].dwSize = sizeof(PROPSHEETPAGE);
  PropSheet[0].dwFlags = PSP_USETITLE;
  PropSheet[0].hInstance = hInstance;
  PropSheet[0].pszTemplate = MAKEINTRESOURCE(ID_PREFERENCESDIALOG1);
  PropSheet[0].pfnDlgProc = (DLGPROC)PreferencesDialog1Proc;
  PropSheet[0].lParam = 0;
  PropSheet[0].pszTitle = "General";
  PropSheet[0].pfnCallback = NULL;

  PropSheet[1].dwSize = sizeof(PROPSHEETPAGE);
  PropSheet[1].dwFlags = PSP_USETITLE;
  PropSheet[1].hInstance = hInstance;
  PropSheet[1].pszTemplate = MAKEINTRESOURCE(ID_PREFERENCESDIALOG2);
  PropSheet[1].pfnDlgProc = (DLGPROC)PreferencesDialog2Proc;
  PropSheet[1].lParam = 0;
  PropSheet[1].pszTitle = "Editor";
  PropSheet[1].pfnCallback = NULL;

  PropSheet[2].dwSize = sizeof(PROPSHEETPAGE);
  PropSheet[2].dwFlags = PSP_USETITLE;
  PropSheet[2].hInstance = hInstance;
  PropSheet[2].pszTemplate = MAKEINTRESOURCE(ID_PREFERENCESDIALOG3);
  PropSheet[2].pfnDlgProc = (DLGPROC)PreferencesDialog3Proc;
  PropSheet[2].lParam = 0;
  PropSheet[2].pszTitle = "Display";
  PropSheet[2].pfnCallback = NULL;

  PropSheet[3].dwSize = sizeof(PROPSHEETPAGE);
  PropSheet[3].dwFlags = PSP_USETITLE;
  PropSheet[3].hInstance = hInstance;
  PropSheet[3].pszTemplate = MAKEINTRESOURCE(ID_PREFERENCESDIALOG4);
  PropSheet[3].pfnDlgProc = (DLGPROC)PreferencesDialog4Proc;
  PropSheet[3].lParam = 0;
  PropSheet[3].pszTitle = "Colors";
  PropSheet[3].pfnCallback = NULL;

  PropSheet[4].dwSize = sizeof(PROPSHEETPAGE);
  PropSheet[4].dwFlags = PSP_USETITLE;
  PropSheet[4].hInstance = hInstance;
  PropSheet[4].pszTemplate = MAKEINTRESOURCE(ID_PREFERENCESDIALOG5);
  PropSheet[4].pfnDlgProc = (DLGPROC)PreferencesDialog5Proc;
  PropSheet[4].lParam = 0;
  PropSheet[4].pszTitle = "File associations";
  PropSheet[4].pfnCallback = NULL;

  PropHeader.dwSize = sizeof(PROPSHEETHEADER);
  PropHeader.dwFlags = PSH_PROPSHEETPAGE;
  PropHeader.hwndParent = hWindow;
  PropHeader.hInstance = hInstance;
  PropHeader.pszCaption = "Preferences";
  PropHeader.nPages = NUMPAGES;
  PropHeader.nStartPage = 0;
  PropHeader.ppsp = (LPCPROPSHEETPAGE)&PropSheet;
  PropertySheet(&PropHeader);
}
开发者ID:Malbeth81,项目名称:lambda-html-editor,代码行数:60,代码来源:preferencesdialog.cpp


示例14: WINDOW_CREATOR

int	PropertySheetDialog::DoModal(int start_page)
{
	PROPSHEETHEADER::ppsp = (LPCPROPSHEETPAGE) &_pages[0];
	PROPSHEETHEADER::nPages = _pages.size();
	PROPSHEETHEADER::nStartPage = start_page;
/*
	Window* pwnd = Window::create_property_sheet(this, WINDOW_CREATOR(PropertySheetDlg), NULL);
	if (!pwnd)
		return -1;

	HWND hwndPropSheet = *pwnd;
*/
	int ret = PropertySheet(this);
	if (ret == -1)
		return -1;

	HWND hwndPropSheet = (HWND) ret;
	HWND hwndparent = GetParent(hwndPropSheet);

	if (hwndparent)
		EnableWindow(hwndparent, FALSE);

	ret = 0;
	MSG msg;

	while(GetMessage(&msg, 0, 0, 0)) {
		try {
			if (Window::pretranslate_msg(&msg))
				continue;

			if (PropSheet_IsDialogMessage(hwndPropSheet, &msg))
				continue;

			if (Window::dispatch_dialog_msg(&msg))
				continue;

			TranslateMessage(&msg);

			try {
				DispatchMessage(&msg);
			} catch(COMException& e) {
				HandleException(e, 0);
			}

			if (!PropSheet_GetCurrentPageHwnd(hwndPropSheet)) {
				ret = PropSheet_GetResult(hwndPropSheet);
				break;
			}
		} catch(COMException& e) {
			HandleException(e, 0);
		}
	}

	if (hwndparent)
		EnableWindow(hwndparent, TRUE);

	DestroyWindow(hwndPropSheet);

	return ret;
}
开发者ID:svn2github,项目名称:ros-explorer,代码行数:60,代码来源:window.cpp


示例15: ChangeSettings

void ChangeSettings(HWND hwndOwner) {
    PROPSHEETPAGE psp[4];
    PROPSHEETHEADER psh;
	char ConfigStr[200],DirectoriesStr[200],titleStr[200],settingsStr[200];
    char AdvSettingsStr[200];
    psp[0].dwSize = sizeof(PROPSHEETPAGE);
    psp[0].dwFlags = PSP_USETITLE;
    psp[0].hInstance = app_hInstance;
    psp[0].pszTemplate = MAKEINTRESOURCE(IDD_MAIN);
    psp[0].pfnDlgProc = PluginsCfg;
	TranslateDefault("Config Plugins","Config Plugins",ConfigStr);
	psp[0].pszTitle = ConfigStr;
    psp[0].lParam = 0;
    psp[0].pfnCallback = NULL;

    psp[1].dwSize = sizeof(PROPSHEETPAGE);
    psp[1].dwFlags = PSP_USETITLE;
    psp[1].hInstance = app_hInstance;
    psp[1].pszTemplate = MAKEINTRESOURCE(IDD_DIRECTORIES);
    psp[1].pfnDlgProc = DirectoriesCfg;
	TranslateDefault("Directories","Directories",DirectoriesStr);
    psp[1].pszTitle = DirectoriesStr;
    psp[1].lParam = 0;
    psp[1].pfnCallback = NULL;

    psp[2].dwSize = sizeof(PROPSHEETPAGE);
    psp[2].dwFlags = PSP_USETITLE;
    psp[2].hInstance = app_hInstance;
    psp[2].pszTemplate = MAKEINTRESOURCE(IDD_MESSAGES);
    psp[2].pfnDlgProc = GeneralCfg;
	TranslateDefault("General","General",settingsStr);
    psp[2].pszTitle = settingsStr;
    psp[2].lParam = 0;
    psp[2].pfnCallback = NULL;
    
    psp[3].dwSize = sizeof(PROPSHEETPAGE);
    psp[3].dwFlags = PSP_USETITLE;
    psp[3].hInstance = app_hInstance;
    psp[3].pszTemplate = MAKEINTRESOURCE(IDD_ADVANCED_OPTIONS);
    psp[3].pfnDlgProc = AdvancedSettingsProc;
	TranslateDefault("Advanced Settings","Advanced Settings",AdvSettingsStr);
    psp[3].pszTitle = AdvSettingsStr;
    psp[3].lParam = 0;
    psp[3].pfnCallback = NULL;
  
    psh.dwSize = sizeof(PROPSHEETHEADER);
    psh.dwFlags = PSH_PROPSHEETPAGE | PSH_NOAPPLYNOW;
    psh.hwndParent = hwndOwner;
    psh.hInstance = app_hInstance;
    TranslateDefault("Settings","Settings",titleStr);
    psh.pszCaption = (LPSTR) titleStr;
    psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
    psh.nStartPage = 0;
    psh.ppsp = (LPCPROPSHEETPAGE) &psp;
    psh.pfnCallback = NULL;

	PropertySheet(&psh);
	return;
}
开发者ID:cxd4,项目名称:mupen86,代码行数:59,代码来源:configdialog.c


示例16: ShowOptions

void ShowOptions(HWND hwndParent)
{
	PROPSHEETHEADER psh    = {   sizeof(psh)   };
	PROPSHEETPAGE   psp[2] = {  { sizeof(psp[0]) },  
								{ sizeof(psp[1]) }, 
								//{ sizeof(psp[2]) }, 
						//		{ sizeof(psp[3]) }, 
							};

	int i = 0;

	CoInitialize(0);
	
	// configure property sheet
	psh.dwFlags			= PSH_PROPSHEETPAGE;
	psh.hwndParent		= hwndParent;
	psh.nPages			= sizeof(psp) / sizeof(psp[0]);
	psh.ppsp			= psp;
	psh.pszCaption		= TEXT("Options");

	// configure property sheet page(1)
/*	psp[i].dwFlags		= PSP_USETITLE;
	psp[i].hInstance	= GetModuleHandle(0);
	psp[i].pfnDlgProc	= LayoutOptionsDlgProc;
	psp[i].pszTemplate	= MAKEINTRESOURCE(IDD_PROPERTY_LAYOUT);
	psp[i].pszTitle		= TEXT("Layout");
	i++;*/

	// configure property sheet page(2)
	psp[i].dwFlags		= PSP_USETITLE;
	psp[i].hInstance	= GetModuleHandle(0);
	psp[i].pfnDlgProc	= DisplayOptionsDlgProc;
	psp[i].pszTemplate	= MAKEINTRESOURCE(IDD_PROPERTY_FONT);
	psp[i].pszTitle		= TEXT("Colours");
	i++;

	// configure property sheet page(3)
	psp[i].dwFlags		= PSP_USETITLE;
	psp[i].hInstance	= GetModuleHandle(0);
	psp[i].pfnDlgProc	= MiscOptionsDlgProc;
	psp[i].pszTemplate	= MAKEINTRESOURCE(IDD_PROPERTY_MISC);
	psp[i].pszTitle		= TEXT("Settings");
	i++;

/*	psp[i].dwFlags		= PSP_USETITLE;
	psp[i].hInstance	= GetModuleHandle(0);
	psp[i].pfnDlgProc	= TypeViewOptionsDlgProc;
	psp[i].pszTemplate	= MAKEINTRESOURCE(IDD_PROPERTY_TYPE);
	psp[i].pszTitle		= TEXT("TypeView");
	i++;*/

	if(PropertySheet(&psh))
	{
		//ApplyRegSettings();		
	}

	CoUninitialize();
}
开发者ID:HTshandou,项目名称:HexEdit,代码行数:58,代码来源:Options.c


示例17: DisplayApplet

/* Display Applet */
static LONG APIENTRY
DisplayApplet(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam)
{
    HPROPSHEETPAGE hpsp[MAX_DESK_PAGES];
    PROPSHEETHEADER psh;
    HPSXA hpsxa;
    TCHAR Caption[1024];
    LONG ret;
    UINT i;

    UNREFERENCED_PARAMETER(lParam);
    UNREFERENCED_PARAMETER(wParam);
    UNREFERENCED_PARAMETER(uMsg);
    UNREFERENCED_PARAMETER(hwnd);

    g_GlobalData.desktop_color = GetSysColor(COLOR_DESKTOP);

    LoadString(hApplet, IDS_CPLNAME, Caption, sizeof(Caption) / sizeof(TCHAR));

    ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
    psh.dwSize = sizeof(PROPSHEETHEADER);
    psh.dwFlags = PSH_USECALLBACK | PSH_PROPTITLE;
    psh.hwndParent = hCPLWindow;
    psh.hInstance = hApplet;
    psh.hIcon = LoadIcon(hApplet, MAKEINTRESOURCE(IDC_DESK_ICON));
    psh.pszCaption = Caption;
    psh.nPages = 0;
    psh.nStartPage = 0;
    psh.phpage = hpsp;

    /* Allow shell extensions to replace the background page */
    hpsxa = SHCreatePropSheetExtArray(HKEY_LOCAL_MACHINE, REGSTR_PATH_CONTROLSFOLDER TEXT("\\Desk"), MAX_DESK_PAGES - psh.nPages);

    for (i = 0; i != sizeof(PropPages) / sizeof(PropPages[0]); i++)
    {
        /* Override the background page if requested by a shell extension */
        if (PropPages[i].idDlg == IDD_BACKGROUND && hpsxa != NULL &&
            SHReplaceFromPropSheetExtArray(hpsxa, CPLPAGE_DISPLAY_BACKGROUND, PropSheetAddPage, (LPARAM)&psh) != 0)
        {
            /* The shell extension added one or more pages to replace the background page.
               Don't create the built-in page anymore! */
            continue;
        }

        InitPropSheetPage(&psh, PropPages[i].idDlg, PropPages[i].DlgProc, PropPages[i].Callback);
    }

    /* NOTE: Don't call SHAddFromPropSheetExtArray here because this applet only allows
             replacing the background page but not extending the applet by more pages */

    ret = (LONG)(PropertySheet(&psh) != -1);

    if (hpsxa != NULL)
        SHDestroyPropSheetExtArray(hpsxa);

    return ret;
}
开发者ID:RareHare,项目名称:reactos,代码行数:58,代码来源:desk.c


示例18: ui_c128_dialog

void ui_c128_dialog(HWND hwnd)
{
    PROPSHEETPAGE psp[2];
    PROPSHEETHEADER psh;

    psp[0].dwSize = sizeof(PROPSHEETPAGE);
    psp[0].dwFlags = PSP_USETITLE /*| PSP_HASHELP*/ ;
    psp[0].hInstance = winmain_instance;
#ifdef _ANONYMOUS_UNION
    psp[0].pszTemplate = MAKEINTRESOURCE(translate_res(IDD_C128_MACHINE_SETTINGS_DIALOG));
    psp[0].pszIcon = NULL;
#else
    psp[0].DUMMYUNIONNAME.pszTemplate
        = MAKEINTRESOURCE(translate_res(IDD_C128_MACHINE_SETTINGS_DIALOG));
    psp[0].u2.pszIcon = NULL;
#endif
    psp[0].lParam = 0;
    psp[0].pfnCallback = NULL;

    psp[1].dwSize = sizeof(PROPSHEETPAGE);
    psp[1].dwFlags = PSP_USETITLE /*| PSP_HASHELP*/ ;
    psp[1].hInstance = winmain_instance;
#ifdef _ANONYMOUS_UNION
    psp[1].pszTemplate = MAKEINTRESOURCE(translate_res(IDD_C128_FUNCTIONROM_SETTINGS_DIALOG));
    psp[1].pszIcon = NULL;
#else
    psp[1].DUMMYUNIONNAME.pszTemplate
        = MAKEINTRESOURCE(translate_res(IDD_C128_FUNCTIONROM_SETTINGS_DIALOG));
    psp[1].u2.pszIcon = NULL;
#endif
    psp[1].lParam = 0;
    psp[1].pfnCallback = NULL;

    psp[0].pfnDlgProc = machine_dialog_proc;
    psp[0].pszTitle = translate_text(IDS_MACHINE_TYPE);
    psp[1].pfnDlgProc = functionrom_dialog_proc;
    psp[1].pszTitle = translate_text(IDS_FUNCTION_ROM);

    psh.dwSize = sizeof(PROPSHEETHEADER);
    psh.dwFlags = PSH_PROPSHEETPAGE | PSH_NOAPPLYNOW;
    psh.hwndParent = hwnd;
    psh.hInstance = winmain_instance;
    psh.pszCaption = translate_text(IDS_C128_SETTINGS);
    psh.nPages = 2;
#ifdef _ANONYMOUS_UNION
    psh.pszIcon = NULL;
    psh.nStartPage = 0;
    psh.ppsp = psp;
#else
    psh.DUMMYUNIONNAME.pszIcon = NULL;
    psh.u2.nStartPage = 0;
    psh.u3.ppsp = psp;
#endif
    psh.pfnCallback = NULL;

    PropertySheet(&psh);
}
开发者ID:martinpiper,项目名称:VICE,代码行数:57,代码来源:uic128.c


示例19: CreateTestPropSheet

int CreateTestPropSheet(HWND hwndOwner, Analysisdata * ad)
{
    
   PROPSHEETPAGE psp[9];
   PROPSHEETHEADER psh;
   LPARAM lparam;
   Analysisdata * adnew = NULL;// = cloneAnalysisData(ad->this);
   //int i;
   HINSTANCE hInst = (HINSTANCE)GetWindowLong(hwndOwner,GWL_HINSTANCE);
   //HWND handle;

   //for (i=0;i<sizeof(psp)/sizeof(PROPSHEETPAGE);i++)
   //   psp[i].hInstance = hInst;


  /* Right about in here I need to clone the analysisdata that 
   * is passed in so that "Cancel" will restore the original 
   * data.
   */
  /* Now, turn it into an LPARAM for each of the property sheet
   * pages to use:
   */
   lparam = (LPARAM)adnew;

	FillInPropertyPage( &psp[0], IDD_JOINTPROPS, TEXT("&Joints"), JointMatsProc, ICON_JOINTTYPE, lparam, hInst);
	FillInPropertyPage( &psp[1], IDD_BLOCKPROPS, TEXT("Blocks"), BlockMatsProc, ICON_BLOCKMATERIALS, lparam, hInst);
	FillInPropertyPage( &psp[2], IDD_AFLAGS, TEXT("Flags"), AFlagsProc, ICON_FLAGS, lparam, hInst);
	FillInPropertyPage( &psp[3], IDD_LOADPOINTS, TEXT("Load Points"), LPointsProc, ICON_LOADPOINT, lparam, hInst);
	FillInPropertyPage( &psp[4], IDD_TIMESTEP, TEXT("Time steps"), TimeStepProc, ICON_STOPWATCH, lparam, hInst);
	FillInPropertyPage( &psp[5], IDD_CONTACT, TEXT("Contact"), ContactProc, ICON_CONTACT, lparam, hInst);
	FillInPropertyPage( &psp[6], IDD_BOLTPROPERTIES, TEXT("Bolts"), BoltMatsProc, ICON_ROCKBOLT, lparam, hInst);
	FillInPropertyPage( &psp[7], IDD_GRAVITY, TEXT("Gravity"), GravityProc, ICON_GRAVITY, lparam, hInst);
	FillInPropertyPage( &psp[8], IDD_SEISMIC, TEXT("Seismic"), AnaSeismicProc, ICON_EARTHQUAKE, lparam, hInst);
    
   psh.dwSize = sizeof(PROPSHEETHEADER);
   psh.dwFlags = PSH_PROPSHEETPAGE   | 
                 PSH_HASHELP         |
                 PSH_USEHICON;
   psh.hwndParent = hwndOwner;
   psh.hInstance = hInst;
   psh.pszCaption = (LPSTR) TEXT("Analysis Data");
   psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
   psh.nStartPage = 2;
   psh.ppsp = (LPCPROPSHEETPAGE) &psp;
   psh.hIcon = LoadImage(hInst,  
                           MAKEINTRESOURCE(ICON_DDAMAIN), 
                           IMAGE_ICON, 
                           LR_DEFAULTSIZE,
                           LR_DEFAULTSIZE,
                           LR_DEFAULTCOLOR);


    PropertySheet(&psh);
    return TRUE;

} 
开发者ID:gth692f,项目名称:ntdda,代码行数:56,代码来源:testpropsheet.c


示例20: dialog_sndopt

void dialog_sndopt(HWND hWnd)
{
	HINSTANCE		hInstance;
	PROPSHEETPAGE	psp;
	PROPSHEETHEADER	psh;
	HPROPSHEETPAGE	hpsp[6];
	TCHAR			szTitle[128];

	hInstance = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE);

	ZeroMemory(&psp, sizeof(psp));
	psp.dwSize = sizeof(PROPSHEETPAGE);
	psp.dwFlags = PSP_DEFAULT;
	psp.hInstance = hInstance;

	psp.pszTemplate = MAKEINTRESOURCE(IDD_SNDMIX);
	psp.pfnDlgProc = (DLGPROC)SndmixDlgProc;
	hpsp[0] = CreatePropertySheetPage(&psp);

	psp.pszTemplate = MAKEINTRESOURCE(IDD_SND14);
	psp.pfnDlgProc = (DLGPROC)Snd14optDlgProc;
	hpsp[1] = CreatePropertySheetPage(&psp);

	psp.pszTemplate = MAKEINTRESOURCE(IDD_SND26);
	psp.pfnDlgProc = (DLGPROC)Snd26optDlgProc;
	hpsp[2] = CreatePropertySheetPage(&psp);

	psp.pszTemplate = MAKEINTRESOURCE(IDD_SND86);
	psp.pfnDlgProc = (DLGPROC)Snd86optDlgProc;
	hpsp[3] = CreatePropertySheetPage(&psp);

	psp.pszTemplate = MAKEINTRESOURCE(IDD_SNDSPB);
	psp.pfnDlgProc = (DLGPROC)SPBoptDlgProc;
	hpsp[4] = CreatePropertySheetPage(&psp);

	psp.pszTemplate = MAKEINTRESOURCE(IDD_SNDPAD1);
	psp.pfnDlgProc = (DLGPROC)PAD1optDlgProc;
	hpsp[5] = CreatePropertySheetPage(&psp);

	loadstringresource(IDS_SOUNDOPTION, szTitle, NELEMENTS(szTitle));

	ZeroMemory(&psh, sizeof(psh));
	psh.dwSize = sizeof(PROPSHEETHEADER);
	psh.dwFlags = PSH_NOAPPLYNOW | PSH_USEHICON | PSH_USECALLBACK;
	psh.hwndParent = hWnd;
	psh.hInstance = hInstance;
	psh.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON2));
	psh.nPages = 6;
	psh.phpage = hpsp;
	psh.pszCaption = szTitle;
	psh.pfnCallback = np2class_propetysheet;
	PropertySheet(&psh);
	InvalidateRect(hWnd, NULL, TRUE);
}
开发者ID:josejl1987,项目名称:neko-tracer,代码行数:54,代码来源:d_sound.cpp



注:本文中的PropertySheet函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ Protect函数代码示例发布时间:2022-05-30
下一篇:
C++ PropertyInfo函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap