Re: Positioning a window

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Arlis Rose (arlisATendevouraerospace.com)
Date: 11/19/04


Date: Fri, 19 Nov 2004 12:42:27 -0500

If you have access to the class's methods, just try something like,
this->SetWindowPos(NULL, 0, 0, 750, 600, SW_SHOW);

(heh works for me) LoL...don't even think you need the this-> actually, so
long as your accessing the method from within it's own class.

"txemuki" <txemasm@hotmail.com> wrote in message
news:c7c2fe26.0411190035.38baea72@posting.google.com...
> 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

  • Positioning a window
    ... I know that the way to open an ie window is the next one: ... if(ShellExecute(miHandle, "open", strUrl, NULL, NULL, SW_SHOWNORMAL) ... I've tried SetWindowPos, ... but I can't guess the first parameter. ...
    (microsoft.public.vc.mfc)
  • Re: Options for frosting glass?
    ... In my neck of the woods, the codes are that any window within 36" left ... It's not just about sneaking one past the building inspector, ... Heh, heh. ...
    (rec.crafts.glass)
  • Task bar invader...
    ... >Heh, not sure where or when it happened, but, I somehow ... It has a window to type in and a "search" button ... The Task Bar properties does not recognize ...
    (microsoft.public.windowsxp.general)
  • Re: On my way to the fridge for a glass of coke coke...
    ... <You have to be careful drving around Oslo. ... <Noble Peace Prize through your window. ... Heh. ...
    (rec.sport.football.college)
  • Re: Heres something to drive you nuts
    ... I figured out how to get it out of the window. ... before I dedicate my life to this. ... Heh, me too. ...
    (rec.music.beatles)