/////////////////////////////////////////////////////////////////////////////
-// Name: control.h
+// Name: wx/msw/control.h
// Purpose: wxControl class
// Author: Julian Smart
// Modified by:
#ifndef _WX_CONTROL_H_
#define _WX_CONTROL_H_
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "control.h"
-#endif
-
#include "wx/dynarray.h"
// General item class
bool ProcessCommand(wxCommandEvent& event);
// MSW-specific
-#ifdef __WIN95__
virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
-#endif // Win95
// For ownerdraw items
virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *WXUNUSED(item)) { return false; };
// default handling of WM_CTLCOLORxxx: this is public so that wxWindow
// could call it
- virtual WXHBRUSH MSWControlColor(WXHDC pDC);
+ virtual WXHBRUSH MSWControlColor(WXHDC pDC, WXHWND hWnd);
protected:
// choose the default border for this window
// common part of the 3 functions above: pass wxNullColour to use the
// appropriate background colour (meaning ours or our parents) or a fixed
// one
- virtual WXHBRUSH DoMSWControlColor(WXHDC pDC, wxColour colBg);
+ virtual WXHBRUSH DoMSWControlColor(WXHDC pDC, wxColour colBg, WXHWND hWnd);
// this is a helper for the derived class GetClassDefaultAttributes()
// implementation: it returns the right colours for the classes which