Click here to Skip to main content
15,564,736 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionactivex Pin
ramyasangeet24-Feb-06 1:42
ramyasangeet24-Feb-06 1:42 
AnswerRe: activex Pin
khan++24-Feb-06 3:26
khan++24-Feb-06 3:26 
QuestionRe: activex Pin
ramyasangeet24-Feb-06 18:30
ramyasangeet24-Feb-06 18:30 
AnswerRe: activex Pin
khan++25-Feb-06 3:03
khan++25-Feb-06 3:03 
QuestionExclusive window Pin
Nishad S24-Feb-06 1:41
Nishad S24-Feb-06 1:41 
AnswerRe: Exclusive window Pin
Nibu babu thomas24-Feb-06 1:51
Nibu babu thomas24-Feb-06 1:51 
AnswerRe: Exclusive window Pin
khan++24-Feb-06 3:38
khan++24-Feb-06 3:38 
GeneralRe: Exclusive window Pin
ThatsAlok26-Feb-06 22:05
ThatsAlok26-Feb-06 22:05 
khan++ wrote:
3- Now start the timer at about 100ms etc. SetTimer(2,100,NULL);4- In the timer function, check if any of the HWND's in the array has focus. GetFocus(). It will return BOOL to let you know that somebody in that array has the focus. If nobody in that list has the focus, then hide the dialog using ShowWindow(SW_HIDE) etc. or close it, whatever you want.


Hi Khan,
Sorry to trouble you again... Isn't that very Memory/CPU cosuming operation of checking focus every 100 MS.. as I believe you very well versed that timer is very scared resource and should be used properly.

Secondly, you are right that Kill Focus will not work in case of Model Dialog.. as Dialog should be closed to give focus back to parent. but what about ModelLess Dialog... you can easily close it down on receiveing KillFocus message

"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
GeneralRe: Exclusive window Pin
khan++26-Feb-06 22:24
khan++26-Feb-06 22:24 
GeneralRe: Exclusive window Pin
ThatsAlok26-Feb-06 23:08
ThatsAlok26-Feb-06 23:08 
AnswerRe: Exclusive window Pin
ThatsAlok26-Feb-06 22:00
ThatsAlok26-Feb-06 22:00 
GeneralRe: Exclusive window Pin
Nishad S26-Feb-06 22:18
Nishad S26-Feb-06 22:18 
QuestionAccess Denied on GetDC and CreateDC Pin
donnelly_mark24-Feb-06 1:27
donnelly_mark24-Feb-06 1:27 
AnswerRe: Access Denied on GetDC and CreateDC Pin
James Brown24-Feb-06 7:34
James Brown24-Feb-06 7:34 
GeneralRe: Access Denied on GetDC and CreateDC Pin
donnelly_mark24-Feb-06 7:40
donnelly_mark24-Feb-06 7:40 
QuestionEditBoxes, ListBoxes and ComboBoxes painting Pin
ilgale24-Feb-06 1:06
ilgale24-Feb-06 1:06 
AnswerRe: EditBoxes, ListBoxes and ComboBoxes painting Pin
Nibu babu thomas24-Feb-06 1:25
Nibu babu thomas24-Feb-06 1:25 
QuestionRe: EditBoxes, ListBoxes and ComboBoxes painting Pin
Naveen24-Feb-06 1:52
Naveen24-Feb-06 1:52 
AnswerRe: EditBoxes, ListBoxes and ComboBoxes painting Pin
Nibu babu thomas24-Feb-06 1:58
Nibu babu thomas24-Feb-06 1:58 
QuestionComparing text size Pin
llp00na24-Feb-06 1:03
llp00na24-Feb-06 1:03 
QuestionIE HTTP headers Pin
acroitor23-Feb-06 22:13
acroitor23-Feb-06 22:13 
AnswerRe: IE HTTP headers Pin
llp00na24-Feb-06 0:53
llp00na24-Feb-06 0:53 
QuestionRe: IE HTTP headers Pin
acroitor24-Feb-06 2:35
acroitor24-Feb-06 2:35 
AnswerRe: IE HTTP headers Pin
llp00na24-Feb-06 4:50
llp00na24-Feb-06 4:50 
QuestionRe: IE HTTP headers Pin
acroitor24-Feb-06 5:23
acroitor24-Feb-06 5:23 

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.