Window Border Size

This is a discussion on Window Border Size within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I put a bitmap in a window that I thought it would fit in, but part of the right ...

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    31

    Window Border Size

    Hi, I put a bitmap in a window that I thought it would fit in, but part of the right side of the bitmap is missing. I set the width to be 400 pixels, and the drawing area is obviously smaller than that. How many pixels do the left, right, and borders, as well as the top title bar, take up?

  2. #2
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    You could try calculating the size you need then changing the client size, not the window size.

  3. #3
    Registered User
    Join Date
    Feb 2005
    Posts
    31
    Thanks, that helped a bunch!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  2. opengl help
    By heat511 in forum Game Programming
    Replies: 4
    Last Post: 04-05-2004, 01:08 AM
  3. Replies: 11
    Last Post: 03-25-2003, 04:13 PM
  4. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM
  5. Invoking MSWord
    By Donn in forum C Programming
    Replies: 21
    Last Post: 09-08-2001, 04:08 PM

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