jason@media-lab.MEDIA.MIT.EDU (Jason A. Kinchen) (12/04/90)
I need local data associated with dialog boxes. I know about registering classes with extra bytes associated with the windows created and then using GetWindowLong and SetWindowLong. But can I do this using modeless dialog boxes? In the SDK Reference Vol. II it talks about using the CLASS directive in the resource script and setting the cbWndExtra field to DLGWINDOWEXTRA. Can I set it to bigger than this? Has anyone tried this? Is there any other way I can get local data associated with local dialog boxes? Any help or pointers appreciated. -- Jason Kinchen jason@media-lab.MIT.EDU
johnc@plxsun.uucp (John Ciccarelli) (12/05/90)
In article <4255@media-lab.MEDIA.MIT.EDU> jason@media-lab.MEDIA.MIT.EDU (Jason A. Kinchen) writes: >Is there any other way I can get local data associated with >local dialog boxes? To attach data to *any* window, not just a modal or modeless dialog, you can use SetProp(). You give it a window handle and a value, which can be the data itself if it's just a number, or the handle to the data. To get the handle, just call GetProp(). I've used this technique extensively since Windows 1.03. >Jason Kinchen >jason@media-lab.MIT.EDU John Ciccarelli Plexus Software, 5200 Great America Pkwy, Suite 200, Santa Clara CA 95054 email: ...sun!plx!johnc, voice: 408-982-4842, fax: 408-727-4864