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
Solved

dialog gets wacky

Posted on 1998-06-18
1
192 Views
Last Modified: 2013-11-20
I have a dialog box with a bitmap background and some buttons on top of the background. Anyway, if there is a change in the systems text size (one of the screen properties for you desktop in contol panel) the screens dpi is changed and my buttons are misaligned as the bitmap is a different size due to the dpi change. Is there some way to compensate for this.. without having to write code to line up my buttons ( I have a lot of button code, if there was a way to have the dialog reconfigure for the difference in DPI that would be great)?
0
Comment
Question by:lucidity
1 Comment
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1318202
I would suggest you not use a dialog box in this case. Use a window instead and create the button yourself by using CButton::Create in the window's OnCreate.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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
Turn a spreadsheet into a vba executable. 2 92
either24  challenge 19 101
FizzBuzz challenge 9 82
Thin secure Windows 10 5 102
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

790 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