Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GetLastActivePopup

283 views
Skip to first unread message

Sebastian Bargmann

unread,
Apr 1, 1997, 3:00:00 AM4/1/97
to

Hi,

What exactly does GetLastActivePopup do? The Win32 reference says "The
return value identifies the most recently active pop-up window", but what
is a pop-up window in this context - simply a child window?

Thanks in advance,

Sebastian

Chris Marriott

unread,
Apr 1, 1997, 3:00:00 AM4/1/97
to

In article <01bc3ebd$f9e7f280$1407e482@p150>, Sebastian Bargmann
<seb...@cybernet.dk> writes

>What exactly does GetLastActivePopup do? The Win32 reference says "The
>return value identifies the most recently active pop-up window", but what
>is a pop-up window in this context - simply a child window?

No. There are three main types of windows you can create:

- Overlapped windows - the normal "main window" for an application.
- Child windows, confined to the "client area" of their parent.
- Popup windows - "owned" windows NOT confined to their parent's client
area.

ie a popup window is a window with the WS_POPUP window style. Dialog
boxes are the most commonly-encountered popup windows.

Chris

----------------------------------------------------------------
Chris Marriott, SkyMap Software, U.K. e-mail: ch...@skymap.com
Creators of fine astronomy software for Windows.
For full details, visit our web site at http://www.skymap.com


Bernd Luevelsmeyer

unread,
Apr 2, 1997, 3:00:00 AM4/2/97
to

Sebastian Bargmann wrote:
>
> Hi,

>
> What exactly does GetLastActivePopup do? The Win32 reference says "The
> return value identifies the most recently active pop-up window", but what
> is a pop-up window in this context - simply a child window?
>
> Thanks in advance,
>
> Sebastian

Hi,

a popup-window is a window with the style WS_POPUP.
This is often used for dialog boxes, but can be used
for any ordinary toplevel window. The difference to
WS_OVERLAPPED is that a caption is not required.
Child windows can not have this style since WS_CHILD
and WS_POPUP cannot be combined.

The purpose of the function GetLastActivePopup() is
to find out the window with which the user is working
at the moment, given the application's main window.

Greetings, Bernd

0 new messages