No, sorry.
? FINDWINDOW( "MozillaCompositorWindowClass" )? FINDWINDOW( "MozillaCompositorWindowClass" )Dear Enrico,
Have you tried to use Spy++ to identify it ?
No, I don't need it anymore. As I already wrote, I solved it using FINDWINDOW() with window title.
Hello Enrico,
The FindWindow function in the Windows API is used to find the top-level window that matches the specified class name and window title. It does not work for finding child windows.
To find child windows, you need to use the FindWindowEx function, which can search for a window that is a child of a specified parent window.
However, it seems that FindWindowEx is not included in the FW functions, so you will have to implement it yourself.
Best regards,
Otto
Otto wrote:Hello Enrico,The compose window of Thunderbird can be called alone, so I think it is a main window too.
The FindWindow function in the Windows API is used to find the top-level window that matches the specified class name and window title. It does not work for finding child windows.
To find child windows, you need to use the FindWindowEx function, which can search for a window that is a child of a specified parent window.
However, it seems that FindWindowEx is not included in the FW functions, so you will have to implement it yourself.
Best regards,
Otto
#include <Windows.h>
#include <hbapi.h>
HB_FUNC( GETCLASSNAMEA ) // ( hWnd, cClassName, nSize ) --> nLength
{
HWND hwnd = (HWND) hb_parnl( 1 );
char *cClassName = hb_parc( 2 );
int nSize = hb_parni( 3 );
int nLen = GetClassNameA( hwnd, cClassName, nSize );
hb_retnl( nLen );
}
Otto, your code doesn't make sense. Never mind, I already solved the problem.
Enrico,
Do you know what the Windows API function GetClassNameA does?
Yes, I know.