Commit ed55def8 authored by LYMB Demo's avatar LYMB Demo
Browse files

rezize uses border width

parent 86728993
......@@ -198,13 +198,11 @@ void vtkWin32OglrRenderWindow::SetSize(int x, int y)
{
resizing = 1;
SetWindowPos(this->WindowId,HWND_TOP,0,0,x,y,SWP_NOMOVE | SWP_NOZORDER);
SetWindowPos(this->WindowId,HWND_TOP,0,0,
x+2*GetSystemMetrics(SM_CXBORDER),
y+2*GetSystemMetrics(SM_CYBORDER) +GetSystemMetrics(SM_CYMENUSIZE),
SWP_NOMOVE | SWP_NOZORDER);
resizing = 0;
//HDC adc;
//adc = GetDC(this->WindowId);
//SetWindowExtEx(adc,x,y,NULL);
//ReleaseDC(this->WindowId,adc);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment