fix location of primitive frames
svn: r3077
This commit is contained in:
parent
550edc0700
commit
361a9dc101
|
@ -42,6 +42,13 @@ Bool wxFrame::Create(wxFrame *Parent, char *title, int x, int y,
|
|||
{
|
||||
wxWnd *cparent = NULL;
|
||||
|
||||
if ((x == -1) && (y == -1)) {
|
||||
RECT r;
|
||||
SystemParametersInfo(SPI_GETWORKAREA, 0, &r, 0);
|
||||
x = r.left;
|
||||
y = r.top;
|
||||
}
|
||||
|
||||
wxbFrame::Create(Parent, title, x, y, width, height, style, name);
|
||||
|
||||
frame_type = style & (wxSDI | wxMDI_PARENT | wxMDI_CHILD);
|
||||
|
|
Loading…
Reference in New Issue
Block a user