mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[0.4.10][BUTTERFLIES] Reduce count of (DLGPROC) casts, [CMIDRIVER] Remove useless aps file
ports back the following commits: 0.4.15-dev-3822-g78a7d7dc32
[CMIDRIVER] Remove useless Visual Studio resource editor aps-file 0.4.12-dev-399-g32faa24733
[BUTTERFLIES] Fix GCC build, addendum to 0.4.12-dev-397-g2890a22179
a tiny fraction of 0.4.12-dev-397-g2890a22179
just the [BUTTERFLIES] Avoid DLGPROC cast Ftr, there are still a few DLGPROC casts left after this commit in ros source tree, but I don't want to port back the commits yet, which addressed them. Too fresh still, no need to rush that.
This commit is contained in:
parent
5593cc15dc
commit
711e70cd5e
Binary file not shown.
|
@ -227,18 +227,16 @@ void Display()
|
|||
Sleep(15); // Create A Short Delay (15 Milliseconds)
|
||||
|
||||
glFlush ();
|
||||
|
||||
}
|
||||
|
||||
BOOL AboutProc(HWND hdlg, UINT msg, WPARAM wpm, LPARAM lpm){
|
||||
|
||||
INT_PTR CALLBACK AboutProc(HWND hdlg, UINT msg, WPARAM wpm, LPARAM lpm){
|
||||
switch(msg){
|
||||
case WM_CTLCOLORSTATIC:
|
||||
if(((HWND)lpm == GetDlgItem(hdlg, WEBPAGE1)) || ((HWND)lpm == GetDlgItem(hdlg, WEBPAGE2)))
|
||||
{
|
||||
SetTextColor((HDC)wpm, RGB(0,0,255));
|
||||
SetBkColor((HDC)wpm, (COLORREF)GetSysColor(COLOR_3DFACE));
|
||||
return((int)GetSysColorBrush(COLOR_3DFACE));
|
||||
return (INT_PTR)GetSysColorBrush(COLOR_3DFACE);
|
||||
}
|
||||
break;
|
||||
case WM_COMMAND:
|
||||
|
@ -314,7 +312,7 @@ BOOL WINAPI ScreenSaverConfigureDialog(HWND hDlg, UINT message,
|
|||
EndDialog(hDlg, TRUE);
|
||||
break;
|
||||
case IDABOUT:
|
||||
DialogBox(hInstance, MAKEINTRESOURCE(IDD_DLG_ABOUT), hDlg, (DLGPROC)AboutProc);
|
||||
DialogBox(hInstance, MAKEINTRESOURCE(IDD_DLG_ABOUT), hDlg, AboutProc);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue