git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40255
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
public:
wxPseudoTransparentFrame(wxWindow* parent = NULL,
{
public:
wxPseudoTransparentFrame(wxWindow* parent = NULL,
- wxWindowID id = -1,
- const wxString& title = wxT(""),
+ wxWindowID id = wxID_ANY,
+ const wxString& title = wxEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
m_MaxHeight=h*2;
m_Amount = alpha;
m_Region.Clear();
m_MaxHeight=h*2;
m_Amount = alpha;
m_Region.Clear();
-// m_Region.Union(0, 0, 1, m_MaxWidth);
+// m_Region.Union(0, 0, 1, m_MaxWidth);
if (m_Amount)
{
for (int y=0; y<m_MaxHeight; y++)
if (m_Amount)
{
for (int y=0; y<m_MaxHeight; y++)
- void OnPaint(wxPaintEvent & event)
+ void OnPaint(wxPaintEvent& WXUNUSED(event))
dc.SetBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_ACTIVECAPTION));
dc.SetPen(*wxTRANSPARENT_PEN);
dc.SetBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_ACTIVECAPTION));
dc.SetPen(*wxTRANSPARENT_PEN);
wxRegionIterator upd(GetUpdateRegion()); // get the update rect list
wxRegionIterator upd(GetUpdateRegion()); // get the update rect list
while (upd)
{
wxRect rect(upd.GetRect());
while (upd)
{
wxRect rect(upd.GetRect());
// Make a window to use for a transparent hint
#if defined(__WXMSW__) || defined(__WXGTK__)
// Make a window to use for a transparent hint
#if defined(__WXMSW__) || defined(__WXGTK__)
- m_hint_wnd = new wxFrame(m_frame, -1, wxEmptyString, wxDefaultPosition, wxSize(1,1),
+ m_hint_wnd = new wxFrame(m_frame, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(1,1),
wxFRAME_TOOL_WINDOW |
wxFRAME_FLOAT_ON_PARENT |
wxFRAME_NO_TASKBAR |
wxNO_BORDER);
m_hint_wnd->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_ACTIVECAPTION));
wxFRAME_TOOL_WINDOW |
wxFRAME_FLOAT_ON_PARENT |
wxFRAME_NO_TASKBAR |
wxNO_BORDER);
m_hint_wnd->SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_ACTIVECAPTION));
#elif defined(__WXMAC__)
// Using a miniframe with float and tool styles keeps the parent
// frame activated and highlighted as such...
#elif defined(__WXMAC__)
// Using a miniframe with float and tool styles keeps the parent
// frame activated and highlighted as such...
- m_hint_wnd = new wxMiniFrame(m_frame, -1, wxEmptyString, wxDefaultPosition, wxSize(1,1),
+ m_hint_wnd = new wxMiniFrame(m_frame, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(1,1),
wxFRAME_FLOAT_ON_PARENT
| wxFRAME_TOOL_WINDOW
| wxCAPTION );
wxFRAME_FLOAT_ON_PARENT
| wxFRAME_TOOL_WINDOW
| wxCAPTION );
// Can't set the bg colour of a Frame in wxMac
wxPanel* p = new wxPanel(m_hint_wnd);
// Can't set the bg colour of a Frame in wxMac
wxPanel* p = new wxPanel(m_hint_wnd);
m_hint_wnd = NULL;
// If we can convert it to a PseudoTransparent window, do so
m_hint_wnd = NULL;
// If we can convert it to a PseudoTransparent window, do so
- m_hint_wnd = new wxPseudoTransparentFrame (m_frame, -1, wxEmptyString, wxDefaultPosition, wxSize(1,1),
+ m_hint_wnd = new wxPseudoTransparentFrame (m_frame, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(1,1),
wxFRAME_TOOL_WINDOW |
wxFRAME_FLOAT_ON_PARENT |
wxFRAME_NO_TASKBAR |
wxNO_BORDER);
wxFRAME_TOOL_WINDOW |
wxFRAME_FLOAT_ON_PARENT |
wxFRAME_NO_TASKBAR |
wxNO_BORDER);
{
if (!AddPane(window, pane_info))
return false;
{
if (!AddPane(window, pane_info))
return false;
wxPaneInfo& pane = GetPane(window);
wxPaneInfo& pane = GetPane(window);
DoDrop(m_docks, m_panes, pane, drop_pos, wxPoint(0,0));
DoDrop(m_docks, m_panes, pane, drop_pos, wxPoint(0,0));
p.frame->Destroy();
p.frame = NULL;
}
p.frame->Destroy();
p.frame = NULL;
}
// make sure there are no references to this pane in our uiparts,
// just in case the caller doesn't call Update() immediately after
// the DetachPane() call. This prevets obscure crashes which would
// make sure there are no references to this pane in our uiparts,
// just in case the caller doesn't call Update() immediately after
// the DetachPane() call. This prevets obscure crashes which would
m_panes.RemoveAt(i);
return true;
}
m_panes.RemoveAt(i);
return true;
}
#endif
m_hint_wnd->SetSize(rect);
m_hint_wnd->Raise();
#endif
m_hint_wnd->SetSize(rect);
m_hint_wnd->Raise();
if (m_hint_fadeamt != m_hint_fademax) // Only fade if we need to
{
if (m_hint_fadeamt != m_hint_fademax) // Only fade if we need to
{
else // Not using a transparent hint window...
{
else // Not using a transparent hint window...
{
if (m_last_hint != rect)
{
// remove the last hint rectangle
if (m_last_hint != rect)
{
// remove the last hint rectangle
// do the drop calculation
DoDrop(m_docks, m_panes, pane, client_pt, action_offset);
}
// do the drop calculation
DoDrop(m_docks, m_panes, pane, client_pt, action_offset);
}
// if the pane is still floating, update it's floating
// position (that we store)
if (pane.IsFloating())
// if the pane is still floating, update it's floating
// position (that we store)
if (pane.IsFloating())
void wxFrameManager::OnRender(wxFrameManagerEvent& evt)
{
wxDC* dc = evt.GetDC();
void wxFrameManager::OnRender(wxFrameManagerEvent& evt)
{
wxDC* dc = evt.GetDC();
#ifdef __WXMAC__
dc->Clear() ;
#endif
#ifdef __WXMAC__
dc->Clear() ;
#endif
-bool wxWindowMSW::HandlePrintClient(WXHDC hDC)
+bool wxWindowMSW::HandlePrintClient(WXHDC WXUNUSED(hDC))
{
// TODO: handle wxBG_STYLE_CUSTOM and/or wxBG_STYLE_COLOUR here so when
// DrawParentThemeBackground() from uxtheme.dll is called we don't get
{
// TODO: handle wxBG_STYLE_CUSTOM and/or wxBG_STYLE_COLOUR here so when
// DrawParentThemeBackground() from uxtheme.dll is called we don't get