riktek
Member
- Local time
- Today, 16:46
- Joined
- Dec 15, 2023
- Messages
- 83
I'm noodling on extending or tweaking the mechanism behind scrolling text in text boxes, to address a form's Detail section, especially while it is in Continuous Forms view.
Apparently, Windows regards a TextBox to be a window. As such, it has an hWnd. Dev Ashish's widely circulated code calls the Win32 GetFocus function to retrieve a control's hWnd so that messages can be directed to it. So far, so good.
It stands to reason that Windows also regards a form section to be a window, having a hWnd. There are some wrinkles, e.g., that GotFocus doesn't occur for forms with controls, so perhaps GetCapture is the better choice, or working through a control to get its parent, but still.
The questions are:
- Whether and how one can get the (or a) hWnd for a form's Detail section.
- Whether the hWnd for the Detail section of the current record in continuous forms view differs from the hWnd of the Detail section for other records.
Google is of no help, and this may simply be unfounded conjecture, so before I go further down this rabbit hole, any thoughts would be welcome.
Apparently, Windows regards a TextBox to be a window. As such, it has an hWnd. Dev Ashish's widely circulated code calls the Win32 GetFocus function to retrieve a control's hWnd so that messages can be directed to it. So far, so good.
It stands to reason that Windows also regards a form section to be a window, having a hWnd. There are some wrinkles, e.g., that GotFocus doesn't occur for forms with controls, so perhaps GetCapture is the better choice, or working through a control to get its parent, but still.
The questions are:
- Whether and how one can get the (or a) hWnd for a form's Detail section.
- Whether the hWnd for the Detail section of the current record in continuous forms view differs from the hWnd of the Detail section for other records.
Google is of no help, and this may simply be unfounded conjecture, so before I go further down this rabbit hole, any thoughts would be welcome.
Last edited: