Windows 以编程方式调整窗口屏幕键盘的大小

Windows 以编程方式调整窗口屏幕键盘的大小,windows,Windows,我想知道是否可以在我的程序中调整Windows屏幕键盘的大小?要使用什么Windows方法呢?只需使用标准的Win32 api。只需使用标准的Win32 api。我知道这个问题很老,但给出的答案很短。为了增加这个话题的价值,我忍不住要添加以下信息: 您可以这样做,标志SWP_NOREPOSITION应该使SetWindowPos忽略iPosX和iPosY。所以只有宽度和高度应该改变。我还没有测试过这段代码 HWND hWndOSK = FindWindow("IPTip_Main_Window"

我想知道是否可以在我的程序中调整Windows屏幕键盘的大小?要使用什么Windows方法呢?

只需使用标准的Win32 api。

只需使用标准的Win32 api。

我知道这个问题很老,但给出的答案很短。为了增加这个话题的价值,我忍不住要添加以下信息:

您可以这样做,标志SWP_NOREPOSITION应该使SetWindowPos忽略iPosX和iPosY。所以只有宽度和高度应该改变。我还没有测试过这段代码

HWND hWndOSK = FindWindow("IPTip_Main_Window", null); //Only the class is known, the window has no name
int iPosX=0;
int iPosY=0;
int iWidth=1000;
int iHeight=600;
if(hWndOSK != NULL)
{
    //Window is up
    if(!SetWindowPos(hWndOSK, HWND_TOPMOST, iPosX, iPosY, iWidth, iHeight, SWP_NOREPOSITION))
    {
        //Something went wrong do some error handling
    }
}
设置窗口位置:

芬德温道:

我知道这个问题很老,但给出的答案很短。为了增加这个话题的价值,我忍不住要添加以下信息:

您可以这样做,标志SWP_NOREPOSITION应该使SetWindowPos忽略iPosX和iPosY。所以只有宽度和高度应该改变。我还没有测试过这段代码

HWND hWndOSK = FindWindow("IPTip_Main_Window", null); //Only the class is known, the window has no name
int iPosX=0;
int iPosY=0;
int iWidth=1000;
int iHeight=600;
if(hWndOSK != NULL)
{
    //Window is up
    if(!SetWindowPos(hWndOSK, HWND_TOPMOST, iPosX, iPosY, iWidth, iHeight, SWP_NOREPOSITION))
    {
        //Something went wrong do some error handling
    }
}
设置窗口位置:


芬德温:什么语言?您使用的是.NET还是win32?什么语言?您是在使用.NET还是仅限于win32?