shell execute
-
Can anyone help me? I tried to open the web page using shell execute in maximized mode. the command as given below: CString webURL = "www.yahoo.com" HINSTANCE hInstance = (HINSTANCE)ShellExecute(this->m_hWnd, _T("open"), webURL, NULL, NULL, SW_MAXIMIZE); or HINSTANCE hInstance = (HINSTANCE)ShellExecute(this->m_hWnd, _T("open"), webURL, NULL, NULL, SW_SHOWMAXIMIZED); it opens the page. but it display as normal not in maximized state. first time it opens maximized. in the internet explorer, if restored and call the same command in the exe, it brings the window in the front. It displays in the normal
-
Can anyone help me? I tried to open the web page using shell execute in maximized mode. the command as given below: CString webURL = "www.yahoo.com" HINSTANCE hInstance = (HINSTANCE)ShellExecute(this->m_hWnd, _T("open"), webURL, NULL, NULL, SW_MAXIMIZE); or HINSTANCE hInstance = (HINSTANCE)ShellExecute(this->m_hWnd, _T("open"), webURL, NULL, NULL, SW_SHOWMAXIMIZED); it opens the page. but it display as normal not in maximized state. first time it opens maximized. in the internet explorer, if restored and call the same command in the exe, it brings the window in the front. It displays in the normal
sujtha wrote:
HINSTANCE hInstance = (HINSTANCE)ShellExecute(this->m_hWnd, _T("open"), webURL, NULL, NULL, SW_SHOWMAXIMIZED);
sound absurbd but try NULL instead of this->m_hWnd.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief
-
sujtha wrote:
HINSTANCE hInstance = (HINSTANCE)ShellExecute(this->m_hWnd, _T("open"), webURL, NULL, NULL, SW_SHOWMAXIMIZED);
sound absurbd but try NULL instead of this->m_hWnd.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief
-
Can anyone help me? I tried to open the web page using shell execute in maximized mode. the command as given below: CString webURL = "www.yahoo.com" HINSTANCE hInstance = (HINSTANCE)ShellExecute(this->m_hWnd, _T("open"), webURL, NULL, NULL, SW_MAXIMIZE); or HINSTANCE hInstance = (HINSTANCE)ShellExecute(this->m_hWnd, _T("open"), webURL, NULL, NULL, SW_SHOWMAXIMIZED); it opens the page. but it display as normal not in maximized state. first time it opens maximized. in the internet explorer, if restored and call the same command in the exe, it brings the window in the front. It displays in the normal
may be you should try like this CString webURL = _T("www.yahoo.com"); HINSTANCE hInstance = (HINSTANCE)ShellExecute(0, _T("open"), _T("C:\\Program Files\\Internet Explorer\\iexplore.exe "), webURL, NULL, SW_SHOWMAXIMIZED);
nave [OpenedFileFinder]
-
Can anyone help me? I tried to open the web page using shell execute in maximized mode. the command as given below: CString webURL = "www.yahoo.com" HINSTANCE hInstance = (HINSTANCE)ShellExecute(this->m_hWnd, _T("open"), webURL, NULL, NULL, SW_MAXIMIZE); or HINSTANCE hInstance = (HINSTANCE)ShellExecute(this->m_hWnd, _T("open"), webURL, NULL, NULL, SW_SHOWMAXIMIZED); it opens the page. but it display as normal not in maximized state. first time it opens maximized. in the internet explorer, if restored and call the same command in the exe, it brings the window in the front. It displays in the normal
From past experience, IE seems to want to do its own thing (e.g., use size/position from last use), rather than what you instruct it to do. I've not researched into this hardly at all, but it just seems to be this way more often than not. You might try calling
ShowWindow(hWnd, SW_SHOWMAXIMIZED)
once IE is fully opened.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne