compile fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-05-10 22:40:05 +00:00
parent ef58b38276
commit 93089472db
2 changed files with 25 additions and 17 deletions

View File

@@ -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

View File

@@ -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;
} }