Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GWL_WNDPROC undefined when compiling for windows 64 bits #6

Closed
ShelleyLake opened this issue Apr 29, 2021 · 1 comment
Closed

GWL_WNDPROC undefined when compiling for windows 64 bits #6

ShelleyLake opened this issue Apr 29, 2021 · 1 comment

Comments

@ShelleyLake
Copy link

I think when using SetWindowLongPtr(), the correct value to use is GWLP_WNDPROC, not GWL_WNDPROC.
GWL_WNDPROC is used with SetWindowLong() instead.

GWL_WNDPROC and GWLP_WNDPROC are both defined in winuser.h. However, GWL_WNDPROC is not defined if _WIN64 is defined. Which makes sense, as SetWindowLong() is not available in a 64-bit flavor. SetWindowLongPtr() was introduced to support 64-bit.

winsoft666 added a commit that referenced this issue May 12, 2021
@winsoft666
Copy link
Owner

Yes, you are right.
Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants