WS_TABSTOP |
WS_VISIBLE;
- if (lStyle & wxCLIP_SIBLINGS )
- lSstyle |= WS_CLIPSIBLINGS;
+ // clipping siblings does not yet work
+ // if (lStyle & wxCLIP_SIBLINGS )
+ // lSstyle |= WS_CLIPSIBLINGS;
wxASSERT_MSG( !(lStyle & wxCB_DROPDOWN) &&
!(lStyle & wxCB_READONLY) &&
// Set height to use with sizers i.e. without the dropdown listbox
wxFont vFont = GetFont();
- int nCx,nCy;
- wxGetCharSize( GetHWND(), &nCx, &nCy, &vFont );
- int nEditHeight = EDIT_HEIGHT_FROM_CHAR_HEIGHT(nCy);
- SetBestFittingSize(wxSize(-1,nEditHeight));
+ int nEditHeight;
+ wxGetCharSize( GetHWND(), NULL, &nEditHeight, &vFont );
+ nEditHeight = EDIT_HEIGHT_FROM_CHAR_HEIGHT(nEditHeight);
+ SetBestFittingSize(wxSize(-1,nEditHeight+4)); // +2x2 for the border
return true;
} // end of wxChoice::Create
{
int nIndex;
LONG nIndexType = 0;
-
- if (m_windowStyle & wxLB_SORT)
+ if (m_windowStyle & wxCB_SORT)
nIndexType = LIT_SORTASCENDING;
else
nIndexType = LIT_END;
int nIndex;
LONG nIndexType = 0;
- if (m_windowStyle & wxLB_SORT)
+ if (m_windowStyle & wxCB_SORT)
nIndexType = LIT_SORTASCENDING;
else
nIndexType = pos;
::WinSendMsg(GetHwnd(), LM_DELETEITEM, (MPARAM)n, 0);
- if (m_windowStyle & wxLB_SORT)
+ if (m_windowStyle & wxCB_SORT)
nIndexType = LIT_SORTASCENDING;
else
nIndexType = LIT_END;
lSstyle = WS_TABSTOP |
WS_VISIBLE;
- if (lStyle & wxCLIP_SIBLINGS )
- lSstyle |= WS_CLIPSIBLINGS;
+ // clipping siblings does not yet work
+ // if (lStyle & wxCLIP_SIBLINGS )
+ // lSstyle |= WS_CLIPSIBLINGS;
if (lStyle & wxCB_READONLY)
lSstyle |= CBS_DROPDOWNLIST;
else if (lStyle & wxCB_SIMPLE)
// Set height to use with sizers i.e. without the dropdown listbox
wxFont vFont = GetFont();
- int nCx,nCy;
- wxGetCharSize( GetHWND(), &nCx, &nCy, &vFont );
- int nEditHeight = EDIT_HEIGHT_FROM_CHAR_HEIGHT(nCy);
- SetBestFittingSize(wxSize(-1,nEditHeight));
+ int nEditHeight;
+ wxGetCharSize( GetHWND(), NULL, &nEditHeight, &vFont );
+ nEditHeight = EDIT_HEIGHT_FROM_CHAR_HEIGHT(nEditHeight);
+ SetBestFittingSize(wxSize(-1,nEditHeight+4)); // +2x2 for the border
if (!rsValue.empty())
{
return(HandleKillFocus((WXHWND)(HWND)wParam));
}
return false;
-} // end of WinGuiBase_CComboBox::ProcessEditMsg
+} // end of wxComboBox::ProcessEditMsg
MRESULT EXPENTRY wxComboEditWndProc(
HWND hWnd
else
label = m_label;
+ // clipping siblings does not yet work
+ dwStyle &= ~WS_CLIPSIBLINGS;
+
m_hWnd = (WXHWND)::WinCreateWindow( (HWND)GetHwndOf(pParent) // Parent window handle
,(PSZ)zClass // Window class
,(PSZ)label.c_str() // Initial Text