MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / InitApplication

Function InitApplication

src/Notepad2.c:443–457  ·  view source on GitHub ↗

============================================================================= InitApplication()

Source from the content-addressed store, hash-verified

441//
442//
443BOOL InitApplication ( HINSTANCE hInstance )
444{
445 WNDCLASS wc;
446 wc.style = CS_BYTEALIGNWINDOW | CS_DBLCLKS;
447 wc.lpfnWndProc = ( WNDPROC ) MainWndProc;
448 wc.cbClsExtra = 0;
449 wc.cbWndExtra = 0;
450 wc.hInstance = hInstance;
451 wc.hIcon = LoadIcon ( hInstance, MAKEINTRESOURCE ( IDR_MAINWND ) );
452 wc.hCursor = LoadCursor ( NULL, IDC_ARROW );
453 wc.hbrBackground = ( HBRUSH ) ( COLOR_3DFACE + 1 );
454 wc.lpszMenuName = MAKEINTRESOURCE ( IDR_MAINWND );
455 wc.lpszClassName = wchWndClass;
456 return RegisterClass ( &wc );
457}
458
459
460//=============================================================================

Callers 1

WinMainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected