Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMEMdc not working with SetWindowOrg? Pin
aldeba3-Jun-02 14:49
aldeba3-Jun-02 14:49 
AnswerRe: MEMdc not working with SetWindowOrg? Pin
Ed Gadziemski3-Jun-02 15:14
professionalEd Gadziemski3-Jun-02 15:14 
GeneralRe: MEMdc not working with SetWindowOrg? Pin
aldeba3-Jun-02 15:48
aldeba3-Jun-02 15:48 
GeneralRe: MEMdc not working with SetWindowOrg? Pin
Ed Gadziemski4-Jun-02 3:50
professionalEd Gadziemski4-Jun-02 3:50 
QuestionHow do i make a fully-qualified PIDL out of a single-level PIDL? Pin
redeemer3-Jun-02 13:24
redeemer3-Jun-02 13:24 
QuestionSpin Control ?? Pin
BlackDogEngineering3-Jun-02 13:16
BlackDogEngineering3-Jun-02 13:16 
AnswerRe: Spin Control ?? Pin
aldeba3-Jun-02 14:38
aldeba3-Jun-02 14:38 
GeneralChanging Treeview TVS_INFOTIP timeouts Pin
Hydra3-Jun-02 12:19
Hydra3-Jun-02 12:19 
I'm using WTL 7.0 and I can't find a way of changing the default timeout for the treeviews custom tooltips that are displayed with the TVS_INFOTIP style.

As soon as you hover over the treeview, the tip is displayed.

I want it to come up after about 1/2 a second.

I've got a treeview created like this:

HWND tree = m_tree.Create(m_hWnd,NULL,NULL,
TVS_SHOWSELALWAYS | TVS_HASBUTTONS |
TVS_LINESATROOT | TVS_HASLINES |
TVS_DISABLEDRAGDROP | TVS_INFOTIP |
WS_CHILD | WS_VISIBLE);

and I have a MESSAGE_MAP that contains this:

NOTIFY_CODE_HANDLER(TVN_GETINFOTIP, OnTVNGetInfoTip);

and I have a function which sets the tool tip text, and the tooltip is displayed correctly when I hover over it.

If, after i create the treeview, i were to do this:

CToolTipCtrl pToolTip = m_tree.GetToolTips();
if (pToolTip)
{
pToolTip.Activate(TRUE);
int n;
n = pToolTip.GetDelayTime(TTDT_INITIAL);
n = pToolTip.GetDelayTime(TTDT_AUTOPOP);
n = pToolTip.GetDelayTime(TTDT_RESHOW);
}

n would be set to the following values:

500
4000
80

Which is right, but these values are not used.

Why not ? and how do i make them do what i want.

Note, that if I don't specify TVS_INFOTIP the tooltips are only displayed when the treeview item under the mouse pointer is not fully displayed, and even then my custom tool tip is NOT displayed (e.g. it doesn't call my "OnTVNGetInfoTip()" via the message map.)

GeneralDebugging causing exceptions Pin
moredip3-Jun-02 12:14
moredip3-Jun-02 12:14 
GeneralRe: Debugging causing exceptions Pin
Alexandru Savescu4-Jun-02 0:53
Alexandru Savescu4-Jun-02 0:53 
GeneralComboBox & autocompleting with visibled droplist & error in Win98 Pin
Wizard_013-Jun-02 11:55
Wizard_013-Jun-02 11:55 
GeneralPointer and Arrays Pin
RaphaelBr3-Jun-02 11:33
RaphaelBr3-Jun-02 11:33 
GeneralRe: Pointer and Arrays Pin
Abin3-Jun-02 14:32
Abin3-Jun-02 14:32 
GeneralRe: Pointer and Arrays Pin
Rama Krishna Vavilala3-Jun-02 15:57
Rama Krishna Vavilala3-Jun-02 15:57 
QuestionHowto change screen resolution? Pin
Joshua Nussbaum3-Jun-02 11:20
Joshua Nussbaum3-Jun-02 11:20 
AnswerRe: Howto change screen resolution? Pin
Ravi Bhavnani3-Jun-02 11:25
professionalRavi Bhavnani3-Jun-02 11:25 
AnswerRe: Howto change screen resolution? Pin
Tomasz Sowinski3-Jun-02 11:36
Tomasz Sowinski3-Jun-02 11:36 
AnswerRe: Howto change screen resolution? Pin
Ed Gadziemski3-Jun-02 11:52
professionalEd Gadziemski3-Jun-02 11:52 
GeneralFix it please Pin
Jon Sagara3-Jun-02 11:04
Jon Sagara3-Jun-02 11:04 
GeneralRe: Fix it please Pin
Steve L.3-Jun-02 11:15
Steve L.3-Jun-02 11:15 
GeneralRe: Fix it please Pin
Ed Gadziemski3-Jun-02 11:54
professionalEd Gadziemski3-Jun-02 11:54 
GeneralRe: #include questions Pin
Joaquín M López Muñoz3-Jun-02 11:00
Joaquín M López Muñoz3-Jun-02 11:00 
Generaljavascript ... Pin
craigk3-Jun-02 9:38
craigk3-Jun-02 9:38 
GeneralRe: javascript ... Pin
Joaquín M López Muñoz3-Jun-02 9:55
Joaquín M López Muñoz3-Jun-02 9:55 
GeneralRe: javascript ... Pin
craigk3-Jun-02 11:51
craigk3-Jun-02 11:51 

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.