Article View: comp.os.os2.programmer
Article #489Re: Dynamic dialog boxes
From: Dave Briccetti
Date: Sun, 26 Jul 1992 18:01
Date: Sun, 26 Jul 1992 18:01
21 lines
1386 bytes
1386 bytes
ekl@fics.uucp writes: : I have a need for creating dynamic dialog boxes. I can *not* load a : template from the resource file. : : So, my question is, does anyone know of any sample code which : illustrates how to do this? : : Should I create a DLGTEMPLATE-structure and the use WinCreateDlg(), or : would it be easier to use WinCreateWindow() for the box itself, followed : by a WinCreateWindow() for each control? Ideas, anyone? : Eirik: If you're comfortable enough with C and PM to dynamically create those data structures, then the WinCreateDlg approach is a good way to go. I did it years ago, but unfortunately can't find any sample code for you. I'll be happy to look over your code if you can't get it to work. -- Dave Briccetti, Owner, Dave Briccetti & Associates OS/2 Developer/Consultant P.O. Box 1713 Lafayette, CA 94549-7013
Technical Details
Message-ID:
<g2km!cm.daveb@netcom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!Sirius.dfn.de!darwin.sura.net!wupost!spool.mu.edu!umn.edu!csus.edu!netcomsv!mork!davebReferences:
<1992Jul18.164801.25433@fics.uucp>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!Sirius.dfn.de!darwin.sura.net!wupost!spool.mu.edu!umn.edu!csus.edu!netcomsv!mork!daveb From: daveb@netcom.com (Dave Briccetti) Newsgroups: comp.os.os2.programmer Subject: Re: Dynamic dialog boxes Message-ID: <g2km!cm.daveb@netcom.com> Date: 26 Jul 92 18:01:47 GMT Article-I.D.: netcom.g2km!cm.daveb References: <1992Jul18.164801.25433@fics.uucp> Organization: Netcom - Online Communication Services (408 241-9760 guest) Lines: 21