w = size.x == -1 ? 0 : size.x,
h = size.y == -1 ? 0 : size.y;
- // ... and adjust it to account for ap ossible parent frames toolbar
+ // ... and adjust it to account for a possible parent frames toolbar
AdjustForParentClientOrigin(x, y);
m_hWnd = (WXHWND)::CreateWindowEx
if ( !m_hWnd )
{
wxLogDebug(wxT("Failed to create a control of class '%s'"), classname);
- wxFAIL_MSG(_T("something is very wrong"));
+ wxFAIL_MSG(_T("something is very wrong, CreateWindowEx failed"));
return FALSE;
}
// set up fonts and colours
InheritAttributes();
- SetFont(GetDefaultAttributes().font);
+ if (!m_hasFont)
+ SetFont(GetDefaultAttributes().font);
// set the size now if no initial size specified
SetInitialBestSize(size);
WXLPARAM lParam,
WXLPARAM* result)
{
- wxEventType eventType = wxEVT_NULL;
+ wxEventType eventType wxDUMMY_INITIALIZE(wxEVT_NULL);
NMHDR *hdr = (NMHDR*) lParam;
switch ( hdr->code )