?
Solved

Right Justify CEdit Box

Posted on 1997-11-13
2
Medium Priority
?
384 Views
Last Modified: 2013-11-19
I am programming in VC++ 1.52 for Win3.11.  I am using a number of edit boxes in my tax application.  These edit boxes are for users to enter numeric data.  I would like these edit boxes to be right justified.  I looked at the styles for the control, but the only way to choose right justify is if you are using a Multi-Line Edit box.  I am not.

Any help is appreciated.

Thanks
0
Comment
Question by:mtgcpc
[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
2 Comments
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 150 total points
ID: 1309914
You can create a multiline textbox, and just prevent the user from pressing Enter - via the WM_CHAR message. By the way, there is a separate style if you wan't the textbox be numeric only.
0
 

Author Comment

by:mtgcpc
ID: 1309915
Where is this separate style to make the textbox numeric only, and how do you set it?
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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…
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

770 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