ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

HWND DisplayTrayProperties ( ITrayWindow *  Tray)

Definition at line 314 of file trayprop.c.

Referenced by ITrayWindowImpl_DisplayProperties().

{
    PPROPSHEET_INFO pPropInfo;
    PROPSHEETHEADER psh;
    PROPSHEETPAGE psp[4];
    TCHAR szCaption[256];

    pPropInfo = (PPROPSHEET_INFO)HeapAlloc(hProcessHeap,
                                           HEAP_ZERO_MEMORY,
                                           sizeof(PROPSHEET_INFO));
    if (!pPropInfo)
    {
        return NULL;
    }

    if (!LoadString(hExplorerInstance,
                    IDS_TASKBAR_STARTMENU_PROP_CAPTION,
                    szCaption,
                    sizeof(szCaption) / sizeof(szCaption[0])))
    {
        HeapFree(hProcessHeap,
                 0,
                 pPropInfo);

        return NULL;
    }

    ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
    psh.dwSize = sizeof(PROPSHEETHEADER);
    psh.dwFlags =  PSH_PROPSHEETPAGE | PSH_PROPTITLE;
    psh.hwndParent = NULL;
    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, (DLGPROC)TaskbarPageProc, (LPARAM)pPropInfo);
    InitPropSheetPage(&psp[1], IDD_TASKBARPROP_STARTMENU, (DLGPROC)StartMenuPageProc, (LPARAM)pPropInfo);
    InitPropSheetPage(&psp[2], IDD_TASKBARPROP_NOTIFICATION, (DLGPROC)NotificationPageProc, (LPARAM)pPropInfo);
    InitPropSheetPage(&psp[3], IDD_TASKBARPROP_TOOLBARS, (DLGPROC)ToolbarsPageProc, (LPARAM)pPropInfo);

    PropertySheet(&psh);

    HeapFree(hProcessHeap,
             0,
             pPropInfo);

    // FIXME: return the HWND
    return NULL;
}

Generated on Sat May 26 2012 04:45:08 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.