Solved

dialog gets wacky

Posted on 1998-06-18
1
189 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
lucky13 challenge 11 142
Dell Alienware Graphics Amplifier Driver for non-Alienware systems 18 250
How to convert MFC::CString to UTF8 wchar_t* 10 203
wordappend challenge 8 172
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

774 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