Coder's Guild Mailing List

Re: Re: Minimumize box on a toolbar window

Posted by John Yakubik on 2000-04-07

You can catch the minimize and moving messages in WM_SIZING and WM_MOVING.
These messages are sent before the window position is adjusted and are used
for the purpose of giving the application control of the windows final
position.  WM_SIZE and WM_MOVE are sent after the fact, so it can't be
cancelled from there.

> Date: Mon, 03 Apr 2000 18:58:19 PDT
> From: "Kory Spansel" <koryspansel@xxxxxxx.xxx>
> Subject: Re: Minimize box on a toolbar window
>
> What do I call once I catch the WM_SIZE message?  I tried:
>
> GetWindowPlacement(hwnd, &wp);
> wp.rcNormalPosition = winsize;
> SetWindowPlacement(hwnd, &wp);
>
> But that's just a crappy solution.  So I'm not sure, is there an API call
> that I can make to cancel it from changing the size of the window.  I want
> to make is so I can't even move the border like in the good applications.
> hehe.  Thanks.
>
> Kory
>
>
> >From: "Hal Bonnin" <triangle@xxxxxxx.xxx>
> >Reply-To: tcg@xxxx.xx.xx
> >To: koryspansel@xxxxxxx.xxx
> >Subject: Re: Minimize box on a toolbar window
> >Date: Mon, 3 Apr 2000 14:29:06 +0200 (MEST)
> >
> >in the windows handling code you can catch the WM_SIZE and prevent it
from
> >happening
> >
> >located in the WinProc() function or set up a function from MSC6++ to
catch
> >the WM_SIZE and the WM_MOVE calls.
> >
> >> >To signoff send a mail to listserver@xxxx.xx.xx with
> >   "signoff tcg" in the body of your message.
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> > Sponsored by Wrox Press - www.wrox.com. Programmer to Programmer (TM)
> To signoff send a mail to listserver@xxxx.xx.xx with
>   "signoff tcg" in the body of your message.


Sponsored by Wrox Press - www.wrox.com. Programmer to Programmer (TM)
To signoff send a mail to listserver@xxxx.xx.xx with 
  "signoff tcg" in the body of your message.