🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2455

Re: help gwl_wndproc

#2455
From: Richard Janssen
Date: Mon, 04 Jan 1993 13:41
18 lines
1151 bytes
Here's the real tough cookie in subclassing:

Can you do the same for standard Windows controls??
And if so, please tell me?? 

It says in the Windows SDK docs that you cannot use
GWC_WNDPROC with SetWindowLong for standard controls.
However, usage of GWL_WNDPROC is not mentioned!!

Still, doing a GetWindowLong & SetWindowLong for a standard
control gives a General Protection Fault when calling the
'old' window procedure through CallWindowProc.

Does anybody have any clues for solving this problem??

Richard Janssen
R.H.P.Janssen@research.ptt.nl
Technical Details
Message-ID: <1993Jan4.134132.7387@spider.research.ptt.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!spider.research.ptt.nl!sun032!janssen
References: <1993Jan3.3151.3082@dosgate>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!spider.research.ptt.nl!sun032!janssen
From: janssen@sun032.research.ptt.nl (Richard Janssen)
Subject: Re: help gwl_wndproc
Message-ID: <1993Jan4.134132.7387@spider.research.ptt.nl>
Summary: Doing a "subclass" for standard controls.
Sender: usenet@spider.research.ptt.nl (USEnet News)
Nntp-Posting-Host: sun032.research.ptt.nl
Organization: PTT Research, Groningen, the Netherlands
References: <1993Jan3.3151.3082@dosgate>
Distribution: comp
Date: Mon, 4 Jan 1993 13:41:32 GMT
Lines: 20