Kaydet (Commit) fa257a38 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use Get/SetWindowLongPtr, for 64-bit build

Change-Id: I02e5ca8dad87c24f8bf6e192a6b37ffc82a5a04a
üst 04277e7b
......@@ -393,14 +393,14 @@ LRESULT APIENTRY winwrap::HatchWndProc(
HDC hDC;
PAINTSTRUCT ps;
phw=(PCHatchWin)GetWindowLong(hWnd, HWWL_STRUCTURE);
phw=(PCHatchWin)GetWindowLongPtr(hWnd, HWWL_STRUCTURE);
POINT ptMouse;
switch (iMsg)
{
case WM_CREATE:
phw=(PCHatchWin)((LPCREATESTRUCT)lParam)->lpCreateParams;
SetWindowLong(hWnd, HWWL_STRUCTURE, (LONG)phw);
SetWindowLongPtr(hWnd, HWWL_STRUCTURE, (LONG_PTR)phw);
break;
case WM_PAINT:
hDC=BeginPaint(hWnd,&ps);
......
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