|
I want to fire an event when a table(or something that has no clicked event already) is clicked. can anyone help me about this?
bolat
|
|
|
|
|
Bolat wrote:
I want to fire an event when a table(or something that has no clicked event already) is clicked. can anyone help me about this?
can you please tell me where this table situated.
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
But where is this TABLE situated
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I mean in any html page. for example left menu bar. I want to locate some business logic insted of redirecting to another page.
bolat
|
|
|
|
|
i have MDI app (whithout Doc/View),
i have an FormView ( IDD_SEARCH_FORM ) on which i have
CStatic control (standart group box)
SearchView.h
--------------
class CSearchView : public CDialogImpl<CSearchView>,
public CDialogResize<CSearchView>
actualy all is ok - all controls resized as needed except group box is not __repainted__, but __resized__ !!
how to get it working ?
----------------------------
never stop coding.
|
|
|
|
|
|
Auch... thanks i did not know about "transparent" ...
----------------------------
never stop coding.
|
|
|
|
|
hi
i am creating one dll using ATLCom . how can i include this dll into mfc dialog based application .
plz tell me ,what is the difference between ATLCom dll and MFC Application wizard dll .
thank you
This allows you to set your preferences for the discussion boards
|
|
|
|
|
|
hi
Thanks for your help.i include the header file and .lib file,error message display in compile time.
" the file or folder does not exit(header file)".
tankyou.
|
|
|
|
|
nevis wrote:
" the file or folder does not exit(header file)".
1) That does not look like a valid compile error. If you are going to ask questions about compile errors post the actual compile error message by copy/paste.
2) It appears you do not know how to #include files.
I don't know how to explain that to someone. It is a fundamental operation of developing with C++. If you don't yet posses a complete understanding of this subject you may be engaged in a project that is beyond your capabilities.
But, that's just my opinion... I could be wrong.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
Assuming that you did syntactically include the header file correctly with the #include statement and the compiler can't find it you may want to make sure you have included the path to your header file directory in the Includes section on the Directories tab in the Options window under the Tools menu.
- Nick Parker My Blog | My Articles
|
|
|
|
|
I created a simple ATL web service with VC++ 7.1 by following the sample in MSDN and put it in IIS 5.1 on my local PC. But the web service doesn't work. If I tried to access it through IE, it either displayed "not found" page, or asked me to save the DLL itself on my PC. The same error occurred when I created an ATL web service client and tried to access the web service.
Could any one help me with this issue? Thanks.
|
|
|
|
|
xizuo wrote:
or asked me to save the DLL itself on my PC
Sounds like you don't have the service configured correctly on IIS. But that is just a wild guess
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
folks,
i've got a composite activex component implemented with atl. in said component, i have a property fileName. i am hosting this control in IE. when the fileName property is being set using the <PARAM> tag, my put_fileName accessor is not getting invoked (i know for sure, i've got a messagebox in there =). however, when the same property is being set using javascript in an onClick of a button on the same page, the accessor gets invoked and all works fine.
i am stumped. any ideas?
paul
|
|
|
|
|
HAve you added a property map entry in this thing:
BEGIN_PROP_MAP(CYourControl)
PROP_DATA_ENTRY("_cx", m_sizeExtent.cx, VT_UI4)
PROP_DATA_ENTRY("_cy", m_sizeExtent.cy, VT_UI4)
PROP_ENTRY("HREF", 0, CLSID_NULL)
...
END_PROP_MAP()
Your control will not know what to do with that param tag unless you have specified your property in this map.
Good Luck
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
yep, have it there and still no dice.
-----
BEGIN_PROP_MAP(CMyClass)
PROP_DATA_ENTRY("_cx", m_sizeExtent.cx, VT_UI4)
PROP_DATA_ENTRY("_cy", m_sizeExtent.cy, VT_UI4)
PROP_DATA_ENTRY("fileName", m_fileName, VT_BSTR)
PROP_ENTRY("AutoSize", DISPID_AUTOSIZE, CLSID_NULL)
// Example entries
// PROP_ENTRY("Property Description", dispid, clsid)
// PROP_PAGE(CLSID_StockColorPage)
END_PROP_MAP()
-----
also, how would setting the property *through script* work and through <param> not work if this were missing?
thanks for your help though, any more ideas?
paul
|
|
|
|
|
|
thank you! i'll go implement that and report back with the (hopefully positive) result. now *why* have i not been able to find any mention of this while RTFMing? aargh =]
paul
|
|
|
|
|
ok, this worked (somewhat). the plan was to grab the properties i'm interested in from the propertybag and call the property setters (which in turn call the property setters for the controls i'm hosting).
the problem is that neither the hosted controls' nor even my window exist at this point. i got around this by setting a timer, calling the property setters in the timer callback and checking IsWindow() in the property setters. this works fine, albeit at the expense of messy code (some global variable nastiness).
is there a better way of doing this?
paul
|
|
|
|
|
Sample...
MixedWindow Compile Error... Help Me~
ImageList_Read, ImageList_Write.. =.=;;
--------------------Configuration: MixedWindow - Win32 Debug--------------------
Compiling...
StdAfx.cpp
c:\program files\wtl71\include\atlctrls.h(1832) : error C2065: 'ImageList_Read' : undeclared identifier
c:\program files\wtl71\include\atlctrls.h(1832) : error C2440: '=' : cannot convert from 'int' to 'struct _IMAGELIST *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
c:\program files\wtl71\include\atlctrls.h(1943) : error C2065: 'ImageList_Write' : undeclared identifier
Error executing cl.exe.
MixedWindow.exe - 3 error(s), 0 warning(s)
-----------------
StdAfx.h
omission.... "<", ">"
-----------------
/ Add support for ATL/WTL
#define _WTL_NO_AUTOMATIC_NAMESPACE
#include atlbase.h
#include atlapp.h
extern WTL::CAppModule _Module;
#include atlwin.h
#include atlscrl.h
#include atlmisc.h
#include atlctrls.h
#include atlctrlx.h
#include atlddx.h
...
|
|
|
|
|
ImageList_Read[^] and ImageList_Write[^] are both defined in commctrl.h
You will need to ensure that the file is included before atlctrls.h
#include <commctrl.h><br />
#include <atlctrls.h>
Michael
CP Blog [^]
|
|
|
|
|
Thank you...
But...
#include atlmisc.h
#include commctrl.h
#include atlctrls.h
#include atlctrlx.h
#include atlddx.h
Same Error... ㅠ.ㅜ..
--------------------Configuration: MixedWindow - Win32 Debug--------------------
Compiling...
StdAfx.cpp
c:\program files\wtl71\include\atlctrls.h(1832) : error C2065: 'ImageList_Read' : undeclared identifier
c:\program files\wtl71\include\atlctrls.h(1832) : error C2440: '=' : cannot convert from 'int' to 'struct _IMAGELIST *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
c:\program files\wtl71\include\atlctrls.h(1943) : error C2065: 'ImageList_Write' : undeclared identifier
Error executing cl.exe.
MixedWindow.exe - 3 error(s), 0 warning(s)
|
|
|
|
|
I've done a bit of a google for the problem and it seems to be a common issue.
try
#define VC_EXTRALEAN
#define WIN32_LEAN_AND_MEAN
#include <objidl.h>
#include <commctrl.h>
before the atl includes.
Michael
CP Blog [^]
|
|
|
|
|
Hmmm.. can't it be a too low value on #define WIN32_VERSION (or whatever that define is called)?
--
Ich bin Joachim von Hassel, und ich bin Pilot der Bundeswehr.
Welle: Erdball - F104-G Starfighter
|
|
|
|