I'm using SetWindowPos to change the windows size and I don't want to use another API function to invalidate the window, but I want the window to repaint. Seems to work great except for when the window size doesn't change. Anyone know a way?
invoke SetWindowPos, hWin, 0, 0, 0, esi, esi,\

SWP_NOCOPYBITS or SWP_NOSENDCHANGING or SWP_NOMOVE or \
SWP_NOACTIVATE or SWP_NOOWNERZORDER or SWP_NOZORDER
I'd use MoveWindow, but I don't want to move it. :)
Posted on 2004-10-31 22:17:32 by bitRAKE
Did you ever solve this, bitRAKE?
I had a similar challenge recently and ended up using MoveWindow without actually moving the window but that seems, I dunno, not really logical...

Regards
eGo
Posted on 2004-11-04 17:26:38 by eGo
No, but my current solution is to invalidate the window, so I force SetWindowPos to not redraw and invalid after. I don't have the window location otherwise MoveWindow would have worked, too.
Posted on 2004-11-04 17:45:05 by bitRAKE