Re: how to move a window that is not mine?
I think this is better:
CWnd* pWnd = FindWindow(NULL,_T("FOO2));
if(pWnd)
{
if(::IsWindow(pWnd->m_hWnd))
{
pWnd->SetWindowPos(NULL,0,0,0,0,SWP_NOSIZE);
}
}
"AliR (VC++ MVP)" wrote:
I think you are looking for this:
CWnd *pWnd = FindWindow(NULL,_T("FOO2"));
if (pWnd)
{
pWnd->SetWindowPos(NULL,0,0,0,0,SWP_NOSIZE);
}
AliR.
".rhavin grobert" <clqrq@yahoo.de> wrote in message
news:1186583177.343616.114470@d55g2000hsg.googlegroups.com...
i have some windows on the desktop, one of has a caption of - lets
say: - "FOO2". That window is controlled by another application. i now
need to send this window to the upper left corner of the desktop. i
tried something like this:
HWND hTop = GetWindow(GetDesktopWindow(), GW_CHILD);
if (hTop != 0) SendMessage(hTop, WM_MOVE, 0, 0);
hTop gets some value, but the window doesnt move - what can/should i
do?
thx in advance, .rhavin;)
-{[
PS: i still have the problem of my last post:
<1186426032.955227.152230@g4g2000hsf.googlegroups.com>
("Problem with CComboboxEx / InsertItem...")
]}-