4 * Copyright 2000 Joshua Thielen <jt85296@ltu.edu>
5 * To be distributed under the Wine License
14 BOOL CALLBACK
CustomDlgProc( HWND hDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
)
17 static BOARD
*p_board
;
21 p_board
= (BOARD
*) lParam
;
22 SetDlgItemInt( hDlg
, IDC_EDITROWS
, p_board
->rows
, FALSE
);
23 SetDlgItemInt( hDlg
, IDC_EDITCOLS
, p_board
->cols
, FALSE
);
24 SetDlgItemInt( hDlg
, IDC_EDITMINES
, p_board
->mines
, FALSE
);
28 switch( LOWORD( wParam
) ) {
30 p_board
->rows
= GetDlgItemInt( hDlg
, IDC_EDITROWS
, &IsRet
, FALSE
);
31 p_board
->cols
= GetDlgItemInt( hDlg
, IDC_EDITCOLS
, &IsRet
, FALSE
);
32 p_board
->mines
= GetDlgItemInt( hDlg
, IDC_EDITMINES
, &IsRet
, FALSE
);
33 CheckLevel( p_board
);
46 BOOL CALLBACK
CongratsDlgProc( HWND hDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
)
48 static BOARD
*p_board
;
52 p_board
= (BOARD
*) lParam
;
53 SetDlgItemText( hDlg
, IDC_EDITNAME
,
54 p_board
->best_name
[p_board
->difficulty
] );
58 switch( LOWORD( wParam
) ) {
60 GetDlgItemText( hDlg
, IDC_EDITNAME
,
61 p_board
->best_name
[p_board
->difficulty
],
62 sizeof( p_board
->best_name
[p_board
->difficulty
] ) );
75 BOOL CALLBACK
TimesDlgProc( HWND hDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
)
77 static BOARD
*p_board
;
82 p_board
= (BOARD
*) lParam
;
85 for( i
= 0; i
< 3; i
++ )
86 SetDlgItemText( hDlg
, (IDC_NAME1
) + i
, p_board
->best_name
[i
] );
89 for( i
= 0; i
< 3; i
++ )
90 SetDlgItemInt( hDlg
, (IDC_TIME1
) + i
, p_board
->best_time
[i
], FALSE
);
94 switch( LOWORD( wParam
) ) {
104 BOOL CALLBACK
AboutDlgProc( HWND hDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
)
111 switch( LOWORD( wParam
) ) {
113 EndDialog( hDlg
, 0 );