Click here to Skip to main content
16,013,918 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to disble the context menu in the file name list in the open file common dialog ? Pin
l a u r e n13-Feb-01 20:34
l a u r e n13-Feb-01 20:34 
GeneralTemplates and forward declarations Pin
Jonas Petterssn12-Feb-01 21:06
Jonas Petterssn12-Feb-01 21:06 
GeneralTemplates and forward declarations - the correct message Pin
Jonas Petterssn12-Feb-01 21:12
Jonas Petterssn12-Feb-01 21:12 
GeneralRe: Templates and forward declarations - the correct message Pin
Walter Gildersleeve12-Feb-01 22:58
Walter Gildersleeve12-Feb-01 22:58 
GeneralEditables Tables in MFC Pin
12-Feb-01 19:48
suss12-Feb-01 19:48 
GeneralRe: Editables Tables in MFC Pin
Christian Graus12-Feb-01 20:21
protectorChristian Graus12-Feb-01 20:21 
GeneralRe: Editables Tables in MFC Pin
l a u r e n13-Feb-01 20:32
l a u r e n13-Feb-01 20:32 
GeneralClipping/MultiLine Pin
12-Feb-01 10:16
suss12-Feb-01 10:16 
I am trying to get some kind of multiline on my CButton. I am using this to center my text:

case vxCBMiddleCenter:
if (m_bMultiLine == TRUE)
{
pDC->DrawText (Caption, ControlRect, DT_WORDBREAK);
}
else
{
pDC->TextOut (Window.Width() / 2 - csSize.cx / 2,
Window.Height() / 2 - csSize.cy / 2,
Caption);
}
break;

Of course I have different case's for the other alignments on my CButton. I am using TextOut to write my CString (Caption), but I can't find a way to break to another line if I cross the Rect (Window) bounds. DT_WORDBREAK will work in my CString contains spaces (This is a test...), but how do I get this (ThisIsATest...) to break to the next line?

Thanks,

Chris


GeneralRe: Clipping/MultiLine Pin
l a u r e n13-Feb-01 20:40
l a u r e n13-Feb-01 20:40 
GeneralCSplitterWnd, split views and views and so on.. Pin
Peter Marino12-Feb-01 7:41
Peter Marino12-Feb-01 7:41 
GeneralRe: CSplitterWnd, split views and views and so on.. Pin
l a u r e n12-Feb-01 9:12
l a u r e n12-Feb-01 9:12 
GeneralRe: CSplitterWnd, split views and views and so on.. Pin
Peter Marino12-Feb-01 12:08
Peter Marino12-Feb-01 12:08 
GeneralIRotView source Pin
astibich12-Feb-01 6:33
astibich12-Feb-01 6:33 
QuestionHow to display generic dialog to connect a network drive (sharing hdd's) Pin
Henrik12-Feb-01 6:12
Henrik12-Feb-01 6:12 
QuestionADO DataGrid Control usage ? Pin
12-Feb-01 6:10
suss12-Feb-01 6:10 
AnswerRe: ADO DataGrid Control usage ? Pin
CodeGuy16-Feb-01 4:41
CodeGuy16-Feb-01 4:41 
GeneralCWebBrowser2 Pin
12-Feb-01 4:28
suss12-Feb-01 4:28 
GeneralHmm, i wonder, how... Pin
12-Feb-01 4:09
suss12-Feb-01 4:09 
GeneralRe: Hmm, i wonder, how... Pin
l a u r e n12-Feb-01 4:20
l a u r e n12-Feb-01 4:20 
GeneralRe: Hmm, i wonder, how... Pin
.::RockNix::.12-Feb-01 4:39
.::RockNix::.12-Feb-01 4:39 
GeneralRe: Hmm, i wonder, how... Pin
12-Feb-01 7:14
suss12-Feb-01 7:14 
GeneralRe: Hmm, i wonder, how... Pin
Erik Funkenbusch12-Feb-01 13:03
Erik Funkenbusch12-Feb-01 13:03 
Generalpseudo-printer like Adobe Acrobar Writer Pin
12-Feb-01 2:54
suss12-Feb-01 2:54 
GeneralRe: pseudo-printer like Adobe Acrobar Writer Pin
l a u r e n12-Feb-01 4:16
l a u r e n12-Feb-01 4:16 
GeneralFILE Pin
12-Feb-01 1:20
suss12-Feb-01 1:20 

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.