您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ wxCHECK函数代码示例

51自学网 2021-06-03 10:08:50
  C++
这篇教程C++ wxCHECK函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中wxCHECK函数的典型用法代码示例。如果您正苦于以下问题:C++ wxCHECK函数的具体用法?C++ wxCHECK怎么用?C++ wxCHECK使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了wxCHECK函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: wxCHECK

/// Performs deserialization for the class/// @param stream Power Tab input stream to load from/// @param version File version/// @return True if the object was deserialized, false if notbool ChordDiagram::DoDeserialize(PowerTabInputStream& stream, wxWord version){    //------Last Checked------//    // - Jan 14, 2005    m_chordName.Deserialize(stream, version);    wxCHECK(stream.CheckState(), false);    	stream >> m_topFret;	wxCHECK(stream.CheckState(), false);		wxByte count = 0;	stream >> count;	wxCHECK(stream.CheckState(), false);	size_t i = 0;	for (; i < count; i++)	{	    wxByte fretNumber = 0;	    stream >> fretNumber;	    wxCHECK(stream.CheckState(), false);	    	    m_fretNumberArray.Add(fretNumber);    }    	    return (true);}
开发者ID:BackupTheBerlios,项目名称:ptparser-svn,代码行数:30,


示例2: wxCHECK

// forward the message to the appropriate itembool wxListBox::MSWOnDraw(WXDRAWITEMSTRUCT *item){    // only owner-drawn control should receive this message    wxCHECK( ((m_windowStyle & wxLB_OWNERDRAW) == wxLB_OWNERDRAW), false );    DRAWITEMSTRUCT *pStruct = (DRAWITEMSTRUCT *)item;    UINT itemID = pStruct->itemID;    // the item may be -1 for an empty listbox    if ( itemID == (UINT)-1 )        return false;    long data = ListBox_GetItemData(GetHwnd(), pStruct->itemID);    wxCHECK( data && (data != LB_ERR), false );    wxListBoxItem *pItem = (wxListBoxItem *)data;    wxDCTemp dc((WXHDC)pStruct->hDC);    wxPoint pt1(pStruct->rcItem.left, pStruct->rcItem.top);    wxPoint pt2(pStruct->rcItem.right, pStruct->rcItem.bottom);    wxRect rect(pt1, pt2);    return pItem->OnDrawItem(dc, rect,                             (wxOwnerDrawn::wxODAction)pStruct->itemAction,                             (wxOwnerDrawn::wxODStatus)pStruct->itemState);}
开发者ID:czxxjtu,项目名称:wxPython-1,代码行数:28,


示例3: return

/// Passes the results of a test to the test suite callback function/// @param record Indicates whether or note the results of the test should be recorded to the results tree ctrl if the test was successful/// @param startTime The time when the test was started/// @param testName Name of the test/// @param success Indicates the success/failure of the test/// @param fileName Name of the file where the test occurred/// @param lineNumber Line number in the file where the test occurredbool TestSuite::Test(bool record, wxLongLong startTime, const wxChar* testName, bool success, char* fileName, size_t lineNumber){    //------Last Checked------//    // - Dec 2, 2004               // Calculate the time to execute the test (in seconds)    wxLongLong span = ::wxGetLocalTimeMillis() - startTime;    double executionTime = ((double)span.ToLong()) / 1000.0;    // If the test suite isn't being executed, bail out    if (!IsExecuted())        return (false);    // Update the success or failure of the test    if (success)        m_passed++;    else        m_failed++;    wxCHECK(testName != NULL, false);    wxCHECK(fileName != NULL, false);    wxCHECK(m_testSuiteCallback != NULL, false);    // Create a temp string used for the filename (since it's ANSI and we want it this to work on Unicode builds)    wxString tempFileName(fileName);    // Send the results of the test to the callback    return (m_testSuiteCallback(this, testName, success, tempFileName, lineNumber, record, executionTime, m_clientData));}
开发者ID:BackupTheBerlios,项目名称:ptparser-svn,代码行数:36,


示例4: WXUNUSED

// Overridesbool PowerTabView::OnCreate(wxDocument *doc, long flags){    //------Last Checked------//    // - Jan 27, 2005    WXUNUSED(flags);        MainFrame* mainFrame = GetMainFrame();    wxCHECK(mainFrame != NULL, false);        m_frame = mainFrame->CreateChildFrame(doc, this);    wxCHECK(m_frame != NULL, false);        m_frame->SetTitle(wxT("PowerTabView"));    m_canvas = CreateCanvas(this, m_frame);    wxCHECK(m_canvas != NULL, false);    #ifdef __X__    // X seems to require a forced resize    int x, y;    m_frame->GetSize(&x, &y);    m_frame->SetSize(-1, -1, x, y);#endif    m_frame->Show(true);    Activate(true);    return (true);}
开发者ID:BackupTheBerlios,项目名称:ptparser-svn,代码行数:30,


示例5: WXUNUSED

// Overridesbool PowerTabTuningView::OnCreate(wxDocument* doc, long flags){    //------Last Checked------//    // - Dec 30, 2004    WXUNUSED(flags);        MainFrame* mainFrame = GetMainFrame();    wxCHECK(mainFrame != NULL, false);        m_frame = mainFrame->CreateChildFrame(doc, this);    wxCHECK(m_frame != NULL, false);        m_window = CreateViewWindow();    wxCHECK(m_window != NULL, false);    #ifdef __X__    // X seems to require a forced resize    int x, y;    m_frame->GetSize(&x, &y);    m_frame->SetSize(-1, -1, x, y);#endif        m_frame->Show(true);    Activate(true);        return (true);}
开发者ID:BackupTheBerlios,项目名称:ptparser-svn,代码行数:28,


示例6: wxCHECK

// Fret Number Functions/// Sets the fret number for an existing string in the chordDiagram/// @param string String to set the fret number for/// @param fretNumber Fret number to set/// @return True if the fret number was set, false if notbool ChordDiagram::SetFretNumber(wxUint32 string, wxByte fretNumber){    //------Last Checked------//    // - Jan 15, 2005    wxCHECK(IsValidString(string), false);    wxCHECK(IsValidFretNumber(fretNumber), false);    m_fretNumberArray[string] = fretNumber;    return (true);}
开发者ID:RaptDept,项目名称:ptparser,代码行数:14,


示例7: wxCHECK

bool wxPropertyGridInterface::SetColumnProportion( unsigned int column,                                                   int proportion ){    wxCHECK(m_pState, false);    wxPropertyGrid* pg = m_pState->GetGrid();    wxCHECK(pg, false);    wxCHECK(pg->HasFlag(wxPG_SPLITTER_AUTO_CENTER), false);    m_pState->DoSetColumnProportion(column, proportion);    return true;}
开发者ID:CyberIntelMafia,项目名称:clamav-devel,代码行数:10,


示例8: wxCHECK

bool CXmlFile::Save(wxString* error){	wxCHECK(m_fileName.IsOk(), false);	wxCHECK(m_pDocument, false);	bool res = SaveXmlFile(m_fileName, GetElement(), error);	wxLogNull log;	m_modificationTime = m_fileName.GetModificationTime();	return res;}
开发者ID:bartojak,项目名称:osp-filezilla,代码行数:11,


示例9: wxCHECK

// Serialization Functions/// Performs serialization for the class/// @param stream Power Tab output stream to serialize to/// @return True if the object was serialized, false if notbool ChordText::DoSerialize(PowerTabOutputStream& stream){    //------Last Checked------//    // - Jan 3, 2005    stream << m_position;    wxCHECK(stream.CheckState(), false);        m_chordName.Serialize(stream);    wxCHECK(stream.CheckState(), false);        return (stream.CheckState());}
开发者ID:BackupTheBerlios,项目名称:ptparser-svn,代码行数:16,


示例10: wxCHECK

int wxStatusBarEx::GetFieldIndex(int field){	if (field >= 0) {		wxCHECK(field <= GetFieldsCount(), -1);	}	else {		field = GetFieldsCount() + field;		wxCHECK(field >= 0, -1);	}	return field;}
开发者ID:Typz,项目名称:FileZilla,代码行数:12,


示例11: wxCHECK

