absence_thelab

view src/nwt/startup.h @ 0:1cffe3409164

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 23 Oct 2014 01:46:07 +0300
parents
children
line source
1 #ifndef _STARTUP_H_
2 #define _STARTUP_H_
4 #include <windows.h>
5 #include "nucwin.h"
7 int main();
8 void RegisterWindowClasses();
10 int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR CmdLine, int ShowCmd) {
11 Arguments = CmdLine;
12 RegisterWindowClasses();
13 return main();
14 }
16 void RegisterWindowClasses() {
17 WNDCLASSEX wc;
18 wc.cbSize = sizeof(WNDCLASSEX);
19 wc.cbClsExtra = 0;
20 wc.cbWndExtra = 0;
21 wc.hbrBackground = (HBRUSH)COLOR_WINDOW;
22 wc.hCursor = LoadCursor(NULL, IDC_ARROW);
23 wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
24 wc.hIconSm = wc.hIcon;
25 wc.hInstance = GetModuleHandle(0);
26 wc.lpfnWndProc = MainHandler;
27 wc.lpszClassName = "NucWin";
28 wc.lpszMenuName = NULL;
29 wc.style = CS_HREDRAW | CS_VREDRAW;
30 RegisterClassEx(&wc);
31 }
33 #endif // _STARTUP_H_