Auto-windowResize

This is a discussion on Auto-windowResize within the Windows Programming forums, part of the Platform Specific Boards category; Hello My app provides a storage of string in list boxes... When the count of strings overflows the visible part ...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    162

    Auto-windowResize

    Hello

    My app provides a storage of string in list boxes... When the count of strings overflows the visible part of the list box I need my window to size and afterwards the list box resizes too. This is instead of having the VSCROLL in the list box...

    Is there some function that does it?
    I am looking for something like
    SetWindowHeight(HWND hWnd, INT iHeight); if its possible

    Thanks

  2. #2
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,635
    Try SetWindowPos.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    162
    Quote Originally Posted by Elysia View Post
    Try SetWindowPos.
    Works pretty well THX

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Are auto pointers any good?
    By cunnus88 in forum C++ Programming
    Replies: 3
    Last Post: 04-15-2007, 11:07 AM
  2. auto?
    By cboard_member in forum C Programming
    Replies: 9
    Last Post: 10-07-2005, 12:58 AM
  3. MDI client area auto sizing.
    By Rare177 in forum Windows Programming
    Replies: 1
    Last Post: 04-09-2005, 04:49 AM
  4. Code: An auto expanding array (or how to use gets() safely).
    By anonytmouse in forum Windows Programming
    Replies: 0
    Last Post: 08-10-2004, 12:13 AM
  5. Disabling "Ready" & Other Auto Status Bar Updates :: MFC
    By kuphryn in forum C++ Programming
    Replies: 1
    Last Post: 04-03-2002, 07:51 PM

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