Re: Re Win32lib questions
- Posted by Brian Broker <bkb at CNW.COM> Aug 25, 2000
- 466 views
On Fri, 25 Aug 2000 11:20:59 -0700, Matthew Lewis wrote: >On a similar note, I'm thinking that some sort of wrapping of xSetWindowLong >is in order. I've had a request for an EditText without the autoscroll >property. Of course, it would be pretty simple to copy the EditText to >another class, but it's probably easier to wrap a procedure to add/remove >properties. The same might apply to some of the windows. > >I just tested my SetWindowLong to remove ES_AUTOHSCROLL from an EditText, >but it didn't seem to work. The control still scrolls. Does anyone know if >there's something that needs to be called to update this sort of thing? > >Matt All I can tell you is what's on msdn.microsoft.com: First of all, "this function has been superseded by the SetWindowLongPtr function. To write code that is compatible with both 32-bit and 64-bit versions of Windows, use SetWindowLongPtr." Second, "Certain window data is cached, so changes you make using SetWindowLongPtr will not take effect until you call the SetWindowPos function." If you knew this already, I apologize... more info at: http://msdn.microsoft.com/library/psdk/winui/winclass_3qia.htm -- Brian