MCPcopy Create free account
hub / github.com/WheretIB/nullc / MyRegisterClass

Function MyRegisterClass

SuperCalc.cpp:588–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588WORD MyRegisterClass(HINSTANCE hInstance)
589{
590 WNDCLASSEX wcex;
591 memset(&wcex, 0, sizeof(WNDCLASSEX));
592 wcex.cbSize = sizeof(WNDCLASSEX);
593 wcex.style = 0;
594 wcex.lpfnWndProc = (WNDPROC)WndProc;
595 wcex.cbClsExtra = 0;
596 wcex.cbWndExtra = 0;
597 wcex.hInstance = hInstance;
598 wcex.hIcon = LoadIcon(hInstance, (LPCTSTR)IDI_SUPERCALC);
599 wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
600 wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW);
601 wcex.lpszMenuName = (LPCTSTR)IDC_SUPERCALC;
602 wcex.lpszClassName = szWindowClass;
603 wcex.hIconSm = LoadIcon(wcex.hInstance, (LPCTSTR)IDI_SMALL);
604
605 return RegisterClassEx(&wcex);
606}
607
608void AddTabWithFile(const char* filename, HINSTANCE hInstance)
609{

Callers 1

WinMainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected