diff --git a/G3DTest.vcproj b/G3DTest.vcproj index 3f658ed..899b656 100644 --- a/G3DTest.vcproj +++ b/G3DTest.vcproj @@ -21,7 +21,7 @@ ConfigurationType="1" InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" UseOfMFC="0" - UseOfATL="2" + UseOfATL="0" ATLMinimizesCRunTimeLibraryUsage="false" CharacterSet="2" > @@ -74,7 +74,7 @@ /> + + diff --git a/propertyGrid.cpp b/propertyGrid.cpp new file mode 100644 index 0000000..dc9795b --- /dev/null +++ b/propertyGrid.cpp @@ -0,0 +1,4438 @@ +////////////////////////////////////////////////////////////////////////////// +/// +/// @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 + +// MSVC++ Support +#ifndef _CRT_SECURE_NO_WARNINGS +#define _CRT_SECURE_NO_WARNINGS +#endif + +#define WIN32_LEAN_AND_MEAN + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "propertyGrid.h" + +// Begin MSVC++ Support + +#ifdef _stprintf +#undef _stprintf +#endif + +#ifdef _UNICODE +#define _tmemcpy wmemcpy +#define _tmemmove wmemmove +#define _tmemset wmemset +#define _stprintf swprintf +#else +#define _tmemcpy memcpy +#define _tmemmove memmove +#define _tmemset memset +#define _stprintf _snprintf +#endif + +#define ToolTip_AddTool(hwnd,lpti) (BOOL)SNDMSG((hwnd),TTM_ADDTOOL,0,(LPARAM)(LPTOOLINFO)(lpti)) +#define ToolTip_EnumTools(hwnd,iTool,lpti) (BOOL)SNDMSG((hwnd),TTM_ENUMTOOLS,(WPARAM)(UINT)(iTool),(LPARAM)(LPTOOLINFO)(lpti)) +#define ToolTip_UpdateTipText(hwnd,lpti) (void)SNDMSG((hwnd),TTM_UPDATETIPTEXT,0,(LPARAM)(LPTOOLINFO)(lpti)) +#define ToolTip_NewToolRect(hwnd,lpti) (void)SNDMSG((hwnd),TTM_NEWTOOLRECT,0,(LPARAM)(LPTOOLINFO)(lpti)) + + +// End MSVC++ Support + +#define ID_LISTBOX 2000 ///