Click here to Skip to main content
15,915,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OpenDocumentFile Pin
Roger Allen29-Jan-03 1:35
Roger Allen29-Jan-03 1:35 
GeneralRe: OpenDocumentFile Pin
Dov Sherman29-Jan-03 6:40
Dov Sherman29-Jan-03 6:40 
GeneralOnPaint( ) -- how do I Pin
john john mackey28-Jan-03 5:31
john john mackey28-Jan-03 5:31 
GeneralRe: OnPaint( ) -- how do I Pin
john john mackey28-Jan-03 6:20
john john mackey28-Jan-03 6:20 
QuestionIs it possible to insert a new line (\n) in a tool tip? Pin
Luis E. Cuadrado28-Jan-03 5:22
Luis E. Cuadrado28-Jan-03 5:22 
AnswerRe: Is it possible to insert a new line (\n) in a tool tip? Pin
will138328-Jan-03 5:29
will138328-Jan-03 5:29 
AnswerRe: Is it possible to insert a new line (\n) in a tool tip? Pin
PJ Arends28-Jan-03 7:39
professionalPJ Arends28-Jan-03 7:39 
AnswerRe: Is it possible to insert a new line (\n) in a tool tip? Pin
Luis E. Cuadrado28-Jan-03 8:00
Luis E. Cuadrado28-Jan-03 8:00 
I found a way! Where you create the CToolTipCtrl and and you call the Create() method, you had the following line:

m_ToolTip->SendMessage( TTM_SETMAXTIPWIDTH, 0, 300);

Then in the AddTool() method, you can put \n's and it will add a new line to the tool tip. The code looks pretty much like this:

if ( m_ToolTip == NULL ) <br />
{ <br />
     m_ToolTip = new CToolTipCtrl; <br />
     m_ToolTip->Create(this); <br />
     m_ToolTip->SendMessage( TTM_SETMAXTIPWIDTH, 0, 300); <br />
}<br />
     m_ToolTip->AddTool(this, "One line\nSecond Line\nThird line"); <br />
     m_ToolTip->Activate(TRUE); 


I did this and it worked.

Best regards,

Luis E. Cuadrado
Blush | :O )
GeneralMessage Propagation (MFC related) Pin
will138328-Jan-03 5:06
will138328-Jan-03 5:06 
GeneralLogin Screen Pin
ClemenceD28-Jan-03 5:04
ClemenceD28-Jan-03 5:04 
Generaltarget a global security group c++ Pin
Member 13661828-Jan-03 4:39
Member 13661828-Jan-03 4:39 
GeneralRe: target a global security group c++ Pin
Abbas_Riazi28-Jan-03 4:59
professionalAbbas_Riazi28-Jan-03 4:59 
GeneralRe: target a global security group c++ Pin
Member 13661828-Jan-03 5:08
Member 13661828-Jan-03 5:08 
GeneralRe: target a global security group c++ Pin
Rickard Andersson2028-Jan-03 10:47
Rickard Andersson2028-Jan-03 10:47 
GeneralSite Administration Pin
Abbas_Riazi28-Jan-03 4:35
professionalAbbas_Riazi28-Jan-03 4:35 
GeneralRe: Site Administration Pin
#realJSOP28-Jan-03 4:55
professional#realJSOP28-Jan-03 4:55 
GeneralRe: Site Administration Pin
Abbas_Riazi28-Jan-03 5:02
professionalAbbas_Riazi28-Jan-03 5:02 
Questionhow to disable button on CDlgBar? Pin
gjun lee28-Jan-03 4:03
gjun lee28-Jan-03 4:03 
AnswerRe: how to disable button on CDlgBar? Pin
Rage28-Jan-03 4:16
professionalRage28-Jan-03 4:16 
GeneralRe: how to disable button on CDlgBar? Pin
gjun lee28-Jan-03 5:01
gjun lee28-Jan-03 5:01 
GeneralLocation of call to base class Pin
ns28-Jan-03 4:02
ns28-Jan-03 4:02 
GeneralRe: Location of call to base class Pin
Rage28-Jan-03 4:24
professionalRage28-Jan-03 4:24 
GeneralThanks!Really helpful info Pin
ns28-Jan-03 4:50
ns28-Jan-03 4:50 
GeneralCentering the Cview in MDI Pin
ns28-Jan-03 3:56
ns28-Jan-03 3:56 
GeneralHelp with CString!!! Pin
Lucky200228-Jan-03 2:17
Lucky200228-Jan-03 2:17 

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.