Skip to content

Commit

Permalink
修正wndshadow类在x64下的编译问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wangchyz committed Mar 31, 2016
1 parent 2137af0 commit 71aea03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DuiLib/Utils/WndShadow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ void CWndShadow::Create(HWND hParentWnd)
}

// Replace the original WndProc of parent window to steal messages
m_OriParentProc = GetWindowLong(hParentWnd, GWL_WNDPROC);
m_OriParentProc = (WNDPROC)GetWindowLongPtr(hParentWnd, GWLP_WNDPROC);

#pragma warning(disable: 4311) // temporrarily disable the type_cast warning in Win32
SetWindowLong(hParentWnd, GWL_WNDPROC, (LONG)ParentProc);
SetWindowLongPtr(hParentWnd, GWLP_WNDPROC, (LONG_PTR)ParentProc);
#pragma warning(default: 4311)

}
Expand Down
2 changes: 1 addition & 1 deletion DuiLib/Utils/WndShadow.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class DUILIB_API CWndShadow

HWND m_hWnd;

LONG m_OriParentProc; // Original WndProc of parent window
WNDPROC m_OriParentProc; // Original WndProc of parent window

enum ShadowStatus
{
Expand Down

0 comments on commit 71aea03

Please sign in to comment.