Commit 568a8b84 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

cmdlgtst: Remove superfluous casts.

parent 6f490031
...@@ -288,7 +288,7 @@ static void paintMainWindow(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lPar ...@@ -288,7 +288,7 @@ static void paintMainWindow(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lPar
/* Commence painting! */ /* Commence painting! */
BeginPaint(hWnd, &ps); BeginPaint(hWnd, &ps);
GetClientRect(hWnd, (LPRECT) &rect); GetClientRect(hWnd, &rect);
pen = SelectObject(ps.hdc, CreatePen(0, 0, fgColor)); pen = SelectObject(ps.hdc, CreatePen(0, 0, fgColor));
brush = SelectObject(ps.hdc, CreateSolidBrush(bgColor)); brush = SelectObject(ps.hdc, CreateSolidBrush(bgColor));
...@@ -367,8 +367,8 @@ static void mw_ColorSetup(HWND hWnd) ...@@ -367,8 +367,8 @@ static void mw_ColorSetup(HWND hWnd)
if(ChooseColor(&cc)) { if(ChooseColor(&cc)) {
RECT rect; RECT rect;
GetClientRect(hWnd, (LPRECT) &rect); GetClientRect(hWnd, &rect);
InvalidateRect(hWnd, (LPRECT) &rect, FALSE); InvalidateRect(hWnd, &rect, FALSE);
bgColor = cc.rgbResult; bgColor = cc.rgbResult;
} }
else mw_checkError(hWnd, FALSE); else mw_checkError(hWnd, FALSE);
...@@ -378,8 +378,8 @@ static void mw_FontSetup(HWND hWnd) ...@@ -378,8 +378,8 @@ static void mw_FontSetup(HWND hWnd)
{ {
if(ChooseFont(&cf)) { if(ChooseFont(&cf)) {
RECT rect; RECT rect;
GetClientRect(hWnd, (LPRECT) &rect); GetClientRect(hWnd, &rect);
InvalidateRect(hWnd, (LPRECT) &rect, FALSE); InvalidateRect(hWnd, &rect, FALSE);
txtColor = cf.rgbColors; txtColor = cf.rgbColors;
} }
else mw_checkError(hWnd, FALSE); else mw_checkError(hWnd, FALSE);
...@@ -405,8 +405,8 @@ static void mw_OpenSetup(HWND hWnd) ...@@ -405,8 +405,8 @@ static void mw_OpenSetup(HWND hWnd)
{ {
if(GetOpenFileName(&ofn)) { if(GetOpenFileName(&ofn)) {
RECT rect; RECT rect;
GetClientRect(hWnd, (LPRECT) &rect); GetClientRect(hWnd, &rect);
InvalidateRect(hWnd, (LPRECT) &rect, FALSE); InvalidateRect(hWnd, &rect, FALSE);
} }
else mw_checkError(hWnd,FALSE); else mw_checkError(hWnd,FALSE);
} }
...@@ -415,8 +415,8 @@ static void mw_SaveSetup(HWND hWnd) ...@@ -415,8 +415,8 @@ static void mw_SaveSetup(HWND hWnd)
{ {
if(GetSaveFileName(&ofn)) { if(GetSaveFileName(&ofn)) {
RECT rect; RECT rect;
GetClientRect(hWnd, (LPRECT) &rect); GetClientRect(hWnd, &rect);
InvalidateRect(hWnd, (LPRECT) &rect, FALSE); InvalidateRect(hWnd, &rect, FALSE);
} }
else mw_checkError(hWnd,FALSE); else mw_checkError(hWnd,FALSE);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment