Click here to Skip to main content
15,884,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCButton::DrawItem not called when owner dialog is "Restored" Pin
Albert Holguin28-Jun-11 9:24
professionalAlbert Holguin28-Jun-11 9:24 
AnswerRe: CButton::DrawItem not called when owner dialog is "Restored" Pin
Code-o-mat28-Jun-11 22:12
Code-o-mat28-Jun-11 22:12 
GeneralRe: CButton::DrawItem not called when owner dialog is "Restored" Pin
Albert Holguin29-Jun-11 7:51
professionalAlbert Holguin29-Jun-11 7:51 
GeneralRe: CButton::DrawItem not called when owner dialog is "Restored" Pin
Albert Holguin29-Jun-11 7:52
professionalAlbert Holguin29-Jun-11 7:52 
GeneralRe: CButton::DrawItem not called when owner dialog is "Restored" Pin
Code-o-mat29-Jun-11 7:56
Code-o-mat29-Jun-11 7:56 
QuestionREAD or WRITE .XLS File Pin
svkhadilkar28-Jun-11 6:01
svkhadilkar28-Jun-11 6:01 
AnswerRe: READ or WRITE .XLS File Pin
Richard MacCutchan28-Jun-11 6:55
mveRichard MacCutchan28-Jun-11 6:55 
Questionmissing zero in ostringstream format [modified] Pin
ed welch28-Jun-11 3:58
ed welch28-Jun-11 3:58 
I'm having trouble setting precision for floats using ostringstream.
I want all floats to have one digit after the decimal point (i.e 1.0f and 10.0f to be formated as "1.0" and "10.0"). However the 10 is coming out as "10.".
Is there any way to do it?
This is my code:
ostringstream os;
float incRate = 1.0f;
os.setf(ios_base::showpoint);
os << "incRate: " << setprecision(2) << incRate << 


modified on Tuesday, June 28, 2011 10:53 AM

AnswerRe: missing zero in ostringstream format Pin
enhzflep28-Jun-11 5:24
enhzflep28-Jun-11 5:24 
GeneralRe: missing zero in ostringstream format Pin
ed welch28-Jun-11 5:31
ed welch28-Jun-11 5:31 
GeneralRe: missing zero in ostringstream format Pin
enhzflep28-Jun-11 5:56
enhzflep28-Jun-11 5:56 
Question_atoi64 in VS10 Pin
gomathylakshmanan28-Jun-11 3:43
gomathylakshmanan28-Jun-11 3:43 
AnswerRe: _atoi64 in VS10 PinPopular
Chuck O'Toole28-Jun-11 5:21
Chuck O'Toole28-Jun-11 5:21 
QuestionON_NOTIFY_REFLECT_EX called twice Pin
_Flaviu27-Jun-11 22:06
_Flaviu27-Jun-11 22:06 
QuestionRe: ON_NOTIFY_REFLECT_EX called twice Pin
David Crow28-Jun-11 3:27
David Crow28-Jun-11 3:27 
GeneralRe: ON_NOTIFY_REFLECT_EX called twice Pin
_Flaviu28-Jun-11 4:40
_Flaviu28-Jun-11 4:40 
GeneralRe: ON_NOTIFY_REFLECT_EX called twice Pin
enhzflep28-Jun-11 5:04
enhzflep28-Jun-11 5:04 
GeneralRe: ON_NOTIFY_REFLECT_EX called twice Pin
_Flaviu28-Jun-11 8:06
_Flaviu28-Jun-11 8:06 
GeneralRe: ON_NOTIFY_REFLECT_EX called twice Pin
enhzflep28-Jun-11 9:12
enhzflep28-Jun-11 9:12 
GeneralRe: ON_NOTIFY_REFLECT_EX called twice Pin
David Crow28-Jun-11 16:57
David Crow28-Jun-11 16:57 
GeneralRe: ON_NOTIFY_REFLECT_EX called twice Pin
enhzflep28-Jun-11 21:19
enhzflep28-Jun-11 21:19 
QuestionHow to get clsid from GUID of a class Pin
gtag27-Jun-11 21:21
gtag27-Jun-11 21:21 
QuestionRe: How to get clsid from GUID of a class Pin
CPallini27-Jun-11 21:34
mveCPallini27-Jun-11 21:34 
QuestionDispatchID Failed... Pin
yaxiya27-Jun-11 16:25
yaxiya27-Jun-11 16:25 
AnswerRe: DispatchID Failed... Pin
barneyman27-Jun-11 17:40
barneyman27-Jun-11 17:40 

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.