zaryk
June 4th, 2009, 11:59 PM
I'm trying to find a window of a program I installed, a dialog window. I've used EnumChildWindows on the main program, and it only enumerates the direct child windows, not the dialog. Right now I have:
im = FindWindow(NULL, "Palringo");
if(im != NULL)
{
ShowWindow(im, 1);
BringWindowToTop(im);
HWND imChatBox = FindWindowEx(im, NULL, MAKEINTATOM(2), NULL);
if(imChatBox != NULL)
{
BringWindowToTop(imChatBox);
}
}
and Here is the information displayed by Winspector:
ClassName: SB_CHATWINDOW
Styles:
WS_OVERLAPPED
WS_VISIBLE
WS_CLIPSIBLINGS
WS_BORDER
WS_SYSMENU
WS_THICKFRAME
WS_MINIMIZEBOX
WS_MAXIMIZEBOX
0x04194304
StylesEx:
WS_EX_WINDOWEDGE
WS_EX_LEFT
WS_EX_LTRREADING
WS_EX_RIGHTSCROLLBAR
Properties: Atom: #43287 0x00000002 (2)
Class Specific: Window is Ansi
Also, it also displays ID and WindowText, but those aren't always the same. And location of Palringo.
Any ideas?
im = FindWindow(NULL, "Palringo");
if(im != NULL)
{
ShowWindow(im, 1);
BringWindowToTop(im);
HWND imChatBox = FindWindowEx(im, NULL, MAKEINTATOM(2), NULL);
if(imChatBox != NULL)
{
BringWindowToTop(imChatBox);
}
}
and Here is the information displayed by Winspector:
ClassName: SB_CHATWINDOW
Styles:
WS_OVERLAPPED
WS_VISIBLE
WS_CLIPSIBLINGS
WS_BORDER
WS_SYSMENU
WS_THICKFRAME
WS_MINIMIZEBOX
WS_MAXIMIZEBOX
0x04194304
StylesEx:
WS_EX_WINDOWEDGE
WS_EX_LEFT
WS_EX_LTRREADING
WS_EX_RIGHTSCROLLBAR
Properties: Atom: #43287 0x00000002 (2)
Class Specific: Window is Ansi
Also, it also displays ID and WindowText, but those aren't always the same. And location of Palringo.
Any ideas?