Hi Charles,
I (hopefully) managed to add some improvements in Dialogs.inc to simplify the creation of dialogs. This would now be the way e.g. for a modal dialog:
Dialog( 0, 0, 150, 100, "Main Dialog",
WS_OVERLAPPED or WS_SYSMENU or DS_CENTER )
DefPushButton( "Go", 1000, 30, 70, 40, 12 )
PushButton( "Close", IDCANCEL, 80, 70, 40, 12 )
CreateModalDialog( null, @MainDialogProc, 0 )
The difference is: there is no need to specify the count of the controls in Dialog(), and there is no need to allocate memory for a lpdt structure, and lpdt does not have to be specified as a parameter in Dialog() or CreateModal/ModelessDialog(). This should all be handled in Dialogs.inc. In Dialogs.inc I now included Corewin instead of Minwin, removed the namespace option and added some often used constants and added MSFTEDIT_CLASS for Richedit ver 4.1 (Msftedit.dll). I also removed WS_GROUP as a default style in the controls, this seems not to be the best way.
Attached are the modified Dialogs.inc file and the adapted WinDynDialogs examples (plus one more by MichaelW, Grouping.o2bas) which can be run in 32-bit mode and also be compiled to 64-bit exes. In my opinion the examples look much clearer now.
There are still some items which could be added to Dialogs.inc. Until now I have not found an example using creation-data, otherwise I would try to add this feature too.
Roland
Edit: Small typo in Listview.o2bas; line 201 should be:
Dialog(0,0,144,77, "About Listview Sample",