Skip to content

Commit 62f72a6

Browse files
committed
MINMAXINFO pointer should be declared FAR*. Tidied up whitespace.
1 parent fe5fbc6 commit 62f72a6

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

AboutDlg.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ LONG lParam;
1313
switch (uMsg)
1414
{
1515
case WM_COMMAND:
16-
{
16+
{
1717
WORD id = wParam;
18-
18+
1919
switch (id)
2020
{
2121
case IDOK:
@@ -38,12 +38,12 @@ LONG lParam;
3838
/* Show our "about" dialog */
3939
void ShowAboutDialog(owner)
4040
HWND owner;
41-
{
41+
{
4242
/* Create dialog callback thunk */
43-
FARPROC aboutProc = MakeProcInstance(AboutDialogProc, g_hInstance);
44-
45-
DialogBox(g_hInstance, MAKEINTRESOURCE(IDD_ABOUTDIALOG), owner, aboutProc);
46-
43+
FARPROC aboutProc = MakeProcInstance(AboutDialogProc, g_hInstance);
44+
45+
DialogBox(g_hInstance, MAKEINTRESOURCE(IDD_ABOUTDIALOG), owner, aboutProc);
46+
4747
/* Free dialog callback thunk */
48-
FreeProcInstance(aboutProc);
48+
FreeProcInstance(aboutProc);
4949
}

MainWnd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ LONG lParam;
4545
case WM_GETMINMAXINFO:
4646
{
4747
/* Prevent our window from being sized too small */
48-
MINMAXINFO *minMax = (MINMAXINFO*) lParam;
48+
MINMAXINFO FAR* minMax = (MINMAXINFO FAR*) lParam;
4949
minMax->ptMinTrackSize.x = 220;
5050
minMax->ptMinTrackSize.y = 110;
5151

@@ -98,7 +98,7 @@ BOOL RegisterMainWindowClass()
9898
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
9999
wc.hbrBackground = (HBRUSH) (COLOR_BTNFACE + 1);
100100
wc.lpszMenuName = MAKEINTRESOURCE(IDR_MAINMENU);
101-
wc.lpszClassName = MainWndClass;
101+
wc.lpszClassName = MainWndClass;
102102

103103
return (RegisterClass(&wc)) ? TRUE : FALSE;
104104
}

WinMain.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,31 @@ int PASCAL WinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow)
1111
HANDLE hInstance, hPrevInstance;
1212
LPSTR lpCmdLine;
1313
int nCmdShow;
14-
{
14+
{
1515
HWND hWnd;
1616
HANDLE hAccelerators;
1717
MSG msg;
1818

1919
/* Assign global HINSTANCE */
2020
g_hInstance = hInstance;
2121

22-
/* Register our main window class */
22+
/* Register our main window class */
2323
if (! hPrevInstance)
2424
{
2525
if (! RegisterMainWindowClass())
2626
{
2727
MessageBox(NULL, "Error registering main window class.", "Error", MB_ICONHAND | MB_OK);
2828
return 0;
29-
}
29+
}
3030
}
3131

3232
/* Create our main window */
3333
if (! (hWnd = CreateMainWindow()))
3434
{
3535
MessageBox(NULL, "Error creating main window.", "Error", MB_ICONHAND | MB_OK);
3636
return 0;
37-
}
38-
37+
}
38+
3939
/* Load accelerators */
4040
hAccelerators = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDR_ACCELERATOR));
4141

0 commit comments

Comments
 (0)