Use FindWindow and MoveWindow...here's a console example, I haven't tested if you need threading on an actual windows app yet, but here's how I did it...
Code:
#include <windows.h>
#include <iostream.h>
#include <process.h>
void MoveMB(PVOID)
{
HWND hMB;
while((hMB = FindWindow(NULL, "wow...")) == NULL);
MoveWindow(hMB, 0, 0, 150, 125, TRUE);
}
int main(void)
{
_beginthread(MoveMB, 0, NULL);
MessageBox(NULL, "Look at this!", "wow...", MB_OK | MB_ICONEXCLAMATION);
return 0;
}
You're going to need to enable Mutli-Threading for this to work...
In MSVC (Visual Studio), go to Project->Settings->Click the C++ tab. Change the "Category" dropdown box to "Code Generation", and then change the "Use run-time library" dropdown box to "Multithreaded".