[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Easy, check for style of a CEdit

Posted on 2006-03-29
2
Medium Priority
?
539 Views
Last Modified: 2013-11-20
Hi,

Easy question, how do I check if a CEdit has the ES_MULTILINE property specified?

I know it's something like:

    CEdit m_Edit;

    bool bIsMultiline = m_Edit.GetStyle() |= ES_MULTILINE ? true : false;

What's the funny bitwise check you can do though?

Thanks
0
Comment
Question by:minnirok
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 16324381
You'll need to use

bool bIsMultiline = m_Edit.GetStyle() & ES_MULTILINE ? true : false;

or a bit simpler

bool bIsMultiline = m_Edit.GetStyle() & ES_MULTILINE;

'&' is the bitwise AND operator.
0
 
LVL 7

Author Comment

by:minnirok
ID: 16324454
Ah yeah that's what I was looking for, thanks.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

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

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…
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 …
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.
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
Suggested Courses

591 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