Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Terminating threads cleanly in a DLL when it is unloaded Pin
Randor 28-Nov-08 12:37
professional Randor 28-Nov-08 12:37 
GeneralRe: Terminating threads cleanly in a DLL when it is unloaded Pin
Code-o-mat29-Nov-08 0:23
Code-o-mat29-Nov-08 0:23 
GeneralRe: Terminating threads cleanly in a DLL when it is unloaded Pin
Randor 29-Nov-08 17:24
professional Randor 29-Nov-08 17:24 
AnswerRe: Terminating threads cleanly in a DLL when it is unloaded Pin
Richard Andrew x6428-Nov-08 12:40
professionalRichard Andrew x6428-Nov-08 12:40 
GeneralRe: Terminating threads cleanly in a DLL when it is unloaded Pin
Code-o-mat28-Nov-08 23:39
Code-o-mat28-Nov-08 23:39 
AnswerRe: Terminating threads cleanly in a DLL when it is unloaded Pin
Jijo.Raj28-Nov-08 12:41
Jijo.Raj28-Nov-08 12:41 
GeneralRe: Terminating threads cleanly in a DLL when it is unloaded Pin
Code-o-mat28-Nov-08 23:56
Code-o-mat28-Nov-08 23:56 
QuestionGDI+ MeasureString - optional codepointsFitted function parameter Pin
bob1697228-Nov-08 10:16
bob1697228-Nov-08 10:16 
There is a variation of the GDI+ Graphics class method "MeasureString" that has an optional parameter "codepointsFitted" that is a pointer to an INT. The documentation states that it is supposed to receive the number of code points that were actually fit into the layout rectangle.

When I try to use this "codepointsFitted" parameter, the INT that is pointed to always has the character count of the input string regardless of whether it indicates that the text bounding rect is larger than the text layout rect.

Has anyone ever gotten this variation of "MeasureString" using the "codepointsFitted" parameter to work? If so, what is the trick to getting that parameter to populate with the correct value?

Status MeasureString(          
    const WCHAR *string,
    INT length,
    const Font *font,
    const SizeF &layoutRectSize,
    const StringFormat *stringFormat,
    SizeF *size,
    INT *codepointsFitted,
    INT *linesFilled
) const;

AnswerRe: GDI+ MeasureString - optional codepointsFitted function parameter Pin
Randor 28-Nov-08 13:27
professional Randor 28-Nov-08 13:27 
GeneralRe: GDI+ MeasureString - optional codepointsFitted function parameter Pin
bob1697228-Nov-08 14:34
bob1697228-Nov-08 14:34 
GeneralRe: GDI+ MeasureString - optional codepointsFitted function parameter Pin
Randor 28-Nov-08 14:48
professional Randor 28-Nov-08 14:48 
QuestionHow to get "MAC Number"? Pin
Joseph Marzbani28-Nov-08 9:43
Joseph Marzbani28-Nov-08 9:43 
AnswerRe: How to get "MAC Number"? Pin
Jijo.Raj28-Nov-08 9:59
Jijo.Raj28-Nov-08 9:59 
GeneralRe: How to get "MAC Number"? Pin
Joseph Marzbani28-Nov-08 10:38
Joseph Marzbani28-Nov-08 10:38 
GeneralRe: How to get "MAC Number"? Pin
Jijo.Raj28-Nov-08 12:36
Jijo.Raj28-Nov-08 12:36 
AnswerRe: How to get "MAC Number"? Pin
Code-o-mat28-Nov-08 10:09
Code-o-mat28-Nov-08 10:09 
GeneralRe: How to get "MAC Number"? Pin
Joseph Marzbani28-Nov-08 10:36
Joseph Marzbani28-Nov-08 10:36 
QuestionHow to Initializing CString in constructor Pin
krishnakumartm28-Nov-08 8:35
krishnakumartm28-Nov-08 8:35 
AnswerRe: How to Initializing CString in constructor Pin
Maximilien28-Nov-08 8:50
Maximilien28-Nov-08 8:50 
AnswerRe: How to Initializing CString in constructor Pin
Code-o-mat28-Nov-08 8:53
Code-o-mat28-Nov-08 8:53 
GeneralRe: How to Initializing CString in constructor Pin
Mark Salsbery28-Nov-08 9:11
Mark Salsbery28-Nov-08 9:11 
QuestionIs Window / Dialog neede for a UI thread Pin
vipin_nvk28-Nov-08 6:45
vipin_nvk28-Nov-08 6:45 
AnswerRe: Is Window / Dialog neede for a UI thread Pin
Code-o-mat28-Nov-08 9:00
Code-o-mat28-Nov-08 9:00 
AnswerRe: Is Window / Dialog neede for a UI thread Pin
Peter Weyzen28-Nov-08 20:24
Peter Weyzen28-Nov-08 20:24 
GeneralRe: Is Window / Dialog neede for a UI thread Pin
vipin_nvk28-Nov-08 23:47
vipin_nvk28-Nov-08 23:47 

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.