From: mikew on
What happens when you click the border of a window and resize it? As
in, what functions/messages get sent to the window?

Here's why I ask: I'm resizing a window using MoveWindow or
SetWindowPos, however, this particular game window wont redraw itself.
I have also tried using RedrawWindow on it afterwards, but it still
doesn't want to redraw.

HOWEVER, if I click any border of this window, it will then redraw
itself. So I'm trying to figure out how I can do this
programmatically. I have tried doing PostMessage WM_ENTERSIZEMOVE and
WM_EXITSIZEMOVE but that doesn't work either.

Is there some type of Spy program that I can use to see what happens
when I click the border to resize?

Thanks for any help.
From: Robert Crandal on
I thought "WM_SIZE" was one of the main messages that
get sent to a window during a resize operation?


"mikew" <mikew3456(a)gmail.com> wrote in message
news:019d8197-c007-408c-9cf9-28bb151cb7b9(a)g28g2000yqh.googlegroups.com...
> What happens when you click the border of a window and resize it? As
> in, what functions/messages get sent to the window?
>
> Here's why I ask: I'm resizing a window using MoveWindow or
> SetWindowPos, however, this particular game window wont redraw itself.
> I have also tried using RedrawWindow on it afterwards, but it still
> doesn't want to redraw.
>
> HOWEVER, if I click any border of this window, it will then redraw
> itself. So I'm trying to figure out how I can do this
> programmatically. I have tried doing PostMessage WM_ENTERSIZEMOVE and
> WM_EXITSIZEMOVE but that doesn't work either.
>
> Is there some type of Spy program that I can use to see what happens
> when I click the border to resize?
>
> Thanks for any help.

From: mikew on
Yes, But if WM_SIZE worked, then MoveWindow or SetWindowPos would
work, because afaik, they send WM_SIZE

I think I need to send WM_SIZING, but when I try to PostMessage it, it
doesn't register. Does anyone know an API call which will send
WM_SIZING?

THanks





On Mar 9, 8:57 pm, "Robert Crandal" <nob...(a)gmail.com> wrote:
> I thought "WM_SIZE" was one of the main messages that
> get sent to a window during a resize operation?
>
> "mikew" <mikew3...(a)gmail.com> wrote in message
>
> news:019d8197-c007-408c-9cf9-28bb151cb7b9(a)g28g2000yqh.googlegroups.com...
>
> > What happens when you click the border of a window and resize it? As
> > in, what functions/messages get sent to the window?
>
> > Here's why I ask: I'm resizing a window using MoveWindow or
> > SetWindowPos, however, this particular game window wont redraw itself.
> > I have also tried using RedrawWindow on it afterwards, but it still
> > doesn't want to redraw.
>
> > HOWEVER, if I click any border of this window, it will then redraw
> > itself. So I'm trying to figure out how I can do this
> > programmatically. I have tried doing PostMessage WM_ENTERSIZEMOVE and
> > WM_EXITSIZEMOVE but that doesn't work either.
>
> > Is there some type of Spy program that I can use to see what happens
> > when I click the border to resize?
>
> > Thanks for any help.

From: Paul N on
On 10 Mar, 00:02, mikew <mikew3...(a)gmail.com> wrote:
> Here's why I ask: I'm resizing a window using MoveWindow or
> SetWindowPos, however, this particular game window wont redraw itself.
> I have also tried using RedrawWindow on it afterwards, but it still
> doesn't want to redraw.

If your problem is that you want to redraw the window after using
MoveWindow or SetWindowPos, might it be easier to ask for that
directly, by doing InvalidateRect, possibly followed by UpdateWindow?
From: r_z_aret on
On Tue, 9 Mar 2010 16:02:31 -0800 (PST), mikew <mikew3456(a)gmail.com>
wrote:

>What happens when you click the border of a window and resize it? As
>in, what functions/messages get sent to the window?

My apps get WM_SIZE and WM_SIZING messages when a user resizes a
window.


>
>Here's why I ask: I'm resizing a window using MoveWindow or
>SetWindowPos, however, this particular game window wont redraw itself.
>I have also tried using RedrawWindow on it afterwards, but it still
>doesn't want to redraw.

I infer that you have no control over the code for the game window.
But, as PaulN said, you can get a handle to the game window and then
use InvalidateRect. I have, in desperation, sometimes hidden and then
reshown a window to force it to repaint.

>
>HOWEVER, if I click any border of this window, it will then redraw
>itself. So I'm trying to figure out how I can do this
>programmatically. I have tried doing PostMessage WM_ENTERSIZEMOVE and
>WM_EXITSIZEMOVE but that doesn't work either.
>
>Is there some type of Spy program that I can use to see what happens
>when I click the border to resize?

http://social.msdn.microsoft.com/Forums/en/vcgeneral/thread/8d06750a-8d6c-4aca-9896-6ca49a631c07

>
>Thanks for any help.

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 400
Boston, MA 02116
www.penfact.com
Useful reading (be sure to read its disclaimer first):
http://catb.org/~esr/faqs/smart-questions.html