compile fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -57,8 +57,8 @@ public:
|
|||||||
int GetRange(void) const ;
|
int GetRange(void) const ;
|
||||||
int GetValue(void) const ;
|
int GetValue(void) const ;
|
||||||
|
|
||||||
void SetForegroundColour(const wxColour& col);
|
bool SetForegroundColour(const wxColour& col);
|
||||||
void SetBackgroundColour(const wxColour& col);
|
bool SetBackgroundColour(const wxColour& col);
|
||||||
|
|
||||||
// Backward compatibility
|
// Backward compatibility
|
||||||
#if WXWIN_COMPATIBILITY
|
#if WXWIN_COMPATIBILITY
|
||||||
|
@@ -218,16 +218,24 @@ int wxGaugeMSW::GetValue(void) const
|
|||||||
return (int) SendMessage((HWND) GetHWND(), ZYZG_GETPOSITION, 0, 0);
|
return (int) SendMessage((HWND) GetHWND(), ZYZG_GETPOSITION, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGaugeMSW::SetForegroundColour(const wxColour& col)
|
bool wxGaugeMSW::SetForegroundColour(const wxColour& col)
|
||||||
{
|
{
|
||||||
m_foregroundColour = col ;
|
if ( !wxControl::SetForegroundColour(col) )
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
SendMessage((HWND) GetHWND(), ZYZG_SETFGCOLOR, 0, RGB(col.Red(), col.Green(), col.Blue()));
|
SendMessage((HWND) GetHWND(), ZYZG_SETFGCOLOR, 0, RGB(col.Red(), col.Green(), col.Blue()));
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGaugeMSW::SetBackgroundColour(const wxColour& col)
|
void wxGaugeMSW::SetBackgroundColour(const wxColour& col)
|
||||||
{
|
{
|
||||||
m_backgroundColour = col ;
|
if ( !wxControl::SetBackgroundColour(col) )
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
SendMessage((HWND) GetHWND(), ZYZG_SETBKCOLOR, 0, RGB(col.Red(), col.Green(), col.Blue()));
|
SendMessage((HWND) GetHWND(), ZYZG_SETBKCOLOR, 0, RGB(col.Red(), col.Green(), col.Blue()));
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user