Solved

Detect Resolution Change

Posted on 2000-05-09
3
342 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Get filename and folder into excel 7 87
Add content to output file 4 72
how to split multiple lines delimiter : 8 130
c++  placing data into a form and an editbox 5 47
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 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