Thread: Placing GUI in Top Right Corner

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    162
    I take it the 0, 0 value make it start up in the top left, so therefore how can i work out the screensize etc?? If thats the best way to do it??
    Here are two ways:

    1. Use the GetSystemMetrics function with the parameter SM_CXSCREEN, "ScreenWidth = GetSystemMetrics(SM_CXSCREEN);"

    2. Use the GetDeviceCaps function with the GetDC function and HORZRES as parameters, "ScreenWidth = GetDeviceCaps(GetDC(NULL), HORZRES);"

    I recommend the first option
    Last edited by Aidman; 07-16-2003 at 08:42 AM.
    We haven't inherited Earth from our parents; instead we have borrowed her from our children - old Indian saying.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GUI coding, placing of objects
    By jsithy in forum Windows Programming
    Replies: 2
    Last Post: 11-23-2008, 11:59 PM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  3. OpenGL, loading BMP Textures?
    By Zeusbwr in forum Game Programming
    Replies: 12
    Last Post: 12-09-2004, 05:16 PM
  4. Stack functions as arrays instead of node pointers
    By sballew in forum C Programming
    Replies: 8
    Last Post: 12-04-2001, 11:13 AM