Thread: Window Border Size

  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
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    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, 05:13 PM
  4. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM
  5. Invoking MSWord
    By Donn in forum C Programming
    Replies: 21
    Last Post: 09-08-2001, 04:08 PM