home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!anagld!sammy
- From: sammy@anagld.analytics.com (Sam Blackburn)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Re: Dialog instance data...
- Message-ID: <1689@anagld.analytics.com>
- Date: 10 Nov 92 01:15:37 GMT
- References: <1992Nov9.161604.2770@ists.ists.ca>
- Distribution: na
- Organization: Computer Sciences Corporation - Systems Engineering Division
- Lines: 23
-
- carty@ists.ists.ca (Ed Carty) writes:
-
-
- >9 Nov. 1992
-
- >Anyone walked this road before...
- >I'd like to encapsulate instance data with a modeless dialog. I'm creating
- >the dialog with CreateDialogParam(), passing initialization data via the
- >lParam.
-
- Are you passing a handle to a data structure? If so you can simply put a
- property on the dialogbox window.
-
- SetProp( dialog_box_handle, "Instance Data", instance_data_handle );
- and to retrieve it:
- instance_data_handle = GetProp( dialog_box_handle, "Instance Data" );
-
- Properties are a great (and portable) way of holding per-instance or global
- data. They work especially well with data striuctures that are GlobalAlloc'd.
-
- Hope This Helps . . .
-
- sammy@sed.csc.com
-