retrieve text in edit control.
| 217 | |
| 218 | // retrieve text in edit control. |
| 219 | void UIEdit::GetText(char *buffer, int len) { |
| 220 | // ASSERT(strlen(m_TextBuf) < (unsigned)len); |
| 221 | if (!m_TextBuf) { |
| 222 | buffer[0] = '\0'; |
| 223 | return; |
| 224 | } |
| 225 | strncpy(buffer, m_TextBuf, len - 1); |
| 226 | buffer[len - 1] = 0; |
| 227 | } |
| 228 | |
| 229 | // sets font of control (default is window's font.) |
| 230 | void UIEdit::SetFont(int font) { m_FontHandle = font; } |
no outgoing calls
no test coverage detected