Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: text length and CStatic object Pin
KaЯl8-Mar-06 4:55
KaЯl8-Mar-06 4:55 
GeneralRe: text length and CStatic object Pin
Russell'8-Mar-06 5:04
Russell'8-Mar-06 5:04 
GeneralRe: text length and CStatic object Pin
Russell'8-Mar-06 5:04
Russell'8-Mar-06 5:04 
QuestionRe: text length and CStatic object Pin
David Crow8-Mar-06 5:12
David Crow8-Mar-06 5:12 
AnswerRe: text length and CStatic object Pin
Russell'8-Mar-06 5:18
Russell'8-Mar-06 5:18 
QuestionRe: text length and CStatic object Pin
David Crow8-Mar-06 5:23
David Crow8-Mar-06 5:23 
AnswerRe: text length and CStatic object Pin
Russell'8-Mar-06 5:30
Russell'8-Mar-06 5:30 
GeneralRe: text length and CStatic object Pin
David Crow8-Mar-06 5:43
David Crow8-Mar-06 5:43 
You might have to use CDC::GetOutputTextMetrics() along with GetTextExtentExPoint(). Add size.cx and tm.tmAveCharWidth together to see what that produces. Don't forget to select the static control's font into the DC before taking any measurements.


"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

"There is no death, only a change of worlds." - Native American Proverb


GeneralRe: text length and CStatic object Pin
Russell'8-Mar-06 5:49
Russell'8-Mar-06 5:49 
GeneralRe: text length and CStatic object Pin
Nibu babu thomas8-Mar-06 17:22
Nibu babu thomas8-Mar-06 17:22 
Questiondisappearing CPropertyPage's Pin
bljacobs8-Mar-06 4:12
bljacobs8-Mar-06 4:12 
Questionusing CIPAddressCtrl::GetAddress Pin
viperlogic8-Mar-06 4:07
viperlogic8-Mar-06 4:07 
AnswerRe: using CIPAddressCtrl::GetAddress Pin
David Crow8-Mar-06 4:53
David Crow8-Mar-06 4:53 
GeneralRe: using CIPAddressCtrl::GetAddress Pin
viperlogic8-Mar-06 4:56
viperlogic8-Mar-06 4:56 
GeneralRe: using CIPAddressCtrl::GetAddress Pin
David Crow8-Mar-06 5:10
David Crow8-Mar-06 5:10 
GeneralRe: using CIPAddressCtrl::GetAddress Pin
viperlogic8-Mar-06 5:19
viperlogic8-Mar-06 5:19 
Questionwhat is difference of &buf and *buf?? Pin
beardy janggut8-Mar-06 3:56
beardy janggut8-Mar-06 3:56 
AnswerRe: what is difference of &buf and *buf?? Pin
toxcct8-Mar-06 4:13
toxcct8-Mar-06 4:13 
AnswerRe: what is difference of &buf and *buf?? Pin
Cedric Moonen8-Mar-06 4:18
Cedric Moonen8-Mar-06 4:18 
QuestionBrowseObject Pin
MON2058-Mar-06 3:41
MON2058-Mar-06 3:41 
QuestionMS Word Pin
micutzu8-Mar-06 3:37
micutzu8-Mar-06 3:37 
AnswerRe: MS Word Pin
David Crow8-Mar-06 5:08
David Crow8-Mar-06 5:08 
GeneralRe: MS Word Pin
micutzu8-Mar-06 19:24
micutzu8-Mar-06 19:24 
AnswerRe: MS Word Pin
David Crow13-Mar-06 9:18
David Crow13-Mar-06 9:18 
QuestionUsing STL classes in a DLL Pin
pplshero548-Mar-06 3:34
pplshero548-Mar-06 3:34 

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.