1. fixes to wxDC deleting logic (should fix ~wxPrinterDC leak), some code
reorganized/removed 2. applied (slightly modified) wxEnhMetaFileSimpleDataObject patch git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -49,11 +49,12 @@
|
||||
//#define TEST_HASH
|
||||
//#define TEST_INFO_FUNCTIONS
|
||||
//#define TEST_LIST
|
||||
#define TEST_LOCALE
|
||||
//#define TEST_LOCALE
|
||||
//#define TEST_LOG
|
||||
//#define TEST_LONGLONG
|
||||
//#define TEST_MIME
|
||||
//#define TEST_PATHLIST
|
||||
#define TEST_REGCONF
|
||||
//#define TEST_REGISTRY
|
||||
//#define TEST_SOCKETS
|
||||
//#define TEST_STREAMS
|
||||
@@ -1599,14 +1600,28 @@ static void TestPathList()
|
||||
#endif // TEST_PATHLIST
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// registry
|
||||
// registry and related stuff
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// this is for MSW only
|
||||
#ifndef __WXMSW__
|
||||
#undef TEST_REGCONF
|
||||
#undef TEST_REGISTRY
|
||||
#endif
|
||||
|
||||
#ifdef TEST_REGCONF
|
||||
|
||||
#include <wx/confbase.h>
|
||||
#include <wx/msw/regconf.h>
|
||||
|
||||
static void TestRegConfWrite()
|
||||
{
|
||||
wxRegConfig regconf(_T("console"), _T("wxwindows"));
|
||||
regconf.Write(_T("Hello"), wxString(_T("world")));
|
||||
}
|
||||
|
||||
#endif // TEST_REGCONF
|
||||
|
||||
#ifdef TEST_REGISTRY
|
||||
|
||||
#include <wx/msw/registry.h>
|
||||
@@ -4680,6 +4695,10 @@ int main(int argc, char **argv)
|
||||
TestPathList();
|
||||
#endif // TEST_PATHLIST
|
||||
|
||||
#ifdef TEST_REGCONF
|
||||
TestRegConfWrite();
|
||||
#endif // TEST_REGCONF
|
||||
|
||||
#ifdef TEST_REGISTRY
|
||||
if ( 0 )
|
||||
TestRegistryRead();
|
||||
|
Reference in New Issue
Block a user