Click here to Skip to main content
15,911,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Rotate View Pin
Chris Losinger13-Apr-11 3:35
professionalChris Losinger13-Apr-11 3:35 
QuestionHow can find other than The 7 bit default alphabet is present in EditBox? Pin
Le@rner12-Apr-11 21:23
Le@rner12-Apr-11 21:23 
AnswerRe: How can find other than The 7 bit default alphabet is present in EditBox? Pin
Stefan_Lang12-Apr-11 22:33
Stefan_Lang12-Apr-11 22:33 
Two things:

1. Is that even possible? Most windows (including most type of edit boxes or other input controls) don't even accept nonprintable characters, and printable ones should always be 7 bit, unless you're using some exotic alphabet like chinese - in which case you most likely have wide characters (2 byte) anyway.
(Honest question - I do not know the answer)

2. Check the characters for high order bit like this:
bool is7bit(const std::string& input) {
   bool result(true);
   for (std::string::const_iterator it = input.begin(); it != input.end() && result; ++it)
      if (0x80 & *it)
         result = false;
   return result;
}

Note: obviously won't work if translated for multibyte characters since then std::string will contain wide chars as well!
GeneralRe: How can find other than The 7 bit default alphabet is present in EditBox? Pin
Klaus-Werner Konrad13-Apr-11 11:53
Klaus-Werner Konrad13-Apr-11 11:53 
GeneralRe: How can find other than The 7 bit default alphabet is present in EditBox? Pin
Stefan_Lang13-Apr-11 22:31
Stefan_Lang13-Apr-11 22:31 
GeneralRe: How can find other than The 7 bit default alphabet is present in EditBox? Pin
Klaus-Werner Konrad14-Apr-11 11:53
Klaus-Werner Konrad14-Apr-11 11:53 
GeneralRe: How can find other than The 7 bit default alphabet is present in EditBox? Pin
Stefan_Lang14-Apr-11 23:01
Stefan_Lang14-Apr-11 23:01 
QuestionHow can I append menu dynamically ? Pin
_Flaviu12-Apr-11 20:35
_Flaviu12-Apr-11 20:35 
AnswerRe: How can I append menu dynamically ? Pin
_Flaviu12-Apr-11 20:40
_Flaviu12-Apr-11 20:40 
AnswerRe: How can I append menu dynamically ? Pin
వేంకటనారాయణ(venkatmakam)12-Apr-11 20:47
వేంకటనారాయణ(venkatmakam)12-Apr-11 20:47 
GeneralRe: How can I append menu dynamically ? Pin
Niklas L12-Apr-11 22:02
Niklas L12-Apr-11 22:02 
GeneralRe: How can I append menu dynamically ? Pin
_Flaviu12-Apr-11 23:32
_Flaviu12-Apr-11 23:32 
GeneralRe: How can I append menu dynamically ? Pin
_Flaviu12-Apr-11 23:35
_Flaviu12-Apr-11 23:35 
GeneralRe: How can I append menu dynamically ? Pin
_Flaviu13-Apr-11 0:27
_Flaviu13-Apr-11 0:27 
AnswerRe: How can I append menu dynamically ? Pin
వేంకటనారాయణ(venkatmakam)13-Apr-11 1:04
వేంకటనారాయణ(venkatmakam)13-Apr-11 1:04 
GeneralRe: How can I append menu dynamically ? Pin
_Flaviu13-Apr-11 2:03
_Flaviu13-Apr-11 2:03 
GeneralRe: How can I append menu dynamically ? Pin
_Flaviu13-Apr-11 2:22
_Flaviu13-Apr-11 2:22 
AnswerRe: How can I append menu dynamically ? Pin
వేంకటనారాయణ(venkatmakam)13-Apr-11 3:33
వేంకటనారాయణ(venkatmakam)13-Apr-11 3:33 
GeneralRe: How can I append menu dynamically ? Pin
Klaus-Werner Konrad13-Apr-11 11:57
Klaus-Werner Konrad13-Apr-11 11:57 
GeneralRe: How can I append menu dynamically ? Pin
_Flaviu13-Apr-11 18:54
_Flaviu13-Apr-11 18:54 
GeneralRe: How can I append menu dynamically ? Pin
Klaus-Werner Konrad14-Apr-11 11:54
Klaus-Werner Konrad14-Apr-11 11:54 
QuestionHow to get the pixel color from a virtual device context ? Pin
wangningyu12-Apr-11 16:31
wangningyu12-Apr-11 16:31 
AnswerRe: How to get the pixel color from a virtual device context ? Pin
Gwenio12-Apr-11 19:11
Gwenio12-Apr-11 19:11 
QuestionHow to get Jpeg Properties from a jpg file? Pin
Bryan Anslow12-Apr-11 7:40
Bryan Anslow12-Apr-11 7:40 
AnswerRe: How to get Jpeg Properties from a jpg file? Pin
Chris Losinger12-Apr-11 7:49
professionalChris Losinger12-Apr-11 7:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.