First of all, it's late, so no laughing. I'm tired, so I tried to do something for fun. In Win32, you have several "defines" that you often have to memorize to use, or look at a reference constantly to see what options you have available. For instance, a message box's button. I should type down MB.MB_OK instead of the normal MB_OK. I tried this in a struct, but I got no luck with it. Obviously, I can't put defines in a struct, so I tried using its default data type and hexidecimal value. If this is somehow fixed, it'd be a great start to a helper library later. As I said, I'm tired. It's just an expimentation since I'm a C# vetinarian, and I got use to typing dots which really did help sort things out. Anyway, thanks for smirking.
Code:
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
struct MB_Buttons
{
UINT MB_OK = 0x00000000L;
UINT MB_OKCANCEL = 0x00000001L;
UINT MB_ABORTRETRYIGNORE = 0x00000002L;
UINT MB_YESNOCANCEL = 0x000000003;
UINT MB_YESNO = 0x000000004;
UINT MB_RETRYCANCEL = 0x000000005;
} MB;
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int ncmdshow)
{
MessageBox(NULL, "Hello World!", "Win32 API Practice", MB.MB_OK | MB_ICONEXCLAMATION);
MessageBeep(MB_ICONASTERISK);
return 0;
}