call static functions directly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
53ee60908a
commit
5625d0d4ca
@ -3053,7 +3053,7 @@ static void wxConvertToMSWListCol(HWND hwndList,
|
||||
#ifdef NM_CUSTOMDRAW // _WIN32_IE >= 0x0300
|
||||
if ( item.m_mask & wxLIST_MASK_IMAGE )
|
||||
{
|
||||
if ( wxTheApp->GetComCtl32Version() >= 470 )
|
||||
if ( wxApp::GetComCtl32Version() >= 470 )
|
||||
{
|
||||
lvCol.mask |= LVCF_IMAGE;
|
||||
|
||||
|
@ -221,7 +221,7 @@ int wxSpinButton::GetValue() const
|
||||
{
|
||||
int n;
|
||||
#ifdef UDM_GETPOS32
|
||||
if ( wxTheApp->GetComCtl32Version() >= 580 )
|
||||
if ( wxApp::GetComCtl32Version() >= 580 )
|
||||
{
|
||||
// use the full 32 bit range if available
|
||||
n = ::SendMessage(GetHwnd(), UDM_GETPOS32, 0, 0);
|
||||
@ -244,7 +244,7 @@ void wxSpinButton::SetValue(int val)
|
||||
// wxSpinButtonBase::SetValue(val); -- no, it is pure virtual
|
||||
|
||||
#ifdef UDM_SETPOS32
|
||||
if ( wxTheApp->GetComCtl32Version() >= 580 )
|
||||
if ( wxApp::GetComCtl32Version() >= 580 )
|
||||
{
|
||||
// use the full 32 bit range if available
|
||||
::SendMessage(GetHwnd(), UDM_SETPOS32, 0, val);
|
||||
|
@ -509,7 +509,7 @@ void wxToolBar::CreateDisabledImageList()
|
||||
|
||||
// as we can't use disabled image list with older versions of comctl32.dll,
|
||||
// don't even bother creating it
|
||||
if ( wxTheApp->GetComCtl32Version() >= 470 )
|
||||
if ( wxApp::GetComCtl32Version() >= 470 )
|
||||
{
|
||||
// search for the first disabled button img in the toolbar, if any
|
||||
for ( wxToolBarToolsList::compatibility_iterator
|
||||
|
@ -4259,7 +4259,7 @@ void wxTextCtrl::CreateCaret()
|
||||
// FIXME use renderer
|
||||
caret = new wxCaret(this, 1, GetLineHeight());
|
||||
#ifndef __WXMSW__
|
||||
caret->SetBlinkTime(0);
|
||||
wxCaret::SetBlinkTime(0);
|
||||
#endif // __WXMSW__
|
||||
}
|
||||
else
|
||||
|
@ -471,8 +471,7 @@ bool wxWindow::Enable(bool enable)
|
||||
|
||||
bool wxWindow::IsFocused() const
|
||||
{
|
||||
wxWindow *self = wxConstCast(this, wxWindow);
|
||||
return self->FindFocus() == self;
|
||||
return FindFocus() == this;
|
||||
}
|
||||
|
||||
bool wxWindow::IsPressed() const
|
||||
|
Loading…
Reference in New Issue
Block a user