Patch level : 10.0

Files correlati     : xvaga.dll
Ricompilazione Demo : [ ]
Commento            :
Migliorato calcolo client area


git-svn-id: svn://10.65.10.50/trunk@17405 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2008-10-10 08:51:36 +00:00
parent 159544e698
commit d03e1cd76c

View File

@ -4228,8 +4228,8 @@ void xvt_vobj_maximize(WINDOW win)
void xvt_vobj_minimize(WINDOW win)
{
wxFrame* pMain = wxDynamicCast((wxObject*)win, wxFrame);
if (pMain == _task_win)
_task_win->Iconize();
if (pMain != NULL)
pMain->Iconize();
else
SORRY_BOX();
}
@ -4262,10 +4262,10 @@ void xvt_vobj_set_attr(WINDOW win, long data, long value)
}
}
void xvt_vobj_set_data(WINDOW win, long AppData)
void xvt_vobj_set_data(WINDOW win, long app_data)
{
CAST_TWIN(win, w);
w._app_data = AppData;
w._app_data = app_data;
}
void xvt_vobj_set_enabled(WINDOW win, BOOLEAN enabled)
@ -4369,8 +4369,6 @@ WINDOW xvt_win_create(WIN_TYPE wtype, const RCT* rct_p, const char* title, int m
if (style & wxVSCROLL)
w->SetScrollbar(wxVERTICAL, 0, 1, 100);
// xvt_vobj_move((WINDOW)w, rct_p); // Sembra inutile
if (win_flags & WSF_DISABLED)
w->Disable();
else
@ -4388,6 +4386,8 @@ WINDOW xvt_win_create(WIN_TYPE wtype, const RCT* rct_p, const char* title, int m
e.type = E_CREATE; // Serve a poco, ma fa' lo stesso
eh((WINDOW)w, &e);
xvt_vobj_move((WINDOW)w, rct_p); // Forza la giusta dimensione della client area
return (WINDOW)w;
}