CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    2

    Post deleted by Mark Jones


  2. #2
    Join Date
    May 1999
    Posts
    128

    Re: SetWindowPos

    Use MoveWindow. Put it in your OnCreate handler, e.g. for a CMainFrame...


    int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
    {
    if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
    return -1;

    // Call MoveWindow AFTER you have called the base class OnCreate.
    // You'll have to build 'rect' from height, width, etc.
    MoveWindow( rect );

    }






Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured