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

C / C++ / MFC

 
QuestionHow do you refresh/update a parent dialog when Modal child dialog is active Pin
JJeffrey24-Feb-09 16:34
JJeffrey24-Feb-09 16:34 
AnswerRe: How do you refresh/update a parent dialog when Modal child dialog is active Pin
ashtwin24-Feb-09 16:57
ashtwin24-Feb-09 16:57 
GeneralRe: How do you refresh/update a parent dialog when Modal child dialog is active Pin
JJeffrey24-Feb-09 21:41
JJeffrey24-Feb-09 21:41 
AnswerRe: How do you refresh/update a parent dialog when Modal child dialog is active Pin
«_Superman_»24-Feb-09 17:41
professional«_Superman_»24-Feb-09 17:41 
QuestionProblem in displaying tooltip Pin
ashtwin24-Feb-09 16:04
ashtwin24-Feb-09 16:04 
AnswerRe: Problem in displaying tooltip Pin
Code-o-mat24-Feb-09 21:40
Code-o-mat24-Feb-09 21:40 
QuestionRe: Problem in displaying tooltip Pin
ashtwin25-Feb-09 1:02
ashtwin25-Feb-09 1:02 
AnswerRe: Problem in displaying tooltip [modified] Pin
Code-o-mat25-Feb-09 1:20
Code-o-mat25-Feb-09 1:20 
Am not completely sure but it should work since as far as i know the dialog, from the perspecfive of the tooltip is just a CWnd like any other... How did you create the region you specified for it, what coords did you use?

I think what you could do is to somehow calculate the border area's position in client coordinates and add these to the tooltip. Then, when WM_NCMOUSEMOVE comes in, convert the mouse coords to client coords of the window, and feed these to the tooltip with WM_MOUSEMOVE instead of WM_NCMOUSEMOVE. No idea if this would work or not, but it might be worth a try. So i mean something like this:
...
case WM_NCMOUSEMOVE:
{
  CPoint Pt(lParam);
  ScreenToClient(Pt);

  MSG msg;
  msg.hwnd    = m_hWnd;
  msg.message = WM_MOUSEMOVE;
  msg.wParam  = wParam;
  msg.lParam  = MAKELPARAM(Pt.x, Pt.y);
  mLeftToolTip.RelayEvent(&msg);
}
...


[edit] Hey, i just tryed it out, you don't need all this fancypants "message converting" thing, if you feed the tooltip the coordinates of the borders in client-space then it will work flawlessly.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <

modified on Wednesday, February 25, 2009 8:34 AM

GeneralRe: Problem in displaying tooltip Pin
ashtwin25-Feb-09 21:23
ashtwin25-Feb-09 21:23 
QuestionBest Location for DB Files Pin
Bram van Kampen24-Feb-09 14:38
Bram van Kampen24-Feb-09 14:38 
QuestionHow to get the fullpath from argument of my application (VS C++ 2005)? Pin
nhatvhm24-Feb-09 14:05
nhatvhm24-Feb-09 14:05 
AnswerRe: How to get the fullpath from argument of my application (VS C++ 2005)? Pin
W. Kleinschmit24-Feb-09 14:45
W. Kleinschmit24-Feb-09 14:45 
AnswerRe: How to get the fullpath from argument of my application (VS C++ 2005)? Pin
ky_rerun24-Feb-09 14:47
ky_rerun24-Feb-09 14:47 
AnswerRe: How to get the fullpath from argument of my application (VS C++ 2005)? Pin
«_Superman_»24-Feb-09 17:51
professional«_Superman_»24-Feb-09 17:51 
QuestionAll pipes intances are busy Pin
Arif Liminto24-Feb-09 14:04
professionalArif Liminto24-Feb-09 14:04 
QuestionCan someone check this in VC++ 2008 Pin
cmk24-Feb-09 13:39
cmk24-Feb-09 13:39 
AnswerRe: Can someone check this in VC++ 2008 Pin
Stuart Dootson25-Feb-09 8:14
professionalStuart Dootson25-Feb-09 8:14 
GeneralRe: Can someone check this in VC++ 2008 Pin
cmk25-Feb-09 9:29
cmk25-Feb-09 9:29 
QuestionMy Javascript gone as far as it can, I need some C++ starting points Pin
skieeterno24-Feb-09 12:12
skieeterno24-Feb-09 12:12 
QuestionAccess array data Pin
necy3624-Feb-09 9:56
necy3624-Feb-09 9:56 
AnswerRe: Access array data Pin
Larry J. Siddens24-Feb-09 10:08
Larry J. Siddens24-Feb-09 10:08 
GeneralRe: Access array data Pin
necy3625-Feb-09 3:34
necy3625-Feb-09 3:34 
GeneralRe: Access array data Pin
Larry J. Siddens27-Feb-09 12:24
Larry J. Siddens27-Feb-09 12:24 
GeneralRe: Access array data Pin
necy362-Mar-09 2:52
necy362-Mar-09 2:52 
QuestionRe: Access array data Pin
CPallini24-Feb-09 11:33
mveCPallini24-Feb-09 11:33 

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.