Thread: make window stay in one place

  1. #1
    Registered User
    Join Date
    Jul 2004

    make window stay in one place

    I am just starting to code in windows, borland c++ and in winapi... I would like to make a very simple window manager. My problem is that when I change the 'desktop area' my window doesn't stay at the bottom like the windows taskbar does.
    SystemParametersInfo(SPI_SETWORKAREA, 0, &workarea, 0);
    // i set it to max, then i create the window, and then I set it accordingly to the window height, width...
    I have found that this only happens when I code it in borland c+ builder language; it stays at the bottom when I use pure winapi calls. However I find it quite difficult to code in pure winapi. My question is, would it be possible to make the window (made in borland c++) stay at the bottom of the screen.

    thanks in advance,
    best regards

  2. #2
    Registered User Rare177's Avatar
    Join Date
    May 2004
    you could try using SetWindowPos and use HWND_BOTTOM in that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Make My Window Invisible for a Split Second
    By Brad0407 in forum Windows Programming
    Replies: 9
    Last Post: 04-10-2007, 05:58 PM
  2. Replies: 5
    Last Post: 02-12-2006, 07:42 PM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  4. Adding colour & bmps to a Win 32 Window??
    By carey_sizer in forum Windows Programming
    Replies: 4
    Last Post: 09-04-2004, 05:55 PM
  5. how to make 2 text window
    By bluexrogue in forum C Programming
    Replies: 2
    Last Post: 09-15-2001, 08:51 PM