Solved

Detect Resolution Change

Posted on 2000-05-09
3
337 Views
Last Modified: 2013-11-20
How do I detect when the user changes the color resolution?  I tried WM_DISPLAYCHANGE, but couldn't get it to work.  I also thought WM_SYSCOLORCHANGE might do the trick, but I'm not sure.

Does anybody know what I should use?
0
Comment
Question by:poohbear_68
3 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 2794449
Did you try WM_SETTINGSCHANGE?
0
 
LVL 1

Author Comment

by:poohbear_68
ID: 2794868
My application doesn't seem to be receiving that message.
0
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 2794973
BEGIN_MESSAGE_MAP(CMyFrameWnd, CFrameWnd)
    ...
    ON_MESSAGE(WM_DISPLAYCHANGE, OnDisplayChange)
    ...
END_MESSAGE_MAP()


LRESULT CMyFrameWnd::OnDisplayChange(WPARAM wParam, LPARAM lParam)
{
    // cBitsPerPixel = wParam;
    // cxScreen = LOWORD(lParam);
    // cyScreen = HIWORD(lParam);

    return CFrameWnd::OnDisplayChange(wParam, lParam);
}
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VB.NET how to use the Vertical ScrollBar 5 114
maxBlock challenge 30 142
withoutTen challenge 14 131
Capture logon name 13 87
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question