Click here to Skip to main content
15,908,264 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Urgent - How do i programatically display submenu items window Pin
Hamid_RT12-Apr-06 1:31
Hamid_RT12-Apr-06 1:31 
GeneralRe: Urgent - How do i programatically display submenu items window Pin
giftsana12-Apr-06 15:51
giftsana12-Apr-06 15:51 
Questionhyperlink copyright name Pin
Ștefan-Mihai MOGA11-Apr-06 23:13
professionalȘtefan-Mihai MOGA11-Apr-06 23:13 
AnswerRe: hyperlink copyright name Pin
Ravi Bhavnani12-Apr-06 5:08
professionalRavi Bhavnani12-Apr-06 5:08 
QuestionAudio drivers: hook up audio streams Pin
imsaady11-Apr-06 23:09
imsaady11-Apr-06 23:09 
AnswerRe: Audio drivers: hook up audio streams Pin
kakan12-Apr-06 0:11
professionalkakan12-Apr-06 0:11 
GeneralRe: Audio drivers: hook up audio streams Pin
imsaady12-Apr-06 6:33
imsaady12-Apr-06 6:33 
QuestionProblem with CToolTipCtrl::AddTool Pin
Chioo11-Apr-06 23:08
Chioo11-Apr-06 23:08 
Hi All,

I am adding tooltip for a chart using CToolTipCtrl. No in-built method of chart drawing is used.

I am adding one column of chart as tool, but I cannot see the tooltip. When I tried to retrive the toolinfo again, the rectangle values are too different.

The code is like this.

CLineChart :: Create()
{
EnableToolTips(true);
mToolTip = new CToolTipCtrl();
mToolTip->Create(this);
}

CLineChart :: Draw()
{
CRect AreaValues; // This rectangle is determined to draw grid for chart

CString tText; // String to hold tool tip text
RECT tRect; // Tool rectangle

while adding columns (for c = 0 to 30)
{
tRect.top = AreaValues.top; // e.g. 8
tRect.bottom = AreaValues.bottom; // e.g. 182
tRect.left = AreaValues.left + column[c].start; // e.g. 8
tRect.right = tRect.left + column.width; // e.g. 50

tText = "Column No.";

mToolTip->AddTool(this, tText, &tRect, c+1);
mToolTip->Activate;

// After this I added code to check the values are set properly or not

CToolInfo ti;
mToolTip->GetToolInfo(ti, this, c+1);

// I checked rectangle and text values. Text values are proper.
// But for rectangle values w.r.t. above given example values I am
// getting something like this.
// ti.rect.top = 8
// ti.rect.bottom = 72
// ti.rect.left = 6
// ti.rect.right = 7
// And left and right values goes on decreasing even like -4, -5
}
}

Am I doing something wrong while adding tool? What can be the solution for this.

Thanks in advance.

Chioo.

Chioo.
QuestionHow to add scrollbar on a view in SDI Pin
zhonglin.liang11-Apr-06 23:06
zhonglin.liang11-Apr-06 23:06 
AnswerRe: How to add scrollbar on a view in SDI Pin
Hamid_RT12-Apr-06 0:56
Hamid_RT12-Apr-06 0:56 
GeneralRe: How to add scrollbar on a view in SDI Pin
zhonglin.liang12-Apr-06 1:47
zhonglin.liang12-Apr-06 1:47 
GeneralRe: How to add scrollbar on a view in SDI Pin
Hamid_RT12-Apr-06 2:27
Hamid_RT12-Apr-06 2:27 
Question[Message Deleted] Pin
imdx8011-Apr-06 22:59
imdx8011-Apr-06 22:59 
AnswerRe: Read / Write Locking, Pin
Ștefan-Mihai MOGA12-Apr-06 0:19
professionalȘtefan-Mihai MOGA12-Apr-06 0:19 
Questionlinker error Pin
vivek.s.vivek11-Apr-06 22:45
vivek.s.vivek11-Apr-06 22:45 
AnswerRe: linker error Pin
prasad_som11-Apr-06 22:52
prasad_som11-Apr-06 22:52 
AnswerRe: linker error Pin
Naveen11-Apr-06 23:01
Naveen11-Apr-06 23:01 
QuestionCopying one window & keep painting it.... Pin
chasetoys11-Apr-06 22:31
chasetoys11-Apr-06 22:31 
QuestionHow to give scrollbars to MDI main window? Pin
Sarvan AL11-Apr-06 21:44
Sarvan AL11-Apr-06 21:44 
QuestionEnable/Disable the MenuItems in a Menu Pin
kiran janaswamy11-Apr-06 21:19
kiran janaswamy11-Apr-06 21:19 
AnswerRe: Enable/Disable the MenuItems in a Menu Pin
Hamid_RT11-Apr-06 21:33
Hamid_RT11-Apr-06 21:33 
AnswerRe: Enable/Disable the MenuItems in a Menu Pin
Michael Dunn11-Apr-06 21:36
sitebuilderMichael Dunn11-Apr-06 21:36 
QuestionBest Debug Tools? Pin
Peter Weyzen11-Apr-06 21:16
Peter Weyzen11-Apr-06 21:16 
AnswerRe: Best Debug Tools? Pin
Ștefan-Mihai MOGA11-Apr-06 21:45
professionalȘtefan-Mihai MOGA11-Apr-06 21:45 
QuestionHow to disable the Enter key? Pin
Aryan S11-Apr-06 21:09
Aryan S11-Apr-06 21:09 

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.