said:
>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
> )
> ) ;
I did a bit of review of the fm/2 code and the PM refs and this works as I
surmised at the meeting. You are saving and restoring the presentation
parameters that are known to the frame window. Child windows will inherit
these parameters via the parent chain unless overridden. Presentation
parameters unique to specific child windows will need special handling.
In the case of fm/2, WM_PRESPARAMCHANGED messages trigger code that stores
the child window specfic parameters to the private ini.
I suspect once you get your font code working to support multiple
typefaces, you will need to do something similar.
Regards,
Steven
--
----------------------------------------------------------------------
"Steven Levine" MR2/ICE 2.67 #10183 Warp/eCS/DIY/14.103a_W4
www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST)
----------------------------------------------------------------------
=====================================================
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".
=====================================================
<< Previous 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.