Click here to Skip to main content
15,890,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: API & Resizing the SysTray window Pin
Axonn Echysttas28-Feb-05 20:54
Axonn Echysttas28-Feb-05 20:54 
GeneralRe: API & Resizing the SysTray window Pin
Ryan Binns28-Feb-05 23:30
Ryan Binns28-Feb-05 23:30 
GeneralRe: API & Resizing the SysTray window Pin
Axonn Echysttas1-Mar-05 10:21
Axonn Echysttas1-Mar-05 10:21 
GeneralRe: API & Resizing the SysTray window Pin
Ryan Binns1-Mar-05 15:21
Ryan Binns1-Mar-05 15:21 
GeneralRe: API & Resizing the SysTray window Pin
Axonn Echysttas1-Mar-05 21:30
Axonn Echysttas1-Mar-05 21:30 
GeneralRe: API & Resizing the SysTray window Pin
Axonn Echysttas2-Mar-05 11:47
Axonn Echysttas2-Mar-05 11:47 
GeneralRe: API & Resizing the SysTray window Pin
Ryan Binns2-Mar-05 12:43
Ryan Binns2-Mar-05 12:43 
GeneralDrawText+DT_CALCRECT - width of last line Pin
peterchen28-Feb-05 9:44
peterchen28-Feb-05 9:44 
I output some text using DrawText. Now I want to figure out if a certain extra text will still fit the last line.

e.g. I for

|This is the first line and now the|<br />
|second____________________________|


I want to write
|This is the first line and now the|<br />
|second____________________More... |


- but if the "More" doesn't fit, I want to move it to the next line.

So I think need to figure out how many x pixels the last line of the original text occupies.
With DT_CALCRECT I can figure out the extent of the entire text, but not how much on the last line is occupied.

Any ideas?



Pandoras Gift #44: Hope. The one that keeps you on suffering.
boost your code || Fold With Us! || sighist | doxygen

GeneralRe: DrawText+DT_CALCRECT - width of last line Pin
PJ Arends28-Feb-05 10:05
professionalPJ Arends28-Feb-05 10:05 
GeneralRe: DrawText+DT_CALCRECT - width of last line Pin
Ryan Binns28-Feb-05 17:26
Ryan Binns28-Feb-05 17:26 
GeneralRe: DrawText+DT_CALCRECT - width of last line Pin
peterchen28-Feb-05 20:14
peterchen28-Feb-05 20:14 
GeneralRe: DrawText+DT_CALCRECT - width of last line Pin
zhang80060528-Feb-05 20:19
zhang80060528-Feb-05 20:19 
GeneralRe: DrawText+DT_CALCRECT - width of last line Pin
peterchen28-Feb-05 20:38
peterchen28-Feb-05 20:38 
Generalclosing a dialog box created in a different class Pin
itsh1128-Feb-05 8:47
itsh1128-Feb-05 8:47 
GeneralRe: closing a dialog box created in a different class Pin
zhang80060528-Feb-05 20:33
zhang80060528-Feb-05 20:33 
Generallinker error Pin
gyrvwrzp28-Feb-05 7:16
gyrvwrzp28-Feb-05 7:16 
GeneralRe: linker error Pin
PJ Arends28-Feb-05 10:10
professionalPJ Arends28-Feb-05 10:10 
GeneralIcon library format Pin
amehrpour28-Feb-05 7:02
amehrpour28-Feb-05 7:02 
GeneralRe: Icon library format Pin
Michael Dunn28-Feb-05 7:51
sitebuilderMichael Dunn28-Feb-05 7:51 
GeneralRe: Icon library format Pin
amehrpour28-Feb-05 12:11
amehrpour28-Feb-05 12:11 
GeneralRe: Icon library format Pin
David Crow28-Feb-05 8:00
David Crow28-Feb-05 8:00 
Generalcreate full duplex mode network Pin
javad_200528-Feb-05 6:41
javad_200528-Feb-05 6:41 
GeneralNew window in MFC for OpenGL rendering Pin
tordyvel28-Feb-05 6:36
tordyvel28-Feb-05 6:36 
GeneralBitmap Display Help Pin
LighthouseJ28-Feb-05 6:30
LighthouseJ28-Feb-05 6:30 
QuestionFont problem? Pin
RJT23428-Feb-05 6:23
RJT23428-Feb-05 6:23 

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.