mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 19:47:27 +00:00
Remove unnecessary WNDPROC casts.
This commit is contained in:
parent
8d01911493
commit
cba8763c33
|
@ -736,7 +736,7 @@ static HWND OLEClipbrd_CreateWindow()
|
||||||
* We don't bother doing this since the FindClassByAtom code
|
* We don't bother doing this since the FindClassByAtom code
|
||||||
* would have to be changed to deal with this idiosyncrasy. */
|
* would have to be changed to deal with this idiosyncrasy. */
|
||||||
wcex.style = CS_GLOBALCLASS;
|
wcex.style = CS_GLOBALCLASS;
|
||||||
wcex.lpfnWndProc = (WNDPROC)OLEClipbrd_WndProc;
|
wcex.lpfnWndProc = OLEClipbrd_WndProc;
|
||||||
wcex.hInstance = 0;
|
wcex.hInstance = 0;
|
||||||
wcex.lpszClassName = OLEClipbrd_WNDCLASS;
|
wcex.lpszClassName = OLEClipbrd_WNDCLASS;
|
||||||
|
|
||||||
|
|
|
@ -1602,7 +1602,7 @@ static void OLEDD_Initialize()
|
||||||
|
|
||||||
ZeroMemory (&wndClass, sizeof(WNDCLASSA));
|
ZeroMemory (&wndClass, sizeof(WNDCLASSA));
|
||||||
wndClass.style = CS_GLOBALCLASS;
|
wndClass.style = CS_GLOBALCLASS;
|
||||||
wndClass.lpfnWndProc = (WNDPROC)OLEDD_DragTrackerWindowProc;
|
wndClass.lpfnWndProc = OLEDD_DragTrackerWindowProc;
|
||||||
wndClass.cbClsExtra = 0;
|
wndClass.cbClsExtra = 0;
|
||||||
wndClass.cbWndExtra = sizeof(TrackerWindowInfo*);
|
wndClass.cbWndExtra = sizeof(TrackerWindowInfo*);
|
||||||
wndClass.hCursor = 0;
|
wndClass.hCursor = 0;
|
||||||
|
|
|
@ -778,7 +778,7 @@ VOID RICHED32_Register(void)
|
||||||
|
|
||||||
ZeroMemory(&wndClass, sizeof(WNDCLASSA));
|
ZeroMemory(&wndClass, sizeof(WNDCLASSA));
|
||||||
wndClass.style = CS_HREDRAW | CS_VREDRAW | CS_GLOBALCLASS;
|
wndClass.style = CS_HREDRAW | CS_VREDRAW | CS_GLOBALCLASS;
|
||||||
wndClass.lpfnWndProc = (WNDPROC)RICHED32_WindowProc;
|
wndClass.lpfnWndProc = RICHED32_WindowProc;
|
||||||
wndClass.cbClsExtra = 0;
|
wndClass.cbClsExtra = 0;
|
||||||
wndClass.cbWndExtra = RTFInfoOffset + sizeof(RTFControl_Info*);
|
wndClass.cbWndExtra = RTFInfoOffset + sizeof(RTFControl_Info*);
|
||||||
wndClass.hCursor = LoadCursorA(0, (LPSTR)IDC_ARROW);
|
wndClass.hCursor = LoadCursorA(0, (LPSTR)IDC_ARROW);
|
||||||
|
|
|
@ -658,7 +658,7 @@ void VCP_UI_RegisterProgressClass(void)
|
||||||
registered = TRUE;
|
registered = TRUE;
|
||||||
ZeroMemory (&wndClass, sizeof(WNDCLASSA));
|
ZeroMemory (&wndClass, sizeof(WNDCLASSA));
|
||||||
wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;
|
wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;
|
||||||
wndClass.lpfnWndProc = (WNDPROC)VCP_UI_FileCopyWndProc;
|
wndClass.lpfnWndProc = VCP_UI_FileCopyWndProc;
|
||||||
wndClass.cbClsExtra = 0;
|
wndClass.cbClsExtra = 0;
|
||||||
wndClass.cbWndExtra = 0;
|
wndClass.cbWndExtra = 0;
|
||||||
wndClass.hCursor = LoadCursorA (0, (LPSTR)IDC_ARROW);
|
wndClass.hCursor = LoadCursorA (0, (LPSTR)IDC_ARROW);
|
||||||
|
|
|
@ -1819,7 +1819,7 @@ static HRESULT WINAPI IShellView_fnCreateViewWindow(
|
||||||
{
|
{
|
||||||
ZeroMemory(&wc, sizeof(wc));
|
ZeroMemory(&wc, sizeof(wc));
|
||||||
wc.style = CS_HREDRAW | CS_VREDRAW;
|
wc.style = CS_HREDRAW | CS_VREDRAW;
|
||||||
wc.lpfnWndProc = (WNDPROC) ShellView_WndProc;
|
wc.lpfnWndProc = ShellView_WndProc;
|
||||||
wc.cbClsExtra = 0;
|
wc.cbClsExtra = 0;
|
||||||
wc.cbWndExtra = 0;
|
wc.cbWndExtra = 0;
|
||||||
wc.hInstance = shell32_hInstance;
|
wc.hInstance = shell32_hInstance;
|
||||||
|
|
|
@ -162,7 +162,7 @@ BOOL SYSTRAY_RegisterClass(void)
|
||||||
WNDCLASSA wc;
|
WNDCLASSA wc;
|
||||||
|
|
||||||
wc.style = CS_SAVEBITS|CS_DBLCLKS;
|
wc.style = CS_SAVEBITS|CS_DBLCLKS;
|
||||||
wc.lpfnWndProc = (WNDPROC)SYSTRAY_WndProc;
|
wc.lpfnWndProc = SYSTRAY_WndProc;
|
||||||
wc.cbClsExtra = 0;
|
wc.cbClsExtra = 0;
|
||||||
wc.cbWndExtra = 0;
|
wc.cbWndExtra = 0;
|
||||||
wc.hInstance = 0;
|
wc.hInstance = 0;
|
||||||
|
|
|
@ -344,7 +344,7 @@ START_TEST(input)
|
||||||
|
|
||||||
wclass.lpszClassName = "InputSysKeyTestClass";
|
wclass.lpszClassName = "InputSysKeyTestClass";
|
||||||
wclass.style = CS_HREDRAW | CS_VREDRAW;
|
wclass.style = CS_HREDRAW | CS_VREDRAW;
|
||||||
wclass.lpfnWndProc = (WNDPROC)WndProc;
|
wclass.lpfnWndProc = WndProc;
|
||||||
wclass.hInstance = hInstance;
|
wclass.hInstance = hInstance;
|
||||||
wclass.hIcon = LoadIconA( 0, (LPSTR)IDI_APPLICATION );
|
wclass.hIcon = LoadIconA( 0, (LPSTR)IDI_APPLICATION );
|
||||||
wclass.hCursor = LoadCursorA( NULL, IDC_ARROW);
|
wclass.hCursor = LoadCursorA( NULL, IDC_ARROW);
|
||||||
|
|
|
@ -68,7 +68,7 @@ static ATOM MyRegisterClass(HINSTANCE hInstance)
|
||||||
wcex.cbSize = sizeof(WNDCLASSEX);
|
wcex.cbSize = sizeof(WNDCLASSEX);
|
||||||
|
|
||||||
wcex.style = CS_HREDRAW | CS_VREDRAW;
|
wcex.style = CS_HREDRAW | CS_VREDRAW;
|
||||||
wcex.lpfnWndProc = (WNDPROC)DefWindowProc;
|
wcex.lpfnWndProc = DefWindowProc;
|
||||||
wcex.cbClsExtra = 0;
|
wcex.cbClsExtra = 0;
|
||||||
wcex.cbWndExtra = 0;
|
wcex.cbWndExtra = 0;
|
||||||
wcex.hInstance = hInstance;
|
wcex.hInstance = hInstance;
|
||||||
|
|
|
@ -48,7 +48,7 @@ BOOL InitApplication(HINSTANCE hInstance)
|
||||||
0);
|
0);
|
||||||
|
|
||||||
wc.style = CS_HREDRAW | CS_VREDRAW; /* Class style(s) */
|
wc.style = CS_HREDRAW | CS_VREDRAW; /* Class style(s) */
|
||||||
wc.lpfnWndProc = (WNDPROC)WndProc; /* Window Procedure */
|
wc.lpfnWndProc = WndProc; /* Window Procedure */
|
||||||
wc.cbClsExtra = 0; /* No per-class extra data */
|
wc.cbClsExtra = 0; /* No per-class extra data */
|
||||||
wc.cbWndExtra = 0; /* No per-window extra data */
|
wc.cbWndExtra = 0; /* No per-window extra data */
|
||||||
wc.hInstance = hInstance; /* Owner of this class */
|
wc.hInstance = hInstance; /* Owner of this class */
|
||||||
|
|
Loading…
Reference in a new issue