The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: digelo on March 01, 2010, 07:53:52 AM

Title: dlgbox ? window?
Post by: digelo on March 01, 2010, 07:53:52 AM
Whats defrent between using a dlgbox as main or using windows that we make by WindowCreatex ?
Title: Re: dlgbox ? window?
Post by: MichaelW on March 01, 2010, 08:41:19 AM
Try comparing \masm32\examples\exampl01\oldstyle to \masm32\examples\dialogs\simple. A dialog is generally easier to code, particularly if it is a modal dialog where the system dialog box manager provides the message loop.
Title: Re: dlgbox ? window?
Post by: digelo on March 01, 2010, 08:51:42 AM
So its ok if i use a dialogbox as my main, there is no limit for me?
Title: Re: dlgbox ? window?
Post by: MichaelW on March 01, 2010, 09:09:44 AM
For small simple applications I would use a dialog. With a dialog you can do at least most things that you can do with a normal application window, but for some things the additional code required for the dialog will eliminate the advantage of using a dialog.
Title: Re: dlgbox ? window?
Post by: digelo on March 01, 2010, 09:37:09 AM
My problem is im using RadAsm as editor, is there any way for using that visual abilities in designing forms for Windows apps too?  or i can only use them in dialogboxes?

hmm i dunno if its right that i asked this here   :toothy
Title: Re: dlgbox ? window?
Post by: hutch-- on March 01, 2010, 10:30:44 AM
 :bg

No problem in asking but you will need someone who is familiar with RadAsm. Basics hold true however you code it, a dialog is fine for simple interface requirements but you can do more with a CreateWindowEx()/WndProc() but at the expense of more work.
Title: Re: dlgbox ? window?
Post by: digelo on March 01, 2010, 12:48:57 PM
Ty  :red
Title: Re: dlgbox ? window?
Post by: hoverlees on March 04, 2010, 09:28:38 AM
You can create a child dialog box,and then add it into your window. ::)