Click here to Skip to main content
15,917,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionis there any way to get the facename from a TTF file ? Pin
adara13-Feb-03 0:56
adara13-Feb-03 0:56 
AnswerRe: is there any way to get the facename from a TTF file ? Pin
Chris Losinger13-Feb-03 5:41
professionalChris Losinger13-Feb-03 5:41 
GeneralRe: is there any way to get the facename from a TTF file ? Pin
adara22-Feb-03 20:09
adara22-Feb-03 20:09 
GeneralHiding a running app from task manager Pin
WilliamD13-Feb-03 0:49
WilliamD13-Feb-03 0:49 
GeneralWhere can I learn to create my own control? (mfc) Pin
Rewbs13-Feb-03 0:38
Rewbs13-Feb-03 0:38 
GeneralRe: Where can I learn to create my own control? (mfc) Pin
Anonymous13-Feb-03 1:31
Anonymous13-Feb-03 1:31 
GeneralSimple ADO question Pin
Willem B13-Feb-03 0:00
Willem B13-Feb-03 0:00 
GeneralATL: fetching messages from other window Pin
peterchen12-Feb-03 23:44
peterchen12-Feb-03 23:44 
Hi,

I have a window CMyWnd implemented by ATL
(actually, it's an ActiveX full control, but that shouldn't matter...)

This window uses a 3rd party library to create a child window. All I have is the window handle of the child window.

to prefilter the messages that are sent to the child, I want to:

a) replace the WNDPROC of the child with a global function of my own
b) use a global map<hwnd-of-child, cmywnd="" *="">, where the CMyWnds register in OnCreate, and remove themselves in OnDestroy
c) in my own wndproc, using the map to call CMyWnd->FilterMessageFromChild(...)
d) the message decides whether it should be passed on to the original WNDPROC, or not

Question:
now, this (should) work like a charm, however, I see that most of what TL does is exactly the same: global WNDPROC, mapping to a CWindow-dereived class, and calling with an BOOL & bHandled parameter to decide if the message is passed on

Is it possible to reuse ATL's own infrastructure for that?

TIA
Peter







So many people long for eternity that don't know what to do on a rainy sunday afternoon.
[sighist] | [Agile Programming] [doxygen]
If you look for evil in me you will find it whether it's there or not.

GeneralDisable docking of a docking CDialogBar Pin
NeosMatrix12-Feb-03 23:26
NeosMatrix12-Feb-03 23:26 
QuestionHow to set fonts in a control (mfc)? Pin
Jan7512-Feb-03 22:53
Jan7512-Feb-03 22:53 
AnswerRe: How to set fonts in a control (mfc)? Pin
xxhimanshu12-Feb-03 23:20
xxhimanshu12-Feb-03 23:20 
GeneralRe: How to set fonts in a control (mfc)? Pin
Steve S12-Feb-03 23:54
Steve S12-Feb-03 23:54 
GeneralRe: How to set fonts in a control (mfc)? (solving...) Pin
Jan7513-Feb-03 0:13
Jan7513-Feb-03 0:13 
Questiontime scheduling??? Pin
xxhimanshu12-Feb-03 22:49
xxhimanshu12-Feb-03 22:49 
AnswerRe: time scheduling??? Pin
Ted Ferenc13-Feb-03 0:40
Ted Ferenc13-Feb-03 0:40 
GeneralRe: time scheduling??? Pin
xxhimanshu13-Feb-03 1:03
xxhimanshu13-Feb-03 1:03 
GeneralRe: time scheduling??? Pin
Ted Ferenc13-Feb-03 2:04
Ted Ferenc13-Feb-03 2:04 
Generaland STL again... Pin
peterchen12-Feb-03 22:43
peterchen12-Feb-03 22:43 
Generalcalling template member fn (VC6) Pin
peterchen12-Feb-03 21:52
peterchen12-Feb-03 21:52 
GeneralRe: calling template member fn (VC6) Pin
Joan M12-Feb-03 21:59
professionalJoan M12-Feb-03 21:59 
GeneralRe: calling template member fn (VC6) Pin
Joan M12-Feb-03 22:04
professionalJoan M12-Feb-03 22:04 
GeneralRe: calling template member fn (VC6) Pin
peterchen12-Feb-03 22:31
peterchen12-Feb-03 22:31 
Questionconverting wide-character string to float? Pin
Hel12-Feb-03 21:05
Hel12-Feb-03 21:05 
AnswerRe: converting wide-character string to float? Pin
vikramlinux12-Feb-03 21:28
vikramlinux12-Feb-03 21:28 
GeneralRe: converting wide-character string to float? Pin
Hel12-Feb-03 21:34
Hel12-Feb-03 21:34 

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.