确定表单的显示部分(详细信息) [英] Determining the displayed part of a form (detail)

查看:99
本文介绍了确定表单的显示部分(详细信息)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows XP的Access 2003中,我想知道我的表单目前是哪一部分显示在一个具有垂直和水平滚动条的窗口中。

我的表单是* *连续且没有标题,没有预告片–即它是一个超出客户窗口的详细信息部分。

In Access 2003 on Windows XP, I want to know what part of my form is presently on display in a window which has a vertical and horizontal scrollbar.
My form is *not* continuous and has no header and no trailer – i.e. it is a detail section which exceeds the client window in which it sits.

特别是我想知道如何识别位于客户区的(0,0)的详细信息部分的坐标。

另外,我该如何设置这个位置?

我猜这可能需要winapi功能。

推荐答案

你好,

你对这里需要的WinAPI编程是正确的,但这真的很难问题。问题第一:你喜欢做什么?

you're right about the WinAPI programming required here, but this is a really hard problem. Question first: What do you like to do?

btw,使用Visual Studio中的SPY ++来深入了解Access的窗口层次结构,在这里你可以选择API调用的窗口句柄去测试。您问题的有趣部分是使用FindWindow(Ex)自动确定此句柄...

btw, use SPY++ from Visual Studio to get an insight of the window hierarchy of Access, here you can pick the window handle for the API calls to test. The interesting part of your problem is to determine this handle automatically by using FindWindow(Ex)...


这篇关于确定表单的显示部分(详细信息)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