bool wxTreeMultiXmlMapper::InitWizard(const wxFileName &xmlfile, const wxString &start_tag){    wxCHECK(m_ctrl, false);    // create a new XML document    InitXML();    wxCHECK(m_tiDoc, false);    // load the contents from disk    if(m_tiDoc->LoadFile(xmlfile.GetFullPath().c_str()))        return DoInitWizard(start_tag);	return false;}
开发者ID:mp-lee,项目名称:wxdevcpp,代码行数:14,


示例12: wxCHECK

// Serialize Functions/// Performs serialization for the class/// @param stream Power Tab output stream to serialize to/// @return True if the object was serialized, false if notbool System::DoSerialize(PowerTabOutputStream& stream){    //------Last Checked------//    // - Jan 14, 2005    stream.WriteMFCRect(m_rect);    wxCHECK(stream.CheckState(), false);        // Note: End bar is stored as a byte; we use Barline class to make it easier    // for the user    wxByte endBar = (wxByte)((m_endBar.GetType() << 5) |        (m_endBar.GetRepeatCount()));    stream << endBar << m_positionSpacing << m_rhythmSlashSpacingAbove <<        m_rhythmSlashSpacingBelow << m_extraSpacing;    wxCHECK(stream.CheckState(), false);        m_startBar.Serialize(stream);    wxCHECK(stream.CheckState(), false);    m_directionArray.Serialize(stream);    wxCHECK(stream.CheckState(), false);        m_chordTextArray.Serialize(stream);    wxCHECK(stream.CheckState(), false);        m_rhythmSlashArray.Serialize(stream);    wxCHECK(stream.CheckState(), false);        m_staffArray.Serialize(stream);    wxCHECK(stream.CheckState(), false);        m_barlineArray.Serialize(stream);    wxCHECK(stream.CheckState(), false);    return (stream.CheckState());}
开发者ID:RaptDept,项目名称:ptparser,代码行数:39,


示例13: WXUNUSED

// Serialization Functions/// Performs deserialization for the class/// @param stream Power Tab input stream to load from/// @param version File version/// @return True if the object was deserialized, false if notbool OldRehearsalSign::DoDeserialize(PowerTabInputStream& stream, wxWord version){    //------Last Checked------//    // - Dec 29, 2004    WXUNUSED(version);        stream >> m_system >> m_position >> m_data >> m_letter;    wxCHECK(stream.CheckState(), false);        stream.ReadMFCString(m_description);    wxCHECK(stream.CheckState(), false);        return (stream.CheckState());}
开发者ID:BackupTheBerlios,项目名称:ptparser-svn,代码行数:19,


示例14: wxCHECK

// recursiveCAICHHashTree* CAICHHashTree::FindHash(uint64 nStartPos, uint64 nSize, uint8* nLevel){	(*nLevel)++;		wxCHECK(*nLevel <= 22, NULL);	wxCHECK(nStartPos + nSize <= m_nDataSize, NULL);	wxCHECK(nSize <= m_nDataSize, NULL);		if (nStartPos == 0 && nSize == m_nDataSize) {		// this is the searched hash		return this;	} else if (m_nDataSize <= m_nBaseSize) { // sanity		// this is already the last level, cant go deeper		wxFAIL;		return NULL;	} else {		uint64 nBlocks = m_nDataSize / m_nBaseSize + ((m_nDataSize % m_nBaseSize != 0 )? 1:0); 		uint64 nLeft = (((m_bIsLeftBranch) ? nBlocks+1:nBlocks) / 2)* m_nBaseSize;		uint64 nRight = m_nDataSize - nLeft;		if (nStartPos < nLeft) {			if (nStartPos + nSize > nLeft) { // sanity				wxFAIL;				return NULL;			}						if (m_pLeftTree == NULL) {				m_pLeftTree = new CAICHHashTree(nLeft, true, (nLeft <= PARTSIZE) ? EMBLOCKSIZE : PARTSIZE);			} else {				wxASSERT( m_pLeftTree->m_nDataSize == nLeft );			}						return m_pLeftTree->FindHash(nStartPos, nSize, nLevel);		} else {			nStartPos -= nLeft;			if (nStartPos + nSize > nRight) { // sanity				wxFAIL;				return NULL;			}						if (m_pRightTree == NULL) {				m_pRightTree = new CAICHHashTree(nRight, false, (nRight <= PARTSIZE) ? EMBLOCKSIZE : PARTSIZE);			} else {				wxASSERT( m_pRightTree->m_nDataSize == nRight ); 			}						return m_pRightTree->FindHash(nStartPos, nSize, nLevel);		}	}}
开发者ID:dreamerc,项目名称:amule,代码行数:50,


示例15: wxCHECK

/// Performs serialization for the class/// @param stream Power Tab output stream to serialize to/// @return True if the object was serialized, false if notbool FontSetting::DoSerialize(PowerTabOutputStream& stream){    //------Last Checked------//    // - Dec 5, 2004    stream.WriteMFCString(m_faceName);    wxCHECK(stream.CheckState(), false);        stream << m_pointSize << m_weight << m_italic << m_underline << m_strikeOut;    wxCHECK(stream.CheckState(), false);        stream.WriteWin32ColorRef(m_color);    wxCHECK(stream.CheckState(), false);        return (stream.CheckState());}
开发者ID:BackupTheBerlios,项目名称:ptparser-svn,代码行数:18,


示例16: InsertColumn

/// Inserts the columns used by the list control/// @return True if the columns were inserted, false if notbool PowerTabTuningViewWindow::InsertColumns(){    //------Last Checked------//    // - Dec 30, 2004        InsertColumn(COLUMN_NAME, wxT("Name"));    wxCHECK(GetColumnCount() == 1, false);        InsertColumn(COLUMN_STRINGS, wxT("Strings"), wxLIST_FORMAT_CENTER);    wxCHECK(GetColumnCount() == 2, false);        InsertColumn(COLUMN_SPELLING, wxT("Spelling"));    wxCHECK(GetColumnCount() == 3, false);        return (true);}
开发者ID:BackupTheBerlios,项目名称:ptparser-svn,代码行数:18,


示例17: wxCHECK

// NB: can't forward this to wxListBoxItem because LB_SETITEMDATA//     message is not yet sent when we get here!bool wxListBox::MSWOnMeasure(WXMEASUREITEMSTRUCT *item){    // only owner-drawn control should receive this message    wxCHECK( HasFlag(wxLB_OWNERDRAW), false );    MEASUREITEMSTRUCT *pStruct = (MEASUREITEMSTRUCT *)item;#ifdef __WXWINCE__    HDC hdc = GetDC(NULL);#else    HDC hdc = CreateIC(wxT("DISPLAY"), NULL, NULL, 0);#endif    {        wxDCTemp dc((WXHDC)hdc);        dc.SetFont(GetFont());        pStruct->itemHeight = dc.GetCharHeight() + 2 * LISTBOX_EXTRA_SPACE;        pStruct->itemWidth  = dc.GetCharWidth();    }#ifdef __WXWINCE__    ReleaseDC(NULL, hdc);#else    DeleteDC(hdc);#endif    return true;}
开发者ID:Zombiebest,项目名称:Dolphin,代码行数:31,


示例18: Close

pugi::xml_node CXmlFile::Load(){	Close();	m_error.clear();	wxCHECK(!m_fileName.empty(), m_element);	std::wstring redirectedName = GetRedirectedName();	GetXmlFile(redirectedName);	if (!m_element) {		wxString err = wxString::Format(_("The file '%s' could not be loaded."), m_fileName);		if (m_error.empty()) {			err += wxString(_T("/n")) + _("Make sure the file can be accessed and is a well-formed XML document.");		}		else {			err += _T("/n") + m_error;		}		// Try the backup file		GetXmlFile(redirectedName + _T("~"));		if (!m_element) {			// Loading backup failed. If both original and backup file are empty, create new file.			if (fz::local_filesys::get_size(fz::to_native(redirectedName)) <= 0 && fz::local_filesys::get_size(fz::to_native(redirectedName + _T("~"))) <= 0) {				m_error.clear();				CreateEmpty();				m_modificationTime = fz::local_filesys::get_modification_time(fz::to_native(redirectedName));				return m_element;			}			// File corrupt and no functional backup, give up.			m_error = err;			m_modificationTime.clear();			return m_element;		}		// Loading the backup file succeeded, restore file		bool res;		{			wxLogNull null;			res = wxCopyFile(redirectedName + _T("~"), redirectedName);		}		if (!res) {			// Could not restore backup, give up.			Close();			m_error = err.ToStdWstring();			m_error += _T("/n") + wxString::Format(_("The valid backup file %s could not be restored"), redirectedName + _T("~")).ToStdWstring();			m_modificationTime.clear();			return m_element;		}		// We no longer need the backup		wxRemoveFile(redirectedName + _T("~"));		m_error.clear();	}	m_modificationTime = fz::local_filesys::get_modification_time(fz::to_native(redirectedName));	return m_element;}
开发者ID:zedfoxus,项目名称:filezilla-client,代码行数:60,


示例19: wxArabicToRoman

// Number Functions/// Converts an arabic number to it's roman numeral equivalent/// @param number Number to convert/// @param upperCase If true, forces the roman numeral to upper case/// @return Roman numeralwxString wxArabicToRoman(wxInt32 number, bool upperCase){    //------Last Checked------//    // - Dec 7, 2004    	// Can only convert 1 to 5999	wxCHECK(((number > 0) && (number < 6000)), wxT(""));	wxString returnValue;	while (number >= 1000)	{number -= 1000; returnValue += wxT("m");}    while (number >= 900)	{number -= 900; returnValue += wxT("cm");}    while (number >= 500)	{number -= 500; returnValue += wxT("d");}    while (number >= 400)	{number -= 400; returnValue += wxT("cd");}    while (number >= 100)	{number -= 100; returnValue += wxT("c");}    while (number >= 90)	{number -= 90; returnValue += wxT("xc");}    while (number >= 50)	{number -= 50; returnValue += wxT("l");}    while (number >= 40)	{number -= 40; returnValue += wxT("xl");}    while (number >= 10)	{number -= 10; returnValue += wxT("x");}    while (number >= 9)	    {number -= 9; returnValue += wxT("ix");}    while (number >= 5)	    {number -= 5; returnValue += wxT("v");}    while (number >= 4)	    {number -= 4; returnValue += wxT("iv");}    while (number >= 1)	    {number -= 1; returnValue += wxT("i");}	// Force the text to upper case	if (upperCase)	    returnValue.MakeUpper();    return (returnValue);}
开发者ID:RaptDept,项目名称:ptparser,代码行数:34,


示例20: wxExtractSubString

/// Extracts the nth substring from a delimited string/// This is a wxWidgets port of MFC's AfxExtractSubString/// @param string Holds the returned substring/// @param fullString String to extract the substring from/// @param subString Zero-based index of the substring to extract/// @param separator Character used to separator the substrings/// @return True if the substring was extracted, false if notbool wxExtractSubString(wxString& string, const wxChar* fullString,    wxUint32 subString, wxChar separator){    //------Last Verified------//    // - Nov 27, 2004    wxCHECK(fullString != (wxChar*)NULL, false);        string.Clear();    while (subString--)    {        fullString = wxStrchr(fullString, separator);        if (fullString == NULL)        {            string.Clear();        // return empty string as well            return (false);        }        fullString++;       // point past the separator    }    const wxChar* end = wxStrchr(fullString, separator);    wxInt32 length = (end == NULL) ? wxStrlen_(fullString) :        (wxInt32)(end - fullString);    wxASSERT(length >= 0);    memcpy(string.GetWriteBuf(length), fullString, length * sizeof(wxChar));    string.UngetWriteBuf();     // Need to call ReleaseBuffer                                 // after calling GetBufferSetLength    return (true);}
开发者ID:RaptDept,项目名称:ptparser,代码行数:35,


示例21: wxASSERT

// allocates memory needed to store a C string of length nLenbool wxStringImpl::AllocBuffer(size_t nLen){  // allocating 0 sized buffer doesn't make sense, all empty strings should  // reuse g_strEmpty  wxASSERT( nLen >  0 );  // make sure that we don't overflow  wxCHECK( nLen < (INT_MAX / sizeof(wxStringCharType)) -                  (sizeof(wxStringData) + EXTRA_ALLOC + 1), false );  STATISTICS_ADD(Length, nLen);  // allocate memory:  // 1) one extra character for '/0' termination  // 2) sizeof(wxStringData) for housekeeping info  wxStringData* pData = (wxStringData*)    malloc(sizeof(wxStringData) + (nLen + EXTRA_ALLOC + 1)*sizeof(wxStringCharType));  if ( pData == NULL ) {    // allocation failures are handled by the caller    return false;  }  pData->nRefs        = 1;  pData->nDataLength  = nLen;  pData->nAllocLength = nLen + EXTRA_ALLOC;  m_pchData           = pData->data();  // data starts after wxStringData  m_pchData[nLen]     = wxT('/0');  return true;}
开发者ID:erwincoumans,项目名称:wxWidgets,代码行数:31,


示例22: wxCHECK

bool wxNativeContainerWindow::Create(wxNativeContainerWindowHandle win){    wxCHECK( win, false );    if ( !wxTopLevelWindow::Create(NULL, wxID_ANY, "") )        return false;    // we need to realize the window first before reparenting it    gtk_widget_realize(m_widget);    gdk_window_reparent(gtk_widget_get_window(m_widget), win, 0, 0);#ifdef GDK_WINDOWING_X11    // if the native window is destroyed, our own window will be destroyed too    // but GTK doesn't expect it and will complain about "unexpectedly    // destroyed" GdkWindow, so intercept to DestroyNotify ourselves to fix    // this and also destroy the associated C++ object when its window is    // destroyed    gdk_window_add_filter(gtk_widget_get_window(m_widget), wxNativeContainerWindowFilter, this);#endif // GDK_WINDOWING_X11    // we should be initially visible as we suppose that the native window we    // wrap is (we could use gdk_window_is_visible() to test for this but this    // doesn't make much sense unless we also react to visibility changes, so    // just suppose it's always shown for now)    Show();    return true;}
开发者ID:AaronDP,项目名称:wxWidgets,代码行数:28,


示例23: wxCHECK

long wxListBox::OS2OnMeasure(  WXMEASUREITEMSTRUCT*              pItem){    if (!pItem)        pItem = (WXMEASUREITEMSTRUCT*)new OWNERITEM;    POWNERITEM                      pMeasureStruct = (POWNERITEM)pItem;    wxScreenDC                      vDc;    //    // Only owner-drawn control should receive this message    //    wxCHECK( ((m_windowStyle & wxLB_OWNERDRAW) == wxLB_OWNERDRAW), FALSE );    vDc.SetFont(GetFont());    wxCoord                         vHeight;    wxCoord                         vWidth;    GetSize( &vWidth            ,NULL           );    pMeasureStruct->rclItem.xRight = (USHORT)vWidth;    pMeasureStruct->rclItem.xLeft  = 0;    pMeasureStruct->rclItem.yTop   = 0;    pMeasureStruct->rclItem.yBottom = 0;    vHeight = (wxCoord)(vDc.GetCharHeight() * 2.5);    pMeasureStruct->rclItem.yTop  = (USHORT)vHeight;    return long(MRFROM2SHORT((USHORT)vHeight, (USHORT)vWidth));} // end of wxListBox::OS2OnMeasure
开发者ID:Duion,项目名称:Torsion,代码行数:34,


示例24: SetFileName

TiXmlElement* CXmlFile::Load(const wxFileName& fileName){	if (fileName.IsOk())		SetFileName(fileName);	wxCHECK(m_fileName.IsOk(), 0);	delete m_pDocument;	m_pDocument = 0;	TiXmlElement* pElement = GetXmlFile(m_fileName);	if (!pElement)	{		m_modificationTime = wxDateTime();		return 0;	}	{		wxLogNull log;		m_modificationTime = m_fileName.GetModificationTime();	}	m_pDocument = pElement->GetDocument();	return pElement;}
开发者ID:idgaf,项目名称:FileZilla3,代码行数:25,


示例25: SetFileName

TiXmlElement* CXmlFile::Load(const wxFileName& fileName){	if (fileName.IsOk())		SetFileName(fileName);	wxCHECK(m_fileName.IsOk(), 0);	delete m_pDocument;	m_pDocument = 0;	wxString error;	TiXmlElement* pElement = GetXmlFile(m_fileName, &error);	if (!pElement)	{		if (!error.empty())		{			m_error.Printf(_("The file '%s' could not be loaded."), m_fileName.GetFullPath().c_str());			if (!error.empty())				m_error += _T("/n") + error;			else				m_error += wxString(_T("/n")) + _("Make sure the file can be accessed and is a well-formed XML document.");			m_modificationTime = wxDateTime();		}		return 0;	}	{		wxLogNull log;		m_modificationTime = m_fileName.GetModificationTime();	}	m_pDocument = pElement->GetDocument();	return pElement;}
开发者ID:bartojak,项目名称:osp-filezilla,代码行数:34,


示例26: wxPG_PROP_ARG_CALL_PROLOG_RETVAL

wxPGProperty* wxPropertyGridInterface::RemoveProperty( wxPGPropArg id ){    wxPG_PROP_ARG_CALL_PROLOG_RETVAL(wxNullProperty)    wxCHECK( !p->GetChildCount() || p->HasFlag(wxPG_PROP_AGGREGATE),             wxNullProperty);    wxPropertyGridPageState* state = p->GetParentState();    wxPropertyGrid* grid = state->GetGrid();    if ( grid->GetState() == state )    {        grid->DoSelectProperty(NULL,            wxPG_SEL_DELETING|wxPG_SEL_NOVALIDATE);    }    state->DoDelete( p, false );    // Mark the property as 'unattached'    p->m_parentState = NULL;    p->m_parent = NULL;    RefreshGrid(state);    return p;}
开发者ID:czxxjtu,项目名称:wxPython-1,代码行数:26,



注:本文中的wxCHECK函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ wxCHECK_MSG函数代码示例
C++ wxCFStringRef函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。