Click here to Skip to main content
15,908,020 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: WTL 7.1 from Microsoft here Pin
Jörgen Sigvardsson2-May-04 6:32
Jörgen Sigvardsson2-May-04 6:32 
GeneralRe: WTL 7.1 from Microsoft here Pin
TigerNinja_6-May-04 7:42
TigerNinja_6-May-04 7:42 
GeneralICallFactory forward declaration not resolved Pin
shahzi25-Apr-04 20:42
shahzi25-Apr-04 20:42 
QuestionUsing CSplitterWindow with MFC? Pin
Roozbeh6923-Apr-04 21:45
professionalRoozbeh6923-Apr-04 21:45 
Generalgetting Interface pointer for control created by AtlAxCreateControl Pin
Abhi Lahare22-Apr-04 19:40
Abhi Lahare22-Apr-04 19:40 
GeneralRe: getting Interface pointer for control created by AtlAxCreateControl Pin
f6426-Apr-04 12:48
f6426-Apr-04 12:48 
GeneralMail Filter Pin
Leandro H. Delamare22-Apr-04 17:53
Leandro H. Delamare22-Apr-04 17:53 
QuestionMessage for invisible control ? Pin
Sebastian S.22-Apr-04 3:34
Sebastian S.22-Apr-04 3:34 
Hello !

1. Sorry for my English
2. Bloody beginner

3. I have a ATL Full Control, invisible at runtime.

It is placed in a HTML Page with the <OBJECT> Tag.

There is a custom Message:

-----------------------------------------------------
#define MY_TEST (WM_APP + 1)

....

LRESULT OnTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);

....

BEGIN_MSG_MAP(CmyClass14)
CHAIN_MSG_MAP(CComControl<CmyClass14> )
DEFAULT_REFLECTION_HANDLER()
MESSAGE_HANDLER(MY_TEST, OnTest)
END_MSG_MAP()
-----------------------------------------------------
OK. Compiles fine.


But how do I Post my Message?

Here is what I tried:

PostMessage(MY_TEST) or
::PostMessage(this->m_hWnd, MY_TEST, 0, 0)
gives me an Assertion failure at runtime with "::IsWindow(hWnd)"
That tells me PostMessage needs a Window. (?)

PostThreadMessage(GetCurrentThreadID(), MY_TEST, 0, 0) or
::PostThreadMessage(GetCurrentThreadID(), MY_TEST, 0, 0)
works, but the message handler OnTest is never called.


What can I do ???



MfG
Sebastian
AnswerRe: Message for invisible control ? Pin
f6422-Apr-04 15:09
f6422-Apr-04 15:09 
GeneralRe: Message for invisible control ? Pin
Sebastian S.22-Apr-04 22:14
Sebastian S.22-Apr-04 22:14 
GeneralRe: Message for invisible control ? Pin
f6423-Apr-04 13:30
f6423-Apr-04 13:30 
GeneralRe: Message for invisible control ? Pin
Sebastian S.25-Apr-04 22:13
Sebastian S.25-Apr-04 22:13 
Generalhuge time difference between 1st and 2nd run of VC++ dynamic dll Pin
apratimg21-Apr-04 21:14
sussapratimg21-Apr-04 21:14 
GeneralRe: huge time difference between 1st and 2nd run of VC++ dynamic dll Pin
Dudi Avramov22-Apr-04 3:55
Dudi Avramov22-Apr-04 3:55 
QuestionNo Windows messages in ATL 7 ??? Pin
divinxu21-Apr-04 13:39
divinxu21-Apr-04 13:39 
AnswerRe: No Windows messages in ATL 7 ??? Pin
Jörgen Sigvardsson2-May-04 6:33
Jörgen Sigvardsson2-May-04 6:33 
GeneralActiveX event delay Pin
Dimitris Vasiliadis21-Apr-04 2:57
Dimitris Vasiliadis21-Apr-04 2:57 
GeneralAlign size of ActiveX control Pin
El'Cachubrey20-Apr-04 22:50
El'Cachubrey20-Apr-04 22:50 
GeneralRe: Align size of ActiveX control Pin
Balkrishna Talele20-Apr-04 23:01
Balkrishna Talele20-Apr-04 23:01 
GeneralCoGetObject and Nagging Dialog Pin
Balkrishna Talele20-Apr-04 22:48
Balkrishna Talele20-Apr-04 22:48 
Generalcreating multiple activeX.. Pin
Abhi Lahare20-Apr-04 19:33
Abhi Lahare20-Apr-04 19:33 
GeneralRe: creating multiple activeX.. Pin
Balkrishna Talele20-Apr-04 22:54
Balkrishna Talele20-Apr-04 22:54 
GeneralRe: creating multiple activeX.. Pin
Abhi Lahare21-Apr-04 1:33
Abhi Lahare21-Apr-04 1:33 
GeneralRe: creating multiple activeX.. Pin
Balkrishna Talele21-Apr-04 1:47
Balkrishna Talele21-Apr-04 1:47 
QuestionHow to use a WTL splitter window Pin
Roozbeh6920-Apr-04 10:16
professionalRoozbeh6920-Apr-04 10:16 

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.