Click here to Skip to main content
15,888,301 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: printing problem Pin
Jason Teagle3-Sep-07 22:29
Jason Teagle3-Sep-07 22:29 
AnswerRe: printing problem Pin
Hamid_RT4-Sep-07 1:53
Hamid_RT4-Sep-07 1:53 
Question[Resolved] Hide a window, on loosing mouse attention! [modified] Pin
Hamed Musavi3-Sep-07 20:08
Hamed Musavi3-Sep-07 20:08 
AnswerRe: Hide a window, on loosing mouse attention! Pin
Naveen3-Sep-07 20:52
Naveen3-Sep-07 20:52 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi3-Sep-07 21:37
Hamed Musavi3-Sep-07 21:37 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Naveen3-Sep-07 21:40
Naveen3-Sep-07 21:40 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi3-Sep-07 21:43
Hamed Musavi3-Sep-07 21:43 
AnswerRe: Hide a window, on loosing mouse attention! Pin
Llasus3-Sep-07 21:05
Llasus3-Sep-07 21:05 
Hamed Mosavi wrote:
I thought about hooking to mouse LBDown and doing a PtInRect check to see if it is in my window, but I'm not familiar with hooking. Is there any other way or I shall learn that?


You are right about the LBDown. To know if it is inside your window why don't you get the handler for your dialog and use .GetWindowRect() to obtain the left, right, top and bottom variables.
Then inside the LBDown use those 4 variables and compare it with the CPoint parameter of LBDown.
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi3-Sep-07 21:41
Hamed Musavi3-Sep-07 21:41 
AnswerRe: Hide a window, on loosing mouse attention! Pin
Nishad S3-Sep-07 21:57
Nishad S3-Sep-07 21:57 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi3-Sep-07 22:41
Hamed Musavi3-Sep-07 22:41 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Nishad S3-Sep-07 23:01
Nishad S3-Sep-07 23:01 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi3-Sep-07 23:46
Hamed Musavi3-Sep-07 23:46 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Nishad S4-Sep-07 2:23
Nishad S4-Sep-07 2:23 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi4-Sep-07 5:03
Hamed Musavi4-Sep-07 5:03 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi3-Sep-07 22:45
Hamed Musavi3-Sep-07 22:45 
GeneralRe: Hide a window, on loosing mouse attention! Pin
chandu0043-Sep-07 23:14
chandu0043-Sep-07 23:14 
GeneralRe: Hide a window, on loosing mouse attention! Pin
Hamed Musavi3-Sep-07 23:40
Hamed Musavi3-Sep-07 23:40 
GeneralRe: Hide a window, on loosing mouse attention! Pin
chandu0043-Sep-07 23:56
chandu0043-Sep-07 23:56 
QuestionStatic linking and dlls Pin
vikramlinux3-Sep-07 19:12
vikramlinux3-Sep-07 19:12 
AnswerRe: Static linking and dlls Pin
Cedric Moonen3-Sep-07 20:06
Cedric Moonen3-Sep-07 20:06 
GeneralRe: Static linking and dlls Pin
Nishad S3-Sep-07 22:03
Nishad S3-Sep-07 22:03 
QuestionDisable Task Manager for ALL users? Pin
amirreza yazdanshenas3-Sep-07 18:39
amirreza yazdanshenas3-Sep-07 18:39 
AnswerRe: Disable Task Manager for ALL users? Pin
Anurag Gandhi3-Sep-07 19:14
professionalAnurag Gandhi3-Sep-07 19:14 
GeneralRe: Disable Task Manager for ALL users? Pin
Stephen Hewitt3-Sep-07 19:50
Stephen Hewitt3-Sep-07 19:50 

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.