Hi :)
Is there any advantage of using dialog boxes instead normal windows as main window? And where can I get a good and free resource editor?
Thanks
Is there any advantage of using dialog boxes instead normal windows as main window? And where can I get a good and free resource editor?
Thanks
less code, easier to use a dialog designer than hancoding the window stuff. Normal CreateWindowEx style is more flexible, though...
When using dialogs you have to always remember that you are not returning values to Windows but to the dialog box WndProc. In order to force a return value directly to Windows, for example from WM_NOTIFY you have to use SetWindowLong and specify the DWL_MSGRESULT index. Besides that they are essentially the same though there is a slight speed advantage to windows over dialogs and as f0dder said, CreateWindowEx is slightly more flexible requiring less fixup in the WM_INITDIALOG handler. Personally I only use dialogs, it is easier to visually control the look of your application and reduces development time.