DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How to recognize resolution change.

  1. #1
    Benny Guest

    How to recognize resolution change.


    Hi All!
    I am working on an applicaiton that should alwais be vizible, but when resolution
    is changed part of it remains out of the screen.
    How could I recognize the change, or define some window property to force
    it to resize automatically.
    Thank you in advance.

  2. #2
    Paul Little Guest

    Re: How to recognize resolution change.

    Add a message handler for the WM_SETTINGCHANGE message to look for a change
    in the SPI_WORKAREA setting.

    HTH, Paul
    --
    Paul Little, Senior Programmer/Analyst
    SVi Retail Systems
    San Diego, CA

    "Benny" <bepstein@iname.com> wrote in message
    news:3930e0ac$1@news.devx.com...
    >
    > Hi All!
    > I am working on an applicaiton that should alwais be vizible, but when

    resolution
    > is changed part of it remains out of the screen.
    > How could I recognize the change, or define some window property to force
    > it to resize automatically.
    > Thank you in advance.




  3. #3
    obet Guest

    Re: How to recognize resolution change.



    Try this...
    ON_MESSAGE(WM_DISPLAYCHANGE,OnDisplayChange)
    >
    >"Benny" <bepstein@iname.com> wrote in message
    >news:3930e0ac$1@news.devx.com...
    >>
    >> Hi All!
    >> I am working on an applicaiton that should alwais be vizible, but when

    >resolution
    >> is changed part of it remains out of the screen.
    >> How could I recognize the change, or define some window property to force
    >> it to resize automatically.
    >> Thank you in advance.

    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center