winsoft666 / QCefWidget

A Qt widget that can render and interact with webpage.
GNU Lesser General Public License v3.0
263 stars 62 forks source link

GWL_WNDPROC undefined when compiling for windows 64 bits #6

Closed ShelleyLake closed 3 years ago

ShelleyLake commented 3 years ago

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 commented 3 years ago

Yes, you are right. Fixed!