Some improovements.

This commit is contained in:
2022-02-28 20:37:18 +03:00
parent fe10e4ec72
commit bad4d37e7a
7 changed files with 32 additions and 8 deletions

View File

@@ -1,7 +1,9 @@
// wCenterWindow
// wCenterWindow.cpp
//
#include "framework.h"
#include "wCenterWindow.h"
#include "Version.h"
#define KEY_I 0x49
#define KEY_C 0x43
@@ -125,6 +127,11 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmd
wcex.lpszClassName = szClass;
wcex.hIconSm = wcex.hIcon;
hIcon = wcex.hIcon;
if (!RegisterClassExW(&wcex))
{
ShowError(IDS_ERR_CLASS);
return FALSE;
}
hWnd = CreateWindowExW(0, szClass, szTitle, 0, 0, 0, 0, 0, NULL, NULL, hInstance, NULL);
if (!hWnd)