Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: about.c
- ===================================================================
- --- about.c (revision 0)
- +++ about.c (working copy)
- @@ -0,0 +1,22 @@
- +#include "wined3dcfg.h"
- +
- +INT_PTR CALLBACK HelpPageProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
- +{
- + switch (uMsg)
- + {
- + case WM_INITDIALOG:
- +
- + return TRUE;
- +
- + case WM_COMMAND:
- + if (LOWORD(wParam) > IDC_MIN && LOWORD(wParam) < IDC_MAX)
- + PropSheet_Changed(GetParent(hWndDlg), hWndDlg);
- + break;
- +
- + case WM_NOTIFY:
- +
- + break;
- + }
- +
- + return FALSE;
- +}
- \ No newline at end of file
- Index: CMakeLists.txt
- ===================================================================
- --- CMakeLists.txt (revision 68507)
- +++ CMakeLists.txt (working copy)
- @@ -4,6 +4,7 @@
- list(APPEND SOURCE
- wined3dcfg.c
- general.c
- + about.c
- wined3dcfg.h)
- add_library(wined3dcfg SHARED
- Index: lang/en-US.rc
- ===================================================================
- --- lang/en-US.rc (revision 68507)
- +++ lang/en-US.rc (working copy)
- @@ -30,6 +30,14 @@
- COMBOBOX IDC_DDRENDERER, 135, 200, 90, 10, WS_TABSTOP | WS_VSCROLL | CBS_DROPDOWNLIST
- END
- +IDD_HELPPAGE DIALOGEX 0, 0, 246, 228
- +STYLE DS_SHELLFONT | WS_CHILD | WS_DISABLED | WS_CAPTION
- +CAPTION "Help"
- +FONT 8, "MS Shell Dlg"
- +BEGIN
- + GROUPBOX "About", -1, 5, 25, 230, 80
- +END
- +
- STRINGTABLE
- BEGIN
- IDS_CPLNAME "WineD3D Options"
- Index: resource.h
- ===================================================================
- --- resource.h (revision 68507)
- +++ resource.h (working copy)
- @@ -5,6 +5,7 @@
- /* Dialogs */
- #define IDD_PROPPAGEGENERAL 100
- +#define IDD_HELPPAGE 101
- /* Controls */
- #define IDC_MIN 1000
- Index: wined3dcfg.c
- ===================================================================
- --- wined3dcfg.c (revision 68507)
- +++ wined3dcfg.c (working copy)
- @@ -18,6 +18,13 @@
- psp.hInstance = hApplet;
- psp.pszTemplate = MAKEINTRESOURCE(IDD_PROPPAGEGENERAL);
- psp.pfnDlgProc = GeneralPageProc;
- +
- + ZeroMemory(&psp, sizeof(PROPSHEETPAGE));
- + psp.dwSize = sizeof(PROPSHEETPAGE);
- + psp.dwFlags = PSP_DEFAULT;
- + psp.hInstance = hApplet;
- + psp.pszTemplate = MAKEINTRESOURCE(IDD_HELPPAGE);
- + psp.pfnDlgProc = HelpPageProc;
- ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
- psh.dwSize = sizeof(PROPSHEETHEADER);
- Index: wined3dcfg.h
- ===================================================================
- --- wined3dcfg.h (revision 68507)
- +++ wined3dcfg.h (working copy)
- @@ -37,6 +37,7 @@
- #define SAVE_CONTROL(a, b) SaveSetting(hWndDlg, hKey, KEY_##a, b, IDC_##a, sizeof(b)/sizeof(WINED3D_SETTINGS))
- INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
- +INT_PTR CALLBACK HelpPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
- typedef struct _WINED3D_SETTINGS{
- WCHAR szValue[24];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement