CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Posts
    11

    How to know the clients moniter resolution

    My problem is to display my web page according to client's moniter resolution.Like if client screen resolution is 640*480,then page should occupy full page .If less it should adjust according to it.

    Like i am using a table to display my contents of my page.Now width of the table should vary according to screen resolution.

    Any help is appreciated
    thanks
    kapil


  2. #2
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    Re: How to know the clients moniter resolution

    Call ::GetSystemMetrics(SM_CXSCREEN) to get the width and ::GetSystemMetrics(SM_CYSCREEN) to get the height. There are many other useful sizes you can get from this function call as well, take a look.



    --
    Jason Teagle
    [email protected]

  3. #3
    Join Date
    Apr 1999
    Posts
    11

    Re: How to know the clients moniter resolution

    Thanks for above solution.But that's i think using C++,i want the solution using ASP or javascript.

    Is it possible doing this in ASP

    kapil



  4. #4
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: How to know the clients moniter resolution

    You are in the wrong discussion group

    Try another one of CodeGuru's groups...

    Sally


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured