@@ -177,11 +177,11 @@ int main()
177
177
windowClass.lpfnWndProc = wndProc;
178
178
windowClass.cbClsExtra = 0 ;
179
179
windowClass.cbWndExtra = 0 ;
180
- windowClass.hInstance = NULL ;
181
- windowClass.hIcon = NULL ;
182
- windowClass.hCursor = NULL ;
180
+ windowClass.hInstance = nullptr ;
181
+ windowClass.hIcon = nullptr ;
182
+ windowClass.hCursor = nullptr ;
183
183
windowClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1 );
184
- windowClass.lpszMenuName = NULL ;
184
+ windowClass.lpszMenuName = nullptr ;
185
185
windowClass.lpszClassName = className.c_str ();
186
186
187
187
RegisterClassA (&windowClass);
@@ -195,10 +195,10 @@ int main()
195
195
int windowX = max (0 , (screenWidth - windowWidth) / 2 );
196
196
int windowY = max (0 , (screenHeight - windowHeight) / 2 );
197
197
198
- CreateWindowExA (0 , className.c_str (), windowTitle.c_str (), WS_VISIBLE | WS_CAPTION | WS_SYSMENU, windowX, windowY, windowWidth, windowHeight, NULL , NULL , NULL , NULL );
198
+ CreateWindowExA (0 , className.c_str (), windowTitle.c_str (), WS_VISIBLE | WS_CAPTION | WS_SYSMENU, windowX, windowY, windowWidth, windowHeight, nullptr , nullptr , nullptr , nullptr );
199
199
200
200
MSG msg;
201
- while (GetMessageA (&msg, NULL , 0u , 0u ) != 0 )
201
+ while (GetMessageA (&msg, nullptr , 0u , 0u ) != 0 )
202
202
{
203
203
TranslateMessage (&msg);
204
204
DispatchMessageA (&msg);
@@ -389,9 +389,9 @@ static HWND registerField(HWND window)
389
389
239 ,
390
390
48 ,
391
391
window,
392
- NULL ,
393
- NULL ,
394
- NULL );
392
+ nullptr ,
393
+ nullptr ,
394
+ nullptr );
395
395
}
396
396
397
397
static void registerButton (HWND window, int id, string text, int gridX, int gridY)
@@ -410,6 +410,6 @@ static void registerButton(HWND window, int id, string text, int gridX, int grid
410
410
buttonHeight,
411
411
window,
412
412
reinterpret_cast <HMENU>(id),
413
- NULL ,
414
- NULL );
413
+ nullptr ,
414
+ nullptr );
415
415
}
0 commit comments