make window stay in one place

This is a discussion on make window stay in one place within the Windows Programming forums, part of the Platform Specific Boards category; hello, I am just starting to code in windows, borland c++ and in winapi... I would like to make a ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    1

    make window stay in one place

    hello,
    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.
    Code:
    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
    Phil

  2. #2
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214
    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, 06:58 PM
  2. Replies: 5
    Last Post: 02-12-2006, 08:42 PM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 01: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, 06:55 PM
  5. how to make 2 text window
    By bluexrogue in forum C Programming
    Replies: 2
    Last Post: 09-15-2001, 09:51 PM

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