Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: csv file problem Pin
Member 5903101-Apr-10 21:04
Member 5903101-Apr-10 21:04 
GeneralRe: csv file problem Pin
Eugen Podsypalnikov1-Apr-10 21:11
Eugen Podsypalnikov1-Apr-10 21:11 
GeneralRe: csv file problem Pin
Member 5903101-Apr-10 21:24
Member 5903101-Apr-10 21:24 
GeneralRe: csv file problem Pin
Eugen Podsypalnikov1-Apr-10 21:29
Eugen Podsypalnikov1-Apr-10 21:29 
GeneralRe: csv file problem Pin
Member 5903101-Apr-10 21:30
Member 5903101-Apr-10 21:30 
QuestionHow to calculate width and height of different font size ,font style and no of characters ? Pin
shiv@nand1-Apr-10 19:16
shiv@nand1-Apr-10 19:16 
AnswerRe: How to calculate width and height of different font size ,font style and no of characters ? Pin
Adam Roderick J1-Apr-10 19:30
Adam Roderick J1-Apr-10 19:30 
AnswerRe: How to calculate width and height of different font size ,font style and no of characters ? [modified] Pin
Eugen Podsypalnikov1-Apr-10 20:04
Eugen Podsypalnikov1-Apr-10 20:04 
This function could calculate the text dimensions Smile | :) :
void GetTextSize(CSize& cResultSize,     // Receiving size of the text rectangle
                 CDC* pcDC,              // Surface context
                 CFont* pcFont,          // Font for the context
                 const CString& cszText) // Text to measure
{
  if (pcDC && pcFont) {
    CGdiObject* pcOldFont = pcDC->SelectObject(pcFont);
    cResultSize = pcDC->GetTextExtent(cszText); // dimensions of the text
                                                // at the given surface
                                                // with the given font
    pcDC->SelectObject(pcOldFont);
  }
}

virtual void BeHappy() = 0;
modified on Friday, April 2, 2010 2:12 AM

GeneralRe: How to calculate width and height of different font size ,font style and no of characters ? Pin
shiv@nand1-Apr-10 22:46
shiv@nand1-Apr-10 22:46 
GeneralRe: How to calculate width and height of different font size ,font style and no of characters ? Pin
Eugen Podsypalnikov1-Apr-10 23:01
Eugen Podsypalnikov1-Apr-10 23:01 
GeneralRe: How to calculate width and height of different font size ,font style and no of characters ? Pin
shiv@nand2-Apr-10 1:18
shiv@nand2-Apr-10 1:18 
GeneralRe: How to calculate width and height of different font size ,font style and no of characters ? Pin
Eugen Podsypalnikov2-Apr-10 1:53
Eugen Podsypalnikov2-Apr-10 1:53 
GeneralRe: How to calculate width and height of different font size ,font style and no of characters ? Pin
shiv@nand2-Apr-10 2:15
shiv@nand2-Apr-10 2:15 
GeneralRe: How to calculate width and height of different font size ,font style and no of characters ? Pin
Eugen Podsypalnikov2-Apr-10 2:18
Eugen Podsypalnikov2-Apr-10 2:18 
GeneralRe: How to calculate width and height of different font size ,font style and no of characters ? Pin
shiv@nand2-Apr-10 2:25
shiv@nand2-Apr-10 2:25 
QuestionCan I export a makefile from Visual Studio? Pin
Aric Wang1-Apr-10 19:04
Aric Wang1-Apr-10 19:04 
QuestionWhat is your point, then? Pin
CPallini2-Apr-10 0:10
mveCPallini2-Apr-10 0:10 
QuestionHow to write a function that calls a secondary thread and returns back to the main thread? Pin
eight1-Apr-10 19:03
eight1-Apr-10 19:03 
QuestionRe: How to write a function that calls a secondary thread and returns back to the main thread? Pin
Adam Roderick J1-Apr-10 19:27
Adam Roderick J1-Apr-10 19:27 
AnswerRe: How to write a function that calls a secondary thread and returns back to the main thread? Pin
Cedric Moonen1-Apr-10 20:22
Cedric Moonen1-Apr-10 20:22 
GeneralRe: How to write a function that calls a secondary thread and returns back to the main thread? Pin
eight1-Apr-10 20:50
eight1-Apr-10 20:50 
QuestionLong SMS in PDU mode not Done. Pin
Le@rner1-Apr-10 18:59
Le@rner1-Apr-10 18:59 
QuestionSuspend ShellExcuteEx Pin
Orion Star1-Apr-10 11:06
Orion Star1-Apr-10 11:06 
AnswerRe: Suspend ShellExcuteEx Pin
Richard Andrew x641-Apr-10 11:13
professionalRichard Andrew x641-Apr-10 11:13 
GeneralRe: Suspend ShellExcuteEx Pin
Orion Star2-Apr-10 4:12
Orion Star2-Apr-10 4:12 

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.