Click here to Skip to main content
16,012,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual C++ 6.0 SP5 - Debugger does not respond Pin
Andrew Walker25-Jul-03 4:29
Andrew Walker25-Jul-03 4:29 
QuestionIIsFtpVirtualDir??? How to create a virtual directory(FTP&WEB) in IIS? Pin
NewSilence25-Jul-03 3:40
NewSilence25-Jul-03 3:40 
AnswerRe: IIsFtpVirtualDir??? How to create a virtual directory(FTP&WEB) in IIS? Pin
AlexO25-Jul-03 5:25
AlexO25-Jul-03 5:25 
GeneralRe: IIsFtpVirtualDir??? How to create a virtual directory(FTP&WEB) in IIS? Pin
NewSilence26-Jul-03 4:13
NewSilence26-Jul-03 4:13 
QuestionHow to SendMessage to a windowless Ctrl Pin
ray_li25-Jul-03 3:40
ray_li25-Jul-03 3:40 
AnswerRe: How to SendMessage to a windowless Ctrl Pin
valikac25-Jul-03 5:28
valikac25-Jul-03 5:28 
GeneralRe: How to SendMessage to a windowless Ctrl Pin
ray_li25-Jul-03 7:08
ray_li25-Jul-03 7:08 
AnswerRe: How to SendMessage to a windowless Ctrl Pin
G. Steudtel25-Jul-03 5:47
G. Steudtel25-Jul-03 5:47 
Hi,
I always thought controls are windows, sometimes invisible.
You can only send messages to windows, even invisible ones (sinks).
One possible way is to use HWND_BROADCAST as window handle. Then every window will get that message. Works well with registered messages, because those are igmored by all but your windows.

The next way would be, to register a message like
MSG_GET_HANDLE ("Hey give me your Handle") and a Message MSG_MYHANDLES ("Here you got it").

So in your ActiveX control, you have a handler for GET_HANDLE and in your application you have a handler for MYHANDLES.

All you have to do, ask all windows to send you their handles. And because only your control understands this message the response will be the handle of your control window. So store the LPARAM as handle of your control handle.

If you really have no window, than you must use THREAD_MESSAGE. But then your ActiveX control must be derived by CCmdTarget I think. Didn't try this one.

Regard

G. Steudtel
GeneralRe: How to SendMessage to a windowless Ctrl Pin
ray_li25-Jul-03 7:39
ray_li25-Jul-03 7:39 
AnswerRe: How to SendMessage to a windowless Ctrl Pin
BadJerry25-Jul-03 6:31
BadJerry25-Jul-03 6:31 
GeneralDisable window close [X] button Pin
David Chamberlain25-Jul-03 3:36
David Chamberlain25-Jul-03 3:36 
GeneralRe: Disable window close [X] button Pin
Member 42425925-Jul-03 3:55
Member 42425925-Jul-03 3:55 
GeneralRe: Disable window close [X] button Pin
David Chamberlain25-Jul-03 4:16
David Chamberlain25-Jul-03 4:16 
GeneralRe: Disable window close [X] button Pin
valikac25-Jul-03 5:30
valikac25-Jul-03 5:30 
GeneralRe: Disable window close [X] button Pin
David Chamberlain25-Jul-03 7:01
David Chamberlain25-Jul-03 7:01 
GeneralRe: Disable window close [X] button Pin
John M. Drescher25-Jul-03 8:39
John M. Drescher25-Jul-03 8:39 
GeneralRe: Disable window close [X] button Pin
Bob Stanneveld25-Jul-03 9:59
Bob Stanneveld25-Jul-03 9:59 
GeneralRe: Disable window close [X] button Pin
jason9925-Jul-03 5:51
jason9925-Jul-03 5:51 
GeneralVirtual function CDialog::OnCancel() Pin
Anonymous25-Jul-03 3:20
Anonymous25-Jul-03 3:20 
GeneralRe: Virtual function CDialog::OnCancel() Pin
Ryan Binns25-Jul-03 3:24
Ryan Binns25-Jul-03 3:24 
GeneralRe: Virtual function CDialog::OnCancel() Pin
Bob Stanneveld25-Jul-03 3:34
Bob Stanneveld25-Jul-03 3:34 
GeneralRe: Virtual function CDialog::OnCancel() Pin
Anonymous25-Jul-03 3:35
Anonymous25-Jul-03 3:35 
GeneralRe: Virtual function CDialog::OnCancel() Pin
Anonymous25-Jul-03 3:54
Anonymous25-Jul-03 3:54 
GeneralRe: Virtual function CDialog::OnCancel() Pin
Bob Stanneveld25-Jul-03 9:49
Bob Stanneveld25-Jul-03 9:49 
GeneralRe: Virtual function CDialog::OnCancel() Pin
yitzhak25-Jul-03 11:19
yitzhak25-Jul-03 11:19 

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.