Click here to Skip to main content
16,005,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionunknown process closing reason Pin
Member 439909428-Sep-07 23:45
Member 439909428-Sep-07 23:45 
QuestionHow can I get the ID of an activex control that the keyboard foucs staying at? Pin
pantao55128-Sep-07 22:56
pantao55128-Sep-07 22:56 
AnswerRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Naveen30-Sep-07 17:51
Naveen30-Sep-07 17:51 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Stephen Hewitt30-Sep-07 18:05
Stephen Hewitt30-Sep-07 18:05 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Naveen30-Sep-07 18:13
Naveen30-Sep-07 18:13 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Stephen Hewitt30-Sep-07 18:50
Stephen Hewitt30-Sep-07 18:50 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Naveen30-Sep-07 19:06
Naveen30-Sep-07 19:06 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Stephen Hewitt30-Sep-07 19:18
Stephen Hewitt30-Sep-07 19:18 
Naveen.R wrote:
Do you think its the implementation differece of ATL Active X and MFC Active x?

Both ATL's and MFC's hosting and control implentation details differ.

But this line of reasoning is missing the point: If you’re manipulating an ActiveX control you should manipulate it via the OLE control interfaces if possible and be weary of directly manipulating it’s window; windowless controls need not even have windows! One of the main goals of ActiveX control is to isolate clients of the implementation details of the control. ATL allows you to treat the control as a window but the window you manipulate is part of the hosting code and not part of the control: it handles messages and translates them into interface calls on the control. See the OnSize function in the "ATLHOST.H" file for an example.


Steve

GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Naveen30-Sep-07 19:46
Naveen30-Sep-07 19:46 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
pantao5515-Oct-07 5:17
pantao5515-Oct-07 5:17 
GeneralRe: How can I get the ID of an activex control that the keyboard foucs staying at? Pin
Naveen5-Oct-07 6:03
Naveen5-Oct-07 6:03 
QuestionDesktop Pin
nitin328-Sep-07 21:17
nitin328-Sep-07 21:17 
AnswerRe: Desktop Pin
Sreedhar DV1-Oct-07 0:56
Sreedhar DV1-Oct-07 0:56 
QuestionGDI problem Pin
trioum28-Sep-07 20:53
trioum28-Sep-07 20:53 
QuestionRe: GDI problem Pin
Hamid_RT28-Sep-07 21:01
Hamid_RT28-Sep-07 21:01 
AnswerRe: GDI problem Pin
trioum28-Sep-07 21:03
trioum28-Sep-07 21:03 
GeneralRe: GDI problem Pin
Hamid_RT29-Sep-07 0:26
Hamid_RT29-Sep-07 0:26 
GeneralRe: GDI problem Pin
Mark Salsbery29-Sep-07 7:13
Mark Salsbery29-Sep-07 7:13 
GeneralRe: GDI problem Pin
Hamid_RT29-Sep-07 19:03
Hamid_RT29-Sep-07 19:03 
GeneralRe: GDI problem Pin
Hamid_RT30-Sep-07 6:43
Hamid_RT30-Sep-07 6:43 
GeneralRe: GDI problem Pin
Mark Salsbery30-Sep-07 6:56
Mark Salsbery30-Sep-07 6:56 
Questionlock file Pin
rishimohan28-Sep-07 20:09
rishimohan28-Sep-07 20:09 
AnswerRe: lock file Pin
Hamid_RT29-Sep-07 0:36
Hamid_RT29-Sep-07 0:36 
Questionget file properties Pin
revanth198528-Sep-07 19:50
revanth198528-Sep-07 19:50 
AnswerRe: get file properties Pin
rishimohan28-Sep-07 19:55
rishimohan28-Sep-07 19:55 

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.