Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Label::SetText(const wchar_t *pText)
- {
- ::SetWindowText(m_hHandle, pText);
- }
- const wchar_t *Label::GetText()
- {
- return m_pText;
- }
- bool Label::OnTextChanged(const wchar_t *pText)
- {
- if(m_pText != 0)
- free(m_pText);
- if(pText != 0)
- {
- m_pText = _wcsdup(pText);
- }
- else
- {
- m_pText = 0;
- }
- printf("Text changed to: %s\n", m_pText);
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement