- if ( m_hWnd == 0 )
- {
- wxLogError(_T("Failed to create a toggle button"));
-
- return FALSE;
- }
-
- // Subclass again for purposes of dialog editing mode
- SubclassWin(m_hWnd);
-
- SetFont(parent->GetFont());
-
- SetSize(pos.x, pos.y, size.x, size.y);
-
- return TRUE;
-}
-
-void wxToggleButton::SetLabel(const wxString& label)
-{
- SetWindowText(GetHwnd(), label);