From 2134c6612403a2fdad98a5c0efcfb43f53d0c153 Mon Sep 17 00:00:00 2001 From: andreja6 Date: Sun, 21 Oct 2018 18:25:42 -0700 Subject: [PATCH] Tried to add property grid --- G3DTest.vcproj | 8 + propertyGrid.c | 4403 ++++++++++++++++++++++++++++++++++++++++++++++++ propertyGrid.h | 392 +++++ 3 files changed, 4803 insertions(+) create mode 100644 propertyGrid.c create mode 100644 propertyGrid.h diff --git a/G3DTest.vcproj b/G3DTest.vcproj index ce75f8b..64430cf 100644 --- a/G3DTest.vcproj +++ b/G3DTest.vcproj @@ -289,6 +289,10 @@ /> + + @@ -362,6 +366,10 @@ RelativePath=".\IEDispatcher.h" > + + diff --git a/propertyGrid.c b/propertyGrid.c new file mode 100644 index 0000000..af40ebd --- /dev/null +++ b/propertyGrid.c @@ -0,0 +1,4403 @@ +////////////////////////////////////////////////////////////////////////////// +/// +/// @file propertyGrid.c +/// +/// @brief A property grid control in Win32 SDK C. +/// +/// @author David MacDermot +/// +/// @par Comments: +/// This source is distributed in the hope that it will be useful, +/// but WITHOUT ANY WARRANTY; without even the implied warranty of +/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +/// +/// @date 2-27-16 +/// +/// @todo +/// +/// @bug +/// +////////////////////////////////////////////////////////////////////////////// + +//DWM 1.1: Version 1.1 changes labelled thus. +//DWM 1.2: Version 1.2 changes labelled thus. +//DWM 1.3: Version 1.3 changes labelled thus. +//DWM 1.4: Version 1.4 changes labelled thus. +//DWM 1.5: Version 1.5 changes labelled thus. +//DWM 1.6: Version 1.6 changes labelled thus. +//DWM 1.7: Version 1.7 changes labelled thus. +//DWM 1.8: Version 1.8 changes labelled thus. +//DWM 1.9: Version 1.9 changes labelled thus. + +//DWM 1.9: Suppress POCC Warning "Argument x to 'sscanf' does not match the format string; +// expected 'unsigned char *' but found 'unsigned long'" +#ifdef __POCC__ +#pragma warn(disable:2234) +#endif + +#ifndef _WIN32_WINNT // Necessary for WM_MOUSEWHEEL support +#define _WIN32_WINNT 0x0500 +#endif + +#define WIN32_LEAN_AND_MEAN + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "propertyGrid.h" + +#define ID_LISTBOX 2000 ///