Skip to content

Commit

Permalink
chore: change the name of the app window
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKonstantinSh committed Sep 6, 2020
1 parent 5de218d commit 2ce4309
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lab_1/Lab_1/Lab_1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <tchar.h>

LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
TCHAR WinName[] = _T("Main window");
TCHAR WinName[] = _T("Lab_1");

int APIENTRY _tWinMain(HINSTANCE This, HINSTANCE Prev, LPTSTR cmd, int mode)
{
Expand All @@ -21,14 +21,14 @@ int APIENTRY _tWinMain(HINSTANCE This, HINSTANCE Prev, LPTSTR cmd, int mode)
wc.cbWndExtra = 0; // No extra window info.

// Fill window with white color.
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
wc.hbrBackground = (HBRUSH)(WHITE_BRUSH);

// Class registration
if (!RegisterClass(&wc))
return 0;

hWnd = CreateWindow(WinName, // Window name.
_T("Window"), // Window title.
_T("Lab_1"), // Window title.
WS_OVERLAPPEDWINDOW, // Window style.
CW_USEDEFAULT, // X.
CW_USEDEFAULT, // Y.
Expand Down

0 comments on commit 2ce4309

Please sign in to comment.