JJ
2014-11-24 02:16:12 UTC
Hello.
I'm reading theForger's Win32 tutorial, up to the Dialog box chapter.
First they create a window, using RgisterClassEx and CreateWindowEx, and
then they teach to create a dialog box.
I had just finnished creating a dialog box, and then I went a little
further and removed the RegisterWindowEx at all, stuff, leaving just the
DialogBox(), and removed the message loop as well (so that when the
dialog is closed the app ends too).
My question is: given that it is much simpler to code an app like this,
why should I create my own window class? I perfectly understand that for
serious apps this may not be enough. But given that every tutorial on
earth says that the "minimal win32 gui app" is an app that calls
RegisterClassEx it makes me feel if I'm seeng things corretly.
Parhaps my dialog-only app only works in Wine... :-)
Thanks,
JJ
I'm reading theForger's Win32 tutorial, up to the Dialog box chapter.
First they create a window, using RgisterClassEx and CreateWindowEx, and
then they teach to create a dialog box.
I had just finnished creating a dialog box, and then I went a little
further and removed the RegisterWindowEx at all, stuff, leaving just the
DialogBox(), and removed the message loop as well (so that when the
dialog is closed the app ends too).
My question is: given that it is much simpler to code an app like this,
why should I create my own window class? I perfectly understand that for
serious apps this may not be enough. But given that every tutorial on
earth says that the "minimal win32 gui app" is an app that calls
RegisterClassEx it makes me feel if I'm seeng things corretly.
Parhaps my dialog-only app only works in Wine... :-)
Thanks,
JJ