Re: ? Maximized detection

From: Alec S. (a_at_a.com)
Date: 02/29/04


Date: Sun, 29 Feb 2004 01:03:03 -0500


    Yes, that works great. Thanks. :)

--
Alec S.
alec @ synetech . cjb . net
"Frank Hickman" <fhickman_nosp@m_noblesoft.com> wrote in message
news:RpSdnehin7BU5tzdRVn-jw@comcast.com...
> How about something like this...
>
> BOOL IsMaximized( CWnd* pWnd )
> {
>     ASSERT( pWnd && ::IsWindow( pWnd->GetSafeHwnd() ) );
>     WINDOWPLACEMENT wp;
>     pWnd->GetWindowPlacement( &wp );
>     return (wp.showCmd == SW_SHOWMAXIMIZED) ? TRUE:FALSE;
> }
>
>
> HTH
> --
> ============
> Frank Hickman
> NobleSoft, Inc.
> ============
> Replace the _nosp@m_ with @ to reply.
>
>
> "Alec S." <a@a.com> wrote in message
> news:%23ybsVxn$DHA.684@tk2msftngp13.phx.gbl...
> >     Hi,
> >
> >     I've got a dialog that I have set up with a menubar and statusbar.
I
> > have made it so that the user can show or hide either.  What I need now
is
> > to detect if the dialog is maximized when the user shows/hides either
bar
> so
> > that I can adjust the dialog to still be maximized.
> >
> >
> > thanks.
> >
> > --
> > Alec S.
> > alec @ synetech . cjb . net
> >
> >
> >
> >
>
>


Relevant Pages


Loading