Click here to Skip to main content
15,894,106 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to retrieve the all drives in a computer and their size using VC++ Code Pin
Hamid_RT28-Aug-09 4:59
Hamid_RT28-Aug-09 4:59 
QuestionDC to Bitmap Pin
LuisFilipeSa27-Aug-09 22:13
LuisFilipeSa27-Aug-09 22:13 
AnswerRe: DC to Bitmap Pin
CPallini27-Aug-09 22:38
mveCPallini27-Aug-09 22:38 
GeneralRe: DC to Bitmap Pin
LuisFilipeSa27-Aug-09 23:42
LuisFilipeSa27-Aug-09 23:42 
GeneralRe: DC to Bitmap Pin
CPallini27-Aug-09 23:56
mveCPallini27-Aug-09 23:56 
GeneralRe: DC to Bitmap Pin
LuisFilipeSa30-Aug-09 23:33
LuisFilipeSa30-Aug-09 23:33 
QuestionOleDb Application Pin
andrew_dk27-Aug-09 21:50
andrew_dk27-Aug-09 21:50 
QuestionTracking tooltip double-click problem when using XP manifest (ComCtl32.dl) [modified] Pin
Moak27-Aug-09 13:48
Moak27-Aug-09 13:48 
Hi,

I created a tracking tooltip which works fine on Windows XP without a manifest, the tooltip is using TTF_TRACK and TTF_TRANSPARENT tooltip flags. When I add a manifest the left mouse click still works as expected (control behind tooltip receives WM_LBUTTONDOWN), but a double-click will not work (control behind the tooltip receives no WM_LBUTTONDBLCLK). Also the dialog loses focus when double-clicking over the tooltip, I am guessing that the tooltip gets the focus.

I needed some time to rule out any other cause for this problem, confirmed that nobody else is stealing messages, it's just triggered by using a manifest in order to get XP Visual styles[^]. It looks like the tooltip implementation in ComCtl32.dll Version 6 is different and double-click mouse events are not forwarded to the parent window. Anyone has an idea how to fix this problem? Thanks!

Here is my code to create the tooltip:
m_hTooltip = ::CreateWindowEx(WS_EX_TOPMOST, TOOLTIPS_CLASS, NULL,
  WS_POPUP | TTS_NOPREFIX | TTS_ALWAYSTIP,
  CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
  m_hWnd, NULL, NULL, NULL);
if(m_hTooltip)
{
    TOOLINFO ti;
    memset(&ti, 0, sizeof(ti));
    ti.cbSize = sizeof(ti);
    ti.uFlags = TTF_TRACK | TTF_ABSOLUTE | TTF_TRANSPARENT | TTF_IDISHWND;
    ti.hwnd = m_hWnd;
    ti.uId = (UINT)m_hTooltip;
    ::SendMessage(m_hTooltip, TTM_ADDTOOL, 0, (LPARAM)&ti);
}

And then later to enable/disable the tooltip:
if(bEnable)
{
    ti.lpszText = (LPTSTR)pText;
    ::SendMessage(m_hTooltip, TTM_UPDATETIPTEXT, 0, (LPARAM) &ti);
    ::SendMessage(m_hTooltip, TTM_TRACKPOSITION, 0, (LPARAM) MAKELONG(pRect->left, pRect->top));
    ::SendMessage(m_hTooltip, TTM_TRACKACTIVATE, TRUE, (LPARAM)&ti);
} else {
    ::SendMessage(m_hTooltip, TTM_TRACKACTIVATE, FALSE, (LPARAM)&ti);
}



AnswerRe: Tracking tooltip double-click problem when using XP manifest (ComCtl32.dl) Pin
Moak1-Sep-09 4:25
Moak1-Sep-09 4:25 
QuestionUsing GetThreadContext to get the Program Counter of a thread Pin
Code-o-mat27-Aug-09 11:15
Code-o-mat27-Aug-09 11:15 
GeneralRe: Using GetThreadContext to get the Program Counter of a thread Pin
harold aptroot27-Aug-09 11:48
harold aptroot27-Aug-09 11:48 
GeneralRe: Using GetThreadContext to get the Program Counter of a thread Pin
Code-o-mat27-Aug-09 12:07
Code-o-mat27-Aug-09 12:07 
GeneralRe: Using GetThreadContext to get the Program Counter of a thread Pin
harold aptroot27-Aug-09 12:11
harold aptroot27-Aug-09 12:11 
GeneralRe: Using GetThreadContext to get the Program Counter of a thread Pin
Code-o-mat27-Aug-09 20:19
Code-o-mat27-Aug-09 20:19 
Questionraw input only to an application Pin
Manikandan27-Aug-09 7:47
Manikandan27-Aug-09 7:47 
QuestionIllegal Indirection Error - CertFindChainInStore Pin
mypicturefaded27-Aug-09 6:24
mypicturefaded27-Aug-09 6:24 
AnswerRe: Illegal Indirection Error - CertFindChainInStore Pin
Rajesh R Subramanian27-Aug-09 6:42
professionalRajesh R Subramanian27-Aug-09 6:42 
GeneralRe: Illegal Indirection Error - CertFindChainInStore Pin
mypicturefaded27-Aug-09 6:50
mypicturefaded27-Aug-09 6:50 
GeneralRe: Illegal Indirection Error - CertFindChainInStore Pin
Rajesh R Subramanian27-Aug-09 9:52
professionalRajesh R Subramanian27-Aug-09 9:52 
GeneralRe: Illegal Indirection Error - CertFindChainInStore Pin
David Crow27-Aug-09 10:05
David Crow27-Aug-09 10:05 
GeneralRe: Illegal Indirection Error - CertFindChainInStore Pin
mypicturefaded27-Aug-09 10:06
mypicturefaded27-Aug-09 10:06 
QuestionRe: Illegal Indirection Error - CertFindChainInStore Pin
David Crow27-Aug-09 10:40
David Crow27-Aug-09 10:40 
AnswerRe: Illegal Indirection Error - CertFindChainInStore Pin
mypicturefaded28-Aug-09 4:33
mypicturefaded28-Aug-09 4:33 
GeneralRe: Illegal Indirection Error - CertFindChainInStore Pin
Randor 28-Aug-09 5:07
professional Randor 28-Aug-09 5:07 
QuestionMaximize window Pin
zhenek9127-Aug-09 4:49
zhenek9127-Aug-09 4:49 

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.