I'm an experienced GUI C# programmer and have some experience with C/C++ for CLI only.
I'm teaching myself native Windows API using C++. I am able to create windows with buttons and input fields, etc; perform actions when buttons are clicked and text is typed, etc.
However, everything I've done so far has been in a single c or cpp file without using classes.
In C#, I would create classes which extend Form
:
public class MyForm : Form { }
and then open it like this:
MyForm myForm = new MyForm();
myForm.ShowDialog();
or:
new MyForm().ShowDialog();
or:
Application.Run(new MyForm());
however using my flat-file c/cpp method I just have a WinMain which registers my window class, creates the window, and the message loop just churns away. It's not awful for small programs while I'm learning the very basics, but obviously I would want to have things laid out a little nicer like I do in C#.
I haven't found many tutorials or code samples for native Windows API that show how this is generally done.
Can someone please either post some skeleton code and/or link to a tutorial which explains how this is generally accomplished?