sets the text buffer.
| 201 | |
| 202 | // sets the text buffer. |
| 203 | void UIEdit::SetText(const char *text) { |
| 204 | ASSERT(strlen(text) <= (unsigned)m_BufSize); |
| 205 | |
| 206 | if (CHECK_FLAG(m_Flags, UIED_NUMBERS)) { |
| 207 | int num = atoi(text); |
| 208 | sprintf(m_TextBuf, "%d", num); |
| 209 | } else { |
| 210 | strcpy(m_TextBuf, text); |
| 211 | } |
| 212 | |
| 213 | m_CurPos = strlen(m_TextBuf); |
| 214 | m_StartPos = -1; |
| 215 | m_UpdateCount = false; |
| 216 | } |
| 217 | |
| 218 | // retrieve text in edit control. |
| 219 | void UIEdit::GetText(char *buffer, int len) { |
no outgoing calls
no test coverage detected