本文整理汇总了C++中CString::C_String方法的典型用法代码示例。如果您正苦于以下问题:C++ CString::C_String方法的具体用法?C++ CString::C_String怎么用?C++ CString::C_String使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CString
的用法示例。
在下文中一共展示了CString::C_String方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DestroyWindow
bool
CMsWin32Editbox::EditboxCreate( CMsWin32Window& parent ,
const CString& windowTitle ,
const bool createAsMultilineEdit ,
const Int32 xPosition ,
const Int32 yPosition ,
const UInt32 width ,
const UInt32 height ,
const bool readOnly )
{GUCEF_TRACE;
if ( 0 != GetHwnd() )
{
DestroyWindow( GetHwnd() );
SetHwnd( 0 );
}
DWORD dwStyle = 0;
if ( readOnly )
{
dwStyle |= ES_READONLY;
}
if ( createAsMultilineEdit )
{
dwStyle |= WS_VISIBLE|WS_CHILD|WS_BORDER|WS_VSCROLL|WS_HSCROLL|ES_MULTILINE|ES_WANTRETURN|ES_AUTOHSCROLL|ES_AUTOVSCROLL;
SetHwnd( CreateWindow( "edit",
windowTitle.C_String(),
dwStyle,
xPosition, yPosition, (int)width, (int)height,
parent.GetHwnd(), (HMENU)this, GetCurrentModuleHandle(), (LPVOID)this ) );
}
else
{
dwStyle |= WS_VISIBLE|WS_CHILD|WS_BORDER|ES_AUTOHSCROLL|ES_AUTOVSCROLL;
SetHwnd( CreateWindow( "edit",
windowTitle.C_String(),
dwStyle,
xPosition, yPosition, (int)width, (int)height,
parent.GetHwnd(), (HMENU)this, GetCurrentModuleHandle(), (LPVOID)this ) );
}
if ( GetHwnd() != 0 )
{
HookWndProc();
return true;
}
return false;
}
示例2: SetName
void CBlipEntity::SetName(CString sName)
{
if (!m_uiBlip)
return;
EFLC::CScript::ChangeBlipNameFromAscii(m_uiBlip, sName.C_String());
m_sName = sName;
}
示例3: stringBufferAccess
bool
CIniParser::LoadFrom( const CString& iniText )
{GUCEF_TRACE;
CDynamicBuffer stringBuffer;
stringBuffer.LinkTo( iniText.C_String(), iniText.Length() );
CDynamicBufferAccess stringBufferAccess( &stringBuffer, false );
return LoadFrom( stringBufferAccess );
}
示例4:
bool
CButtonImp::SetButtonText( const CString& newText )
{GUCEF_TRACE;
if ( NULL != m_button )
{
m_button->setCaption( newText.C_String() );
}
return true;
}
示例5: LoadModuleDynamicly
void*
CSimplisticPluginLoadLogic::LoadPlugin( const CString& rootDir ,
const CString& moduleName ,
const CString& groupName ,
const TVersion* pluginVersion )
{GUCEF_TRACE;
CString fullPluginPath = CombinePath( rootDir, moduleName );
fullPluginPath = RelativePath( fullPluginPath );
return LoadModuleDynamicly( fullPluginPath.C_String() );
}
示例6:
bool
CComboboxImp::SetText( const CString& text )
{GUCE_TRACE;
if ( NULL != m_combobox )
{
m_combobox->setText( text.C_String() );
return true;
}
return false;
}
示例7: LogTypeAndLevelToAndroidPrio
void
CAndroidSystemLogger::LogWithoutFormatting( const TLogMsgType logMsgType ,
const Int32 logLevel ,
const CString& logMessage ,
const UInt32 threadId )
{GUCEF_TRACE;
if ( NULL != m_logFunc )
{
android_LogPriority androidLogPrio = LogTypeAndLevelToAndroidPrio( logMsgType, logLevel );
( (TAndroidLogWriteFunc) m_logFunc )( androidLogPrio, m_tag.C_String(), logMessage.C_String() );
}
}
示例8: access
bool
CDStoreCodecPlugin::StoreDataTree( const CDataNode* tree ,
const CString& filename )
{GUCEF_TRACE;
Create_Path_Directories( filename.C_String() );
CFileAccess access( filename, "wb" );
if ( access.IsValid() )
{
return StoreDataTree( tree ,
&access );
}
return false;
}
示例9:
void
CX11Window::SetText( const CString& text )
{GUCEF_TRACE;
if ( NULL != m_display && 0 != m_window )
{
// We use the XTextProperty structure to store the title.
::XTextProperty windowName;
windowName.value = (unsigned char*) text.C_String();
windowName.encoding = XA_STRING;
windowName.format = 8;
windowName.nitems = text.Length();
// Tell X to ask the window manager to set the window title.
// X11 itself doesn't provide window title functionality.
::XSetWMName( m_display, m_window, &windowName );
}
}
示例10: FormatStdLogMessage
void
CAndroidSystemLogger::Log( const TLogMsgType logMsgType ,
const Int32 logLevel ,
const CString& logMessage ,
const UInt32 threadId )
{GUCEF_TRACE;
if ( NULL != m_logFunc )
{
// Just use standard GUCEF log formatting
CString formattedLogMsg = FormatStdLogMessage( logMsgType ,
logLevel ,
logMessage ,
threadId );
android_LogPriority androidLogPrio = LogTypeAndLevelToAndroidPrio( logMsgType, logLevel );
( (TAndroidLogWriteFunc) m_logFunc )( androidLogPrio, m_tag.C_String(), formattedLogMsg.C_String() );
}
}
示例11: SetWindowText
void
CMsWin32Editbox::SetText( const CString& text )
{
SetWindowText( GetHwnd(), text.C_String() );
}