Solved

dialog gets wacky

Posted on 1998-06-18
1
188 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now