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

C / C++ / MFC

 
Questiontext length and CStatic object Pin
Russell'8-Mar-06 4:52
Russell'8-Mar-06 4:52 
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 
The problem is that (for example)
my Dialog width is 150 pxl,
it contains a CStatic (width=100)

But sometimes the text needs 120 pxl so te text is cutted (at the end).D'Oh! | :doh:

My solution is to redraw the Dialog where:
CStatic has 130 pxl (width) and Dialog 160.

I have the code ready for everyrhing, and now I need only to know the string length.Confused | :confused:


Have a nice code day Wink | ;)


GeneralRe: text length and CStatic object Pin
David Crow8-Mar-06 5:43
David Crow8-Mar-06 5:43 
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 

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.