open IE???
-
:confused::confused:Hi all, I want to open IE window with the URL i specify and also I want to position that window and define its height, width..can i do that..and if yes..how..can anyone show me some pointers or tutorials or ideas on this... Thanks a lot in advance.. Himanshu
-
:confused::confused:Hi all, I want to open IE window with the URL i specify and also I want to position that window and define its height, width..can i do that..and if yes..how..can anyone show me some pointers or tutorials or ideas on this... Thanks a lot in advance.. Himanshu
Use ShellExecute(...) API "A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
-
:confused::confused:Hi all, I want to open IE window with the URL i specify and also I want to position that window and define its height, width..can i do that..and if yes..how..can anyone show me some pointers or tutorials or ideas on this... Thanks a lot in advance.. Himanshu
This might work, but you'll want to test it thoroughly in any case:
DWORD dwProcId;
HINSTANCE hInstance = ShellExecute(...);hWnd = FindWindow(NULL, NULL);
while (NULL != hWnd)
{
if (GetParent(hWnd) == NULL)
{
if (hInstance == GetWindowThreadProcessID(hWnd, &dwProcId))
{
MoveWindow(hWnd, ...);
break;
}
}hWnd = GetWindow(hWnd, GW\_HWNDNEXT);
}
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
This might work, but you'll want to test it thoroughly in any case:
DWORD dwProcId;
HINSTANCE hInstance = ShellExecute(...);hWnd = FindWindow(NULL, NULL);
while (NULL != hWnd)
{
if (GetParent(hWnd) == NULL)
{
if (hInstance == GetWindowThreadProcessID(hWnd, &dwProcId))
{
MoveWindow(hWnd, ...);
break;
}
}hWnd = GetWindow(hWnd, GW\_HWNDNEXT);
}
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
Hi David, Thanks a lot...but i cud not understand how to position the IE window and also how to define size of this IE window..Please help.. thanks a lot in advance himanshu
-
Hi David, Thanks a lot...but i cud not understand how to position the IE window and also how to define size of this IE window..Please help.. thanks a lot in advance himanshu
Did you look at the
MoveWindow()
function? The parameters are self explanatory.MoveWindows(..., left, top, width, height, ...);
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
-
Did you look at the
MoveWindow()
function? The parameters are self explanatory.MoveWindows(..., left, top, width, height, ...);
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?
;)hiii, thanks a ton...i did that.... regards Himanshu