SetWindowPos not resizing

This is a discussion on SetWindowPos not resizing within the Windows Programming forums, part of the Platform Specific Boards category; Hi I have tried to use the following to move and resize my dialog box but it's not working. The ...

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    205

    SetWindowPos not resizing

    Hi I have tried to use the following to move and resize my dialog box but it's not working. The dialog box was created as a popup dialog. I am wondering if that may be the problem. The function moves the window properly but does not want to resize
    this->SetWindowPos(&wndTop,0,0,10,10,SW_SHOW);

    Thanks
    Amish

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    You're using the wrong flag. You should use SWP_*** flags, not SW_***.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    205
    damn such a small mistake. Thanks for catching that.
    Amish

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. resizing OpenGL picture control in MFC window
    By stanlvw in forum Windows Programming
    Replies: 1
    Last Post: 03-19-2009, 03:21 PM
  2. Disable resizing a window
    By maxorator in forum Windows Programming
    Replies: 1
    Last Post: 09-09-2006, 02:54 AM
  3. [C++/WinAPI] Resizing image
    By jagi in forum Windows Programming
    Replies: 2
    Last Post: 04-04-2005, 07:44 AM
  4. mouse event when resizing window
    By SuperNewbie in forum Windows Programming
    Replies: 4
    Last Post: 05-19-2004, 05:35 AM
  5. Resizing bmp.
    By NewCoder in forum Windows Programming
    Replies: 12
    Last Post: 11-12-2003, 09:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21