Click here to Skip to main content
15,921,779 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 'CDocument::UpdateAllViews' : illegal call of non-static member function problem Pin
trustno128-Jan-03 21:14
trustno128-Jan-03 21:14 
GeneralRe: 'CDocument::UpdateAllViews' : illegal call of non-static member function problem Pin
boon kian30-Jan-03 2:02
boon kian30-Jan-03 2:02 
Generalglobal mouse capture Pin
Member 10559028-Jan-03 18:16
Member 10559028-Jan-03 18:16 
GeneralRe: global mouse capture Pin
Moak28-Jan-03 20:11
Moak28-Jan-03 20:11 
GeneralRe: global mouse capture Pin
Member 10559028-Jan-03 20:34
Member 10559028-Jan-03 20:34 
GeneralRe: global mouse capture Pin
Joan M28-Jan-03 21:26
professionalJoan M28-Jan-03 21:26 
GeneralRe: global mouse capture Pin
Moak28-Jan-03 21:57
Moak28-Jan-03 21:57 
GeneralRe: global mouse capture Pin
Roger Allen29-Jan-03 1:10
Roger Allen29-Jan-03 1:10 
You need to make use of TrackMouseEvent. The trick is that entering one of you dialogs child windows will also trigger this, so you will need to do a GetCursorPos() and WindowFromPoint() and then see whether the window with the mouse in it is a child of your dialog. If it is, you then need to retrack the mouse event again, until it leaves the child window and enters/leaves all the windows of your dialog. At the point where its not in your dialog or a child of your dialog you can then roll up your window.

Its a bit difficult to get right (we did it here). The above bit was the hardest bit to get working correctly.


Roger Allen
Sonork 100.10016

WHats brown and sticky?
A stick or some smelly stuff!

GeneralRe: global mouse capture Pin
Member 10559029-Jan-03 13:14
Member 10559029-Jan-03 13:14 
GeneralDLL class based on pure virtual base class not in DLL Pin
rex66628-Jan-03 15:02
rex66628-Jan-03 15:02 
GeneralRe: DLL class based on pure virtual base class not in DLL Pin
Alvaro Mendez28-Jan-03 16:38
Alvaro Mendez28-Jan-03 16:38 
GeneralRe: DLL class based on pure virtual base class not in DLL Pin
rex66628-Jan-03 16:51
rex66628-Jan-03 16:51 
GeneralRe: DLL class based on pure virtual base class not in DLL Pin
Alvaro Mendez28-Jan-03 18:09
Alvaro Mendez28-Jan-03 18:09 
GeneralCovert Hex value to string Pin
Paul Farry28-Jan-03 15:02
professionalPaul Farry28-Jan-03 15:02 
Generalstr.Format("%.02X",bit[i]) Pin
whelk28-Jan-03 16:08
whelk28-Jan-03 16:08 
Generalstrange problem Pin
MemLeak28-Jan-03 10:53
MemLeak28-Jan-03 10:53 
GeneralRe: strange problem Pin
AlexO28-Jan-03 11:10
AlexO28-Jan-03 11:10 
GeneralNumber of days between two days Pin
Anton A. Loukine28-Jan-03 10:29
Anton A. Loukine28-Jan-03 10:29 
GeneralRe: Number of days between two days Pin
Tim Smith28-Jan-03 10:33
Tim Smith28-Jan-03 10:33 
GeneralRe: Number of days between two days Pin
Alvaro Mendez28-Jan-03 11:45
Alvaro Mendez28-Jan-03 11:45 
GeneralLet's complicate the matter a bit ... Pin
Anton A. Loukine29-Jan-03 3:26
Anton A. Loukine29-Jan-03 3:26 
GeneralRe: Let's complicate the matter a bit ... Pin
Alvaro Mendez29-Jan-03 4:24
Alvaro Mendez29-Jan-03 4:24 
QuestionON_COMMAND for a dynamic menu? Pin
ns28-Jan-03 10:07
ns28-Jan-03 10:07 
AnswerRe: ON_COMMAND for a dynamic menu? Pin
ns28-Jan-03 11:23
ns28-Jan-03 11:23 
GeneralProperty Pages and Buttons Pin
John W Hagen28-Jan-03 10:03
John W Hagen28-Jan-03 10:03 

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.