Click here to Skip to main content
15,895,656 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unable to move slider position using mouse Pin
Mark Salsbery26-Jan-09 6:46
Mark Salsbery26-Jan-09 6:46 
GeneralRe: Unable to move slider position using mouse [modified] Pin
John50226-Jan-09 7:17
John50226-Jan-09 7:17 
GeneralRe: Unable to move slider position using mouse Pin
Mark Salsbery26-Jan-09 7:26
Mark Salsbery26-Jan-09 7:26 
GeneralRe: Unable to move slider position using mouse [modified] Pin
John50226-Jan-09 22:30
John50226-Jan-09 22:30 
GeneralRe: Unable to move slider position using mouse Pin
Mark Salsbery27-Jan-09 5:58
Mark Salsbery27-Jan-09 5:58 
QuestionTooltip problem Pin
madmax000124-Jan-09 8:30
madmax000124-Jan-09 8:30 
AnswerRe: Tooltip problem Pin
Hans Dietrich25-Jan-09 6:53
mentorHans Dietrich25-Jan-09 6:53 
GeneralRe: Tooltip problem Pin
madmax000125-Jan-09 9:07
madmax000125-Jan-09 9:07 
Hello Hans,

thank you for your answer. I have tried this but it does not work.

After calling AfxGetStaticModuleState() in the GetMessageProc, AfxGetApp() returns a NULL pointer within the proc. So I removed AFX_MANAGE_STATE(AfxGetStaticModuleState( )) and then the pointer is OK. (But here is no change in the tooltip behavior)
 LRESULT CALLBACK GetMessageProc(int nCode, WPARAM wParam, LPARAM lParam)
   {
      // Switch the module state for the correct handle to be used.
      AFX_MANAGE_STATE(AfxGetStaticModuleState( ));
...


I think the problem is not that it is a modeless dialog, because when the dialog is in modeless state, the tooltips work (without any GetMessageProc). This means that PreTranslateMessage within my dialog is called.
The problem only occurs when I call
m_pParentWnd->EnableWindow(FALSE);

in the dialog class.
When I set a breakpoint in PreTranslateMessige procedure of my dialog, I can see that RelayEvent is called (But the Tooltip doens not apear):

Btw: My modeless dialog is created in the mainframe, it is not in a dll.


Any ideas?

regards
AnswerRe: Tooltip problem Pin
KarstenK26-Jan-09 3:20
mveKarstenK26-Jan-09 3:20 
GeneralRe: Tooltip problem Pin
madmax000126-Jan-09 6:11
madmax000126-Jan-09 6:11 
QuestionNeed help regarding the slider Pin
John50224-Jan-09 8:22
John50224-Jan-09 8:22 
QuestionRe: Need help regarding the slider Pin
David Crow24-Jan-09 14:09
David Crow24-Jan-09 14:09 
AnswerRe: Need help regarding the slider Pin
John50225-Jan-09 0:39
John50225-Jan-09 0:39 
GeneralRe: Need help regarding the slider Pin
Mark Salsbery25-Jan-09 7:38
Mark Salsbery25-Jan-09 7:38 
QuestionNeed some help on how to create a Line and how to move that line using mouse options Pin
John50224-Jan-09 4:47
John50224-Jan-09 4:47 
AnswerRe: Need some help on how to create a Line and how to move that line using mouse options Pin
Hamid_RT24-Jan-09 5:15
Hamid_RT24-Jan-09 5:15 
GeneralRe: Need some help on how to create a Line and how to move that line using mouse options Pin
John50224-Jan-09 12:30
John50224-Jan-09 12:30 
AnswerRe: Need some help on how to create a Line and how to move that line using mouse options Pin
PJ Arends24-Jan-09 5:44
professionalPJ Arends24-Jan-09 5:44 
GeneralRe: Need some help on how to create a Line and how to move that line using mouse options Pin
John50224-Jan-09 12:31
John50224-Jan-09 12:31 
AnswerRe: Need some help on how to create a Line and how to move that line using mouse options Pin
bob1697224-Jan-09 7:36
bob1697224-Jan-09 7:36 
GeneralRe: Need some help on how to create a Line and how to move that line using mouse options Pin
John50224-Jan-09 12:33
John50224-Jan-09 12:33 
Questioncode to analyze bitmap then create predefined palette of colors in bitmap? Pin
Richard Perrine24-Jan-09 4:33
Richard Perrine24-Jan-09 4:33 
AnswerRe: code to analyze bitmap then create predefined palette of colors in bitmap? Pin
Stuart Dootson24-Jan-09 5:01
professionalStuart Dootson24-Jan-09 5:01 
GeneralRe: code to analyze bitmap then create predefined palette of colors in bitmap? Pin
Richard Perrine24-Jan-09 5:14
Richard Perrine24-Jan-09 5:14 
AnswerRe: code to analyze bitmap then create predefined palette of colors in bitmap? Pin
Randor 24-Jan-09 6:59
professional Randor 24-Jan-09 6:59 

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.