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

wined3dcfg.c
Go to the documentation of this file.
00001 #include "wined3dcfg.h"
00002 
00003 HINSTANCE hApplet = 0;
00004 
00005 LONG CALLBACK AppletInit(HWND hWnd)
00006 {
00007     PROPSHEETPAGEW psp;
00008     PROPSHEETHEADERW psh;
00009     WCHAR szCaption[1024];
00010 
00011     LoadStringW(hApplet, IDS_CPLNAME, szCaption, sizeof(szCaption) / sizeof(WCHAR));
00012 
00013     ZeroMemory(&psp, sizeof(PROPSHEETPAGE));
00014     psp.dwSize = sizeof(PROPSHEETPAGE);
00015     psp.dwFlags = PSP_DEFAULT;
00016     psp.hInstance = hApplet;
00017     psp.pszTemplate = MAKEINTRESOURCE(IDD_PROPPAGEGENERAL);
00018     psp.pfnDlgProc = GeneralPageProc;
00019 
00020     ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
00021     psh.dwSize = sizeof(PROPSHEETHEADER);
00022     psh.dwFlags =  PSH_PROPSHEETPAGE;
00023     psh.hwndParent = hWnd;
00024     psh.hInstance = hApplet;
00025     psh.hIcon = LoadIcon(hApplet, MAKEINTRESOURCE(IDI_CPLICON));
00026     psh.pszCaption = szCaption;
00027     psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
00028     psh.nStartPage = 0;
00029     psh.ppsp = &psp;
00030 
00031     return (LONG)(PropertySheet(&psh) != -1);
00032 }
00033 
00034 LONG CALLBACK CPlApplet(HWND hWnd, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
00035 {
00036     switch (uMsg)
00037     {
00038         case CPL_INIT:
00039             return TRUE;
00040 
00041         case CPL_GETCOUNT:
00042             return 1;
00043 
00044         case CPL_INQUIRE:
00045             {
00046                 CPLINFO *CPlInfo = (CPLINFO*)lParam2;
00047                 CPlInfo->lData = 0;
00048                 CPlInfo->idIcon = IDI_CPLICON;
00049                 CPlInfo->idInfo = IDS_CPLDESCRIPTION;
00050                 CPlInfo->idName = IDS_CPLNAME;
00051             }
00052             break;
00053 
00054         case CPL_DBLCLK:
00055             AppletInit(hWnd);
00056             break;
00057     }
00058 
00059     return FALSE;
00060 }
00061 
00062 
00063 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
00064 {
00065     UNREFERENCED_PARAMETER(lpvReserved);
00066 
00067     switch (dwReason)
00068     {
00069         case DLL_PROCESS_ATTACH:
00070         case DLL_THREAD_ATTACH:
00071             hApplet = hinstDLL;
00072             break;
00073     }
00074 
00075   return TRUE;
00076 }
00077 

Generated on Fri May 25 2012 04:19: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.