76 _super::operator=(other);
77 _text::operator=(other);
78 m_textOffset = other.m_textOffset;
97 void SetWindowText(LPCTSTR lpszString);
105 void SetFont(CFont* pFont, BOOL bRedraw = TRUE);
129 if ( boIsFirst || m_strText.IsEmpty() )
133 CFont* pOldFont = pDC->SelectObject(_super::GetFont());
135 _super::GetClientRect(rect);
136 pDC->SetBkMode(TRANSPARENT);
137 if ( _super::GetButtonState() ==
ES_Pushed )
139 rect.OffsetRect(_pos);
141 rect.OffsetRect(m_textOffset);
142 DWORD dt = DT_CENTER | DT_VCENTER;
144 pDC->SelectObject(pOldFont);
154 _super::PreSubclassWindow();
155 _super::GetWindowText(m_strText);
167 virtual LRESULT
WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
169 if ( message == WM_SETTEXT )
171 m_strText =
reinterpret_cast<LPCTSTR
>(lParam);
173 return _super::WindowProc(message, wParam, lParam);
void DrawTextEx(CDC *pDC, const RECT &rect, UINT drawStyle, bool boIsEnable, LPCTSTR str)
[表示] 文字表示.