mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0028110: Configuration - specify Unicode charset instead of multibyte in project files for Visual Studio
Eliminated usage of ANSI methods. All Visual Studio projects generated by genproj or CMake use Unicode character set. Draw Harness now handles Unicode input on Windows. Tcl test scripts are now expected in UTF-8 encoding by default.
This commit is contained in:
@@ -251,15 +251,15 @@ Standard_Integer GenerateId()
|
||||
// Function : WClass
|
||||
// Purpose :
|
||||
//=========================================================
|
||||
const Handle(MMgt_TShared)& IVtkDraw::WClass()
|
||||
const Handle(Standard_Transient)& IVtkDraw::WClass()
|
||||
{
|
||||
static Handle(MMgt_TShared) aWindowClass;
|
||||
static Handle(Standard_Transient) aWindowClass;
|
||||
#ifdef _WIN32
|
||||
if (aWindowClass.IsNull())
|
||||
{
|
||||
aWindowClass = new WNT_WClass ("GWVTK_Class", DefWindowProc,
|
||||
CS_VREDRAW | CS_HREDRAW, 0, 0,
|
||||
::LoadCursor (NULL, IDC_ARROW));
|
||||
::LoadCursorW (NULL, IDC_ARROW));
|
||||
}
|
||||
#endif
|
||||
return aWindowClass;
|
||||
|
@@ -16,12 +16,11 @@
|
||||
#ifndef _IVtkDraw_HeaderFile
|
||||
#define _IVtkDraw_HeaderFile
|
||||
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Transient.hxx>
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Macro.hxx>
|
||||
|
||||
class Draw_Interpretor;
|
||||
class MMgt_TShared;
|
||||
|
||||
class IVtkDraw
|
||||
{
|
||||
@@ -38,7 +37,7 @@ public:
|
||||
Standard_EXPORT static void Commands (Draw_Interpretor& theCommands);
|
||||
|
||||
private:
|
||||
Standard_EXPORT static const Handle(MMgt_TShared)& WClass();
|
||||
Standard_EXPORT static const Handle(Standard_Transient)& WClass();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user