Positioning a window

From: txemuki (txemasm_at_hotmail.com)
Date: 11/19/04


Date: 19 Nov 2004 00:35:43 -0800

Hello,

I know that the way to open an ie window is the next one:

CString strUrl = "http://www.msdnbrasil.com.br/";
if(ShellExecute(miHandle, "open", strUrl, NULL, NULL, SW_SHOWNORMAL)
<= HINSTANCE(32))
{
//erro
}

but I need to change its position and size. I've tried SetWindowPos,
but I can't guess the first parameter. Can someone help me? Thanks in
advance.



Relevant Pages

  • Re: Positioning a window
    ... (heh works for me) ... > I know that the way to open an ie window is the next one: ... I've tried SetWindowPos, ... > but I can't guess the first parameter. ...
    (microsoft.public.vc.mfc)
  • Re: SetParent across processes - how does OLE do!? Focus and painting problems.
    ... OLE just uses SetParent and SetWindowPos - nothing fancy - and i've not seen ... separate process within the Word document window. ... that shouldn't really matter) inside the host application window. ...
    (microsoft.public.win32.programmer.ui)
  • Re: SetParent across processes - how does OLE do!? Focus and painting problems.
    ... OLE just uses SetParent and SetWindowPos - nothing fancy - and i've not seen ... separate process within the Word document window. ... that shouldn't really matter) inside the host application window. ...
    (microsoft.public.win32.programmer.ole)
  • Re: Distorted dialog title bar after SetWindowPos in OnInitDialog
    ... but you now say that you are using a control that takes over some of the functionality ... A CStatic is a poor choice of window for this purpose; ... report what video card you're using, what version of the driver, etc. ... SetWindowPos with SW_HIDE followed by SW_SHOW doesn't help. ...
    (microsoft.public.vc.mfc)
  • Re: Multithreading and background loading forms
    ... Even with the SetWindowPos the window loses it's focus each time a new form ... Is there another API or specific parameters in SetWindowPos that may help? ... > for a whole load of these window management P/Invokes. ...
    (microsoft.public.dotnet.framework.compactframework)