SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-Programming Mailing List Archives

Return to [ 20 | May | 2006 ]

>> Next Message >>


Date: Sat, 20 May 2006 19:57:22 -0700
From: "Bob" <tt336a5u02@sneakemail.com >
Reply-To: scoug-programming@scoug.com
To: scoug-programming@scoug.com
Subject: SCOUG-Programming: Saving the presentation parameters

Steven here is the code I use to save and restore the presentation parameters.

Looking at the code in my program I save the presentation parameters when the
WM_SAVEAPPLICATION message is processed.

rc = WinStoreWindowPos( addr( SudokuAppName ) /* application name */
, addr( SudokuPPName ) /* application key */
, WinQueryWindow( WindowHandle
, QW_PARENT
)
) ;

The window handle is the parent of the window that is processing the message.
Since this is the top client window the parent is the frame window.

In the MAIN procedure after the WinCreateStdWindow call I do

rc = WinRestoreWindowPos( addr( SudokuAppName ) /* application name */
, addr( SudokuPPName ) /* application key */
, FrameHandle
) ;

The frame handle is returned by the WinCreateStdWindow call.

So both of these messages get and restore the data to the frame window which is
the top window, the presentation parameters are inherited by all of the child
windows.

--
Robert Blair

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".

For problems, contact the list owner at
"postmaster@scoug.com".

=====================================================


>> Next Message >>

Return to [ 20 | May | 2006 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.