Click here to Skip to main content
15,900,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Loading a CBitmap directly from file system without requiring ::LoadBitmap Pin
Richard MacCutchan26-Nov-10 6:29
mveRichard MacCutchan26-Nov-10 6:29 
AnswerRe: Loading a CBitmap directly from file system without requiring ::LoadBitmap Pin
Ahmed Charfeddine26-Nov-10 6:45
Ahmed Charfeddine26-Nov-10 6:45 
Questionnot recv()'ing everything [modified] Pin
ALLERSLIT26-Nov-10 4:40
ALLERSLIT26-Nov-10 4:40 
AnswerRe: not recv()'ing everything Pin
Ahmed Charfeddine26-Nov-10 5:37
Ahmed Charfeddine26-Nov-10 5:37 
GeneralRe: not recv()'ing everything [modified] Pin
ALLERSLIT26-Nov-10 5:57
ALLERSLIT26-Nov-10 5:57 
GeneralRe: not recv()'ing everything Pin
Ahmed Charfeddine26-Nov-10 6:40
Ahmed Charfeddine26-Nov-10 6:40 
AnswerRe: not recv()'ing everything Pin
Richard MacCutchan26-Nov-10 6:20
mveRichard MacCutchan26-Nov-10 6:20 
QuestionHow to detect if the containing popup window is deactivated? Pin
Code-o-mat26-Nov-10 4:32
Code-o-mat26-Nov-10 4:32 
Hello people.

I have a tooltip-like system that shows up information in a popup window based on where the mouse cursor points. Works fine most of the time, but when there's a message box or other modal dialog popping up because of certain events hapening in the background, the tooltip windows just stays on the screen. I guess this is because once the parent window containing the control that has the tooltips is deactivated/disabled (because of the modal dialog), it no longer receives any mouse messages thus the "tooltip" will think that the mouse is still pointing at the given location (since there's no WM_MOUSEMOVE, no WM_MOUSELEAVE...). I used the usual mouse messages (WM_MOUSEMOVE, WM_LBUTTONDOWN...) along with TrackMouseEvent[^] to know when and what to show and hide. But i don't know how to handle the case when we no longer receive any mouse input. One way i guess would be to handle WM_ACTIVATE in the parent window and then channel the event towards the child that has the tooltips but this seems to be quite a non-portable and ugly solution. So anyone knows how to do this right?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world.
Fry: But this is HDTV. It's got better resolution than the real world <

AnswerRe: How to detect if the containing popup window is deactivated? Pin
Ahmed Charfeddine26-Nov-10 5:22
Ahmed Charfeddine26-Nov-10 5:22 
GeneralRe: How to detect if the containing popup window is deactivated? Pin
Code-o-mat26-Nov-10 5:30
Code-o-mat26-Nov-10 5:30 
GeneralRe: How to detect if the containing popup window is deactivated? Pin
Ahmed Charfeddine26-Nov-10 5:47
Ahmed Charfeddine26-Nov-10 5:47 
GeneralRe: How to detect if the containing popup window is deactivated? Pin
Code-o-mat26-Nov-10 6:04
Code-o-mat26-Nov-10 6:04 
QuestionLPSTR or something like that Pin
Krauze26-Nov-10 3:49
Krauze26-Nov-10 3:49 
AnswerRe: LPSTR or something like that Pin
Ahmed Charfeddine26-Nov-10 5:14
Ahmed Charfeddine26-Nov-10 5:14 
GeneralRe: LPSTR or something like that Pin
Krauze26-Nov-10 14:32
Krauze26-Nov-10 14:32 
AnswerRe: LPSTR or something like that Pin
Chris Losinger26-Nov-10 5:15
professionalChris Losinger26-Nov-10 5:15 
GeneralRe: LPSTR or something like that Pin
Krauze26-Nov-10 14:33
Krauze26-Nov-10 14:33 
AnswerRe: LPSTR or something like that Pin
yu-jian26-Nov-10 6:19
yu-jian26-Nov-10 6:19 
GeneralRe: LPSTR or something like that Pin
Krauze26-Nov-10 14:33
Krauze26-Nov-10 14:33 
GeneralRe: LPSTR or something like that Pin
yu-jian28-Nov-10 4:08
yu-jian28-Nov-10 4:08 
QuestionBlack out the application. Pin
Le@rner26-Nov-10 1:07
Le@rner26-Nov-10 1:07 
AnswerRe: Black out the application. Pin
CPallini26-Nov-10 1:28
mveCPallini26-Nov-10 1:28 
GeneralRe: Black out the application. Pin
Le@rner26-Nov-10 1:30
Le@rner26-Nov-10 1:30 
GeneralRe: Black out the application. Pin
CPallini26-Nov-10 1:39
mveCPallini26-Nov-10 1:39 
GeneralRe: Black out the application. Pin
Luc Pattyn26-Nov-10 1:57
sitebuilderLuc Pattyn26-Nov-10 1:57 

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.