#ifndef WX_PRECOMP
#include <stdio.h>
#include "wx/setup.h"
+#include "wx/bitmap.h"
+#include "wx/brush.h"
#include "wx/radiobox.h"
#endif
WXDWORD exStyle = Determine3DEffects(0, &want3D) ;
// Even with extended styles, need to combine with WS_BORDER
// for them to look right.
+/*
if ( want3D || wxStyleHasBorder(m_windowStyle) )
msStyle |= WS_BORDER;
+*/
HWND the_handle = (HWND) parent->GetHWND() ;
}
#endif
- SetFont(* parent->GetFont());
+ SetFont(parent->GetFont());
SubclassWin((WXHWND)m_hWnd);
m_useCtl3D = TRUE;
}
#endif
- if (GetFont())
+ if (GetFont().Ok())
{
SendMessage((HWND)m_radioButtons[i],WM_SETFONT,
- (WPARAM)GetFont()->GetResourceHandle(),0L);
+ (WPARAM)GetFont().GetResourceHandle(),0L);
}
m_subControls.Append((wxObject *)newId);
}
}
#endif
- SetFont(* parent->GetFont());
+ SetFont(parent->GetFont());
// Subclass again for purposes of dialog editing mode
SubclassWin((WXHWND)m_hWnd);
int current_width, cyf;
int cx1,cy1 ;
- wxGetCharSize(m_hWnd, &cx1, &cy1, GetFont());
+ wxGetCharSize(m_hWnd, &cx1, &cy1, & this->GetFont());
// Attempt to have a look coherent with other platforms:
// We compute the biggest toggle dim, then we align all
// items according this value.
{
// It's a labelled toggle
GetWindowText((HWND) m_radioButtons[i], buf, 300);
- GetTextExtent(buf, ¤t_width, &cyf,NULL,NULL, GetFont());
+ GetTextExtent(buf, ¤t_width, &cyf,NULL,NULL, & this->GetFont());
eachWidth = (int)(current_width + RADIO_SIZE);
eachHeight = (int)((3*cyf)/2);
}
{
// It's a labeled item
GetWindowText((HWND) m_radioButtons[i], buf, 300);
- GetTextExtent(buf, ¤t_width, &cyf,NULL,NULL,GetFont());
+ GetTextExtent(buf, ¤t_width, &cyf,NULL,NULL, & this->GetFont());
// How do we find out radio button bitmap size!!
// By adjusting them carefully, manually :-)
void wxRadioBox::SetLabel(const wxString& label)
{
- if (m_hWnd && label)
+ if (m_hWnd)
SetWindowText((HWND) m_hWnd, label);
}