git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40793
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if wxUSE_MINIFRAME
#include "wx/minifram.h"
#if wxUSE_MINIFRAME
#include "wx/minifram.h"
-#include "wx/settings.h"
+ #include "wx/settings.h"
#include "wx/dcscreen.h"
#endif
#include "wx/dcscreen.h"
#endif
win->m_width, win->m_height);
int style = win->GetWindowStyle();
win->m_width, win->m_height);
int style = win->GetWindowStyle();
wxClientDC dc(win);
// Hack alert
dc.m_window = pizza->bin_window;
wxClientDC dc(win);
// Hack alert
dc.m_window = pizza->bin_window;
if (style & wxRESIZE_BORDER)
{
dc.SetBrush( *wxGREY_BRUSH );
if (style & wxRESIZE_BORDER)
{
dc.SetBrush( *wxGREY_BRUSH );
int y = (int)gdk_event->y;
int x = (int)gdk_event->x;
int y = (int)gdk_event->y;
int x = (int)gdk_event->x;
if ((style & wxRESIZE_BORDER) &&
(x > win->m_width-14) && (y > win->m_height-14))
{
if ((style & wxRESIZE_BORDER) &&
(x > win->m_width-14) && (y > win->m_height-14))
{
org_x + x,
org_y + y,
0);
org_x + x,
org_y + y,
0);
wxClientDC dc(win);
dc.SetFont( *wxSMALL_FONT );
int height = dc.GetCharHeight() + 1;
wxClientDC dc(win);
dc.SetFont( *wxSMALL_FONT );
int height = dc.GetCharHeight() + 1;
if (g_blockEventsOnDrag) return FALSE;
gdk_window_set_cursor( widget->window, NULL );
if (g_blockEventsOnDrag) return FALSE;
gdk_window_set_cursor( widget->window, NULL );
//-----------------------------------------------------------------------------
extern "C" {
//-----------------------------------------------------------------------------
extern "C" {
gtk_window_motion_notify_callback( GtkWidget *widget, GdkEventMotion *gdk_event, wxMiniFrame *win )
{
gtk_window_motion_notify_callback( GtkWidget *widget, GdkEventMotion *gdk_event, wxMiniFrame *win )
{
wxapp_install_idle_handler();
if (!win->m_hasVMT) return FALSE;
wxapp_install_idle_handler();
if (!win->m_hasVMT) return FALSE;
}
int style = win->GetWindowStyle();
}
int style = win->GetWindowStyle();
int x = (int)gdk_event->x;
int y = (int)gdk_event->y;
int x = (int)gdk_event->x;
int y = (int)gdk_event->y;
if (!win->m_isDragging)
{
if (style & wxRESIZE_BORDER)
if (!win->m_isDragging)
{
if (style & wxRESIZE_BORDER)
win->m_oldX = x - win->m_diffX;
win->m_oldY = y - win->m_diffY;
win->m_oldX = x - win->m_diffX;
win->m_oldY = y - win->m_diffY;