public void ExternalPosition(int x, int y, int w, int h)
{
Position(x, y, w, h, false, true, true, true, false, false);
+ if(style.fixed)
+ {
+ if(state == normal)
+ {
+ normalAnchor = Anchor { left = x, top = y };
+ normalSizeAnchor = SizeAnchor { { w, h } };
+ anchored = false;
+ }
+ }
}
// (w, h): Full window size
case WM_MOVE:
{
int x, y, w, h;
- WINDOWPLACEMENT placement = { 0 };
RECT rcWindow;
- placement.length = sizeof(WINDOWPLACEMENT);
GetWindowRect(windowHandle, &rcWindow);
- GetWindowPlacement(windowHandle, &placement);
x = rcWindow.left - desktopX;
y = rcWindow.top - desktopY;