Click here to Skip to main content
15,898,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Open a .txt file with a press of a button in MFC Pin
Rajesh R Subramanian25-Nov-08 20:57
professionalRajesh R Subramanian25-Nov-08 20:57 
JokeRe: Open a .txt file with a press of a button in MFC Pin
CPallini25-Nov-08 21:28
mveCPallini25-Nov-08 21:28 
JokeRe: Open a .txt file with a press of a button in MFC Pin
Hamid_RT25-Nov-08 21:46
Hamid_RT25-Nov-08 21:46 
JokeRe: Open a .txt file with a press of a button in MFC Pin
Rajesh R Subramanian26-Nov-08 3:58
professionalRajesh R Subramanian26-Nov-08 3:58 
AnswerRe: Open a .txt file with a press of a button in MFC Pin
Hamid_RT25-Nov-08 21:02
Hamid_RT25-Nov-08 21:02 
QuestionQuery regarding CMenu Pin
Rahul Vaishnav25-Nov-08 19:54
Rahul Vaishnav25-Nov-08 19:54 
AnswerRe: Query regarding CMenu Pin
Iain Clarke, Warrior Programmer26-Nov-08 0:32
Iain Clarke, Warrior Programmer26-Nov-08 0:32 
QuestionOnLButtonDown dosn't work in IE, but work in ActiveX Control Test Container ? Pin
oppstp25-Nov-08 19:49
oppstp25-Nov-08 19:49 
Hello,

I created a MFC-based ActiveX Control. My goal is to paint some rectangles on dc.
And when user clicks on dc area, I get the clicked point coordinate and adjudge the position of user click is in the rectangles or not.
If the click position is in the rectangles, I jumped a dialog window. If the click is out of the rectangles, nothing happened.

I used OnLButtonDown() to get the clicked point. But strange thing happened.
If I test this ActiveX Unit in the ActiveX Control Test Container, OnLButtonDown() works well and result is the expected result.
But if I packed .ocx file into .cab file and used IE to test, OnLButtonDown() failed. This method didn't be executed when I clicked on the dc area.


The creation step which I referenced is this : http://www.codeproject.com/KB/COM/CompleteActiveX.aspx
I followed the step to create the ActiveX. My control setting of creation step is the same as figure 2. of the referenced html page.
Create control based On : choose STATIC
The option "Activates when visible" and "Flicker-free activation " are checked, others are not checked.

Does anybody can help me to solve this problem ?

My environment : VS2005 SP1 + MS Platform SDK 2003 SP1 + Vista SP1

Thanks
QuestionExport data in excel Pin
cpvc++25-Nov-08 19:14
cpvc++25-Nov-08 19:14 
AnswerRe: Export data in excel Pin
cpvc++25-Nov-08 20:49
cpvc++25-Nov-08 20:49 
AnswerRe: Export data in excel Pin
Hamid_RT25-Nov-08 21:00
Hamid_RT25-Nov-08 21:00 
AnswerRe: Export data in excel Pin
sutm25-Nov-08 21:17
sutm25-Nov-08 21:17 
AnswerRe: Export data in excel Pin
Jijo.Raj26-Nov-08 7:16
Jijo.Raj26-Nov-08 7:16 
Questionabout anti virus software Pin
trioum25-Nov-08 18:43
trioum25-Nov-08 18:43 
AnswerRe: about anti virus software Pin
Hamid_RT25-Nov-08 19:09
Hamid_RT25-Nov-08 19:09 
GeneralRe: about anti virus software Pin
trioum25-Nov-08 21:05
trioum25-Nov-08 21:05 
GeneralRe: about anti virus software Pin
Hamid_RT25-Nov-08 21:22
Hamid_RT25-Nov-08 21:22 
GeneralRe: about anti virus software Pin
trioum25-Nov-08 23:15
trioum25-Nov-08 23:15 
AnswerRe: about anti virus software Pin
Iain Clarke, Warrior Programmer26-Nov-08 0:35
Iain Clarke, Warrior Programmer26-Nov-08 0:35 
AnswerRe: about anti virus software Pin
Rajesh R Subramanian26-Nov-08 0:36
professionalRajesh R Subramanian26-Nov-08 0:36 
Questionplz help me!!!how to display popup menu after clicking on a button? Pin
puppya25-Nov-08 18:22
puppya25-Nov-08 18:22 
AnswerRe: plz help me!!!how to display popup menu after clicking on a button? Pin
Hamid_RT25-Nov-08 19:04
Hamid_RT25-Nov-08 19:04 
GeneralRe: plz help me!!!how to display popup menu after clicking on a button? Pin
puppya25-Nov-08 20:28
puppya25-Nov-08 20:28 
GeneralRe: plz help me!!!how to display popup menu after clicking on a button? Pin
Hamid_RT25-Nov-08 20:35
Hamid_RT25-Nov-08 20:35 
AnswerRe: plz help me!!!how to display popup menu after clicking on a button? Pin
Jijo.Raj26-Nov-08 7:31
Jijo.Raj26-Nov-08 7:31 

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.