void CFX_ListCtrl::SetPlateRect(const CFX_FloatRect& rect) { CFX_ListContainer::SetPlateRect(rect); m_ptScrollPos.x = rect.left; SetScrollPos(CFX_PointF(rect.left, rect.top)); ReArrange(0); InvalidateItem(-1); }
bool PacketBuffer::AppendBuffer(const char* pBuffer, uint16 size) { if (!pBuffer) return false; if (size == 0) return false; if (size > GetRemainSize()) { ReArrange(); } if (size > GetRemainSize()) { LOG_ERROR("Not enough remain buffer."); return false; } CopyMemory(buffer.data() + writePos, pBuffer, size); writePos += size; return true; }
void CFX_ListCtrl::AddString(const FX_WCHAR* string) { AddItem(string); ReArrange(GetCount() - 1); }
void CFX_ListCtrl::AddString(const CFX_WideString& str) { AddItem(str); ReArrange(GetCount() - 1); }