Message 1 of 1
Subclassing a ClientView control

Not applicable
06-22-2004
01:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
On a form, I've created a ClientView control in a way similar to the following code:
Set objClientView = .ClientViews.Add()
But if I attempt to subclass the control with a call to the Windows API SetWindowLong function:
SetWindowLong objClientView.HWND, -4, AddressOf
the call fails. Is it not possible for some reason to subclass a ClientView control, or is it not possible to subclass any control that's created at runtime? Has anyone successfully subclassed a ClientView control?
--------------------------------------------------------------------------------
Brian R. Iwaskewycz
Senior Mechanical Engineer
PA Transformer Technology, Inc.
Do or do not. There is no try.