Back to index

plt-scheme  4.2.1
Public Member Functions | Public Attributes | Private Attributes
ATL_NO_VTABLE Protocol Reference

#include <testcontrol.h>

Inheritance diagram for ATL_NO_VTABLE:
Inheritance graph
[legend]
Collaboration diagram for ATL_NO_VTABLE:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CTestControl ()
STDMETHOD() FloatTest (double n1, double n2, double *n3)
STDMETHOD() UnsignedTest (unsigned n1, unsigned n2, unsigned *n3)
STDMETHOD() ShortTest (short int n1, short int n2, short int *n3)
STDMETHOD() StringTest (BSTR s1, BSTR s2, BSTR *s3)
STDMETHOD() AddTest (long n1, long *n2, long *n3)
STDMETHOD() get_Numprop (long ndx, long *retVal)
STDMETHOD() put_Numprop (long ndx, long newVal)
HRESULT OnDraw (ATL_DRAWINFO &di)
LRESULT OnLButtonDown (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnLButtonUp (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnMButtonDown (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnMButtonUp (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnRButtonDown (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnRButtonUp (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnMouseMove (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HRESULT Fire_Click ()
HRESULT Fire_MouseDown (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
HRESULT Fire_MouseUp (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)
HRESULT Fire_KeyDown (SHORT *keyCode, SHORT shift)
HRESULT Fire_KeyUp (SHORT *keyCode, SHORT shift)
HRESULT Fire_MouseMove (SHORT button, SHORT shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y)

Public Attributes

CComBSTR m_bstrCaption

Private Attributes

long the_value

Detailed Description

Definition at line 14 of file testcontrol.h.


Member Function Documentation

STDMETHOD() ATL_NO_VTABLE::AddTest ( long  n1,
long *  n2,
long *  n3 
)

Definition at line 37 of file testcontrol.h.

       {
         the_value = 0L;
       }
HRESULT CProxy_ITestControlEvents< CTestControl >::Fire_Click ( ) [inline, inherited]

Definition at line 14 of file testobjectCP.h.

       {
              CComVariant varResult;
              T* pT = static_cast<T*>(this);
              int nConnectionIndex;
              int nConnections = m_vec.GetSize();
              
              for (nConnectionIndex = 0; nConnectionIndex < nConnections; nConnectionIndex++)
              {
                     pT->Lock();
                     CComPtr<IUnknown> sp = m_vec.GetAt(nConnectionIndex);
                     pT->Unlock();
                     IDispatch* pDispatch = reinterpret_cast<IDispatch*>(sp.p);
                     if (pDispatch != NULL)
                     {
                            VariantClear(&varResult);
                            DISPPARAMS disp = { NULL, NULL, 0, 0 };
                            pDispatch->Invoke(DISPID_CLICK, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, &varResult, NULL, NULL);
                     }
              }
              return varResult.scode;
       
       }

Here is the caller graph for this function:

HRESULT CProxy_ITestControlEvents< CTestControl >::Fire_KeyDown ( SHORT *  keyCode,
SHORT  shift 
) [inline, inherited]

Definition at line 95 of file testobjectCP.h.

       {
              CComVariant varResult;
              T* pT = static_cast<T*>(this);
              int nConnectionIndex;
              CComVariant* pvars = new CComVariant[2];
              int nConnections = m_vec.GetSize();
              
              for (nConnectionIndex = 0; nConnectionIndex < nConnections; nConnectionIndex++)
              {
                     pT->Lock();
                     CComPtr<IUnknown> sp = m_vec.GetAt(nConnectionIndex);
                     pT->Unlock();
                     IDispatch* pDispatch = reinterpret_cast<IDispatch*>(sp.p);
                     if (pDispatch != NULL)
                     {
                            VariantClear(&varResult);
                            pvars[1] = keyCode;
                            pvars[0] = shift;
                            DISPPARAMS disp = { pvars, NULL, 2, 0 };
                            pDispatch->Invoke(0x1, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, &varResult, NULL, NULL);
                     }
              }
              delete[] pvars;
              return varResult.scode;
       
       }
HRESULT CProxy_ITestControlEvents< CTestControl >::Fire_KeyUp ( SHORT *  keyCode,
SHORT  shift 
) [inline, inherited]

Definition at line 122 of file testobjectCP.h.

       {
              CComVariant varResult;
              T* pT = static_cast<T*>(this);
              int nConnectionIndex;
              CComVariant* pvars = new CComVariant[2];
              int nConnections = m_vec.GetSize();
              
              for (nConnectionIndex = 0; nConnectionIndex < nConnections; nConnectionIndex++)
              {
                     pT->Lock();
                     CComPtr<IUnknown> sp = m_vec.GetAt(nConnectionIndex);
                     pT->Unlock();
                     IDispatch* pDispatch = reinterpret_cast<IDispatch*>(sp.p);
                     if (pDispatch != NULL)
                     {
                            VariantClear(&varResult);
                            pvars[1] = keyCode;
                            pvars[0] = shift;
                            DISPPARAMS disp = { pvars, NULL, 2, 0 };
                            pDispatch->Invoke(0x2, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, &varResult, NULL, NULL);
                     }
              }
              delete[] pvars;
              return varResult.scode;
       
       }
HRESULT CProxy_ITestControlEvents< CTestControl >::Fire_MouseDown ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
) [inline, inherited]

Definition at line 37 of file testobjectCP.h.

       {
              CComVariant varResult;
              T* pT = static_cast<T*>(this);
              int nConnectionIndex;
              CComVariant* pvars = new CComVariant[4];
              int nConnections = m_vec.GetSize();
              
              for (nConnectionIndex = 0; nConnectionIndex < nConnections; nConnectionIndex++)
              {
                     pT->Lock();
                     CComPtr<IUnknown> sp = m_vec.GetAt(nConnectionIndex);
                     pT->Unlock();
                     IDispatch* pDispatch = reinterpret_cast<IDispatch*>(sp.p);
                     if (pDispatch != NULL)
                     {
                            VariantClear(&varResult);
                            pvars[3] = button;
                            pvars[2] = shift;
                            pvars[1] = x;
                            pvars[0] = y;
                            DISPPARAMS disp = { pvars, NULL, 4, 0 };
                            pDispatch->Invoke(DISPID_MOUSEDOWN, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, &varResult, NULL, NULL);
                     }
              }
              delete[] pvars;
              return varResult.scode;
       
       }

Here is the caller graph for this function:

HRESULT CProxy_ITestControlEvents< CTestControl >::Fire_MouseMove ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
) [inline, inherited]

Definition at line 149 of file testobjectCP.h.

       {
              CComVariant varResult;
              T* pT = static_cast<T*>(this);
              int nConnectionIndex;
              CComVariant* pvars = new CComVariant[4];
              int nConnections = m_vec.GetSize();
              
              for (nConnectionIndex = 0; nConnectionIndex < nConnections; nConnectionIndex++)
              {
                     pT->Lock();
                     CComPtr<IUnknown> sp = m_vec.GetAt(nConnectionIndex);
                     pT->Unlock();
                     IDispatch* pDispatch = reinterpret_cast<IDispatch*>(sp.p);
                     if (pDispatch != NULL)
                     {
                            VariantClear(&varResult);
                            pvars[3] = button;
                            pvars[2] = shift;
                            pvars[1] = x;
                            pvars[0] = y;
                            DISPPARAMS disp = { pvars, NULL, 4, 0 };
                            pDispatch->Invoke(0x3, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, &varResult, NULL, NULL);
                     }
              }
              delete[] pvars;
              return varResult.scode;
       
       }

Here is the caller graph for this function:

HRESULT CProxy_ITestControlEvents< CTestControl >::Fire_MouseUp ( SHORT  button,
SHORT  shift,
OLE_XPOS_PIXELS  x,
OLE_YPOS_PIXELS  y 
) [inline, inherited]

Definition at line 66 of file testobjectCP.h.

       {
              CComVariant varResult;
              T* pT = static_cast<T*>(this);
              int nConnectionIndex;
              CComVariant* pvars = new CComVariant[4];
              int nConnections = m_vec.GetSize();
              
              for (nConnectionIndex = 0; nConnectionIndex < nConnections; nConnectionIndex++)
              {
                     pT->Lock();
                     CComPtr<IUnknown> sp = m_vec.GetAt(nConnectionIndex);
                     pT->Unlock();
                     IDispatch* pDispatch = reinterpret_cast<IDispatch*>(sp.p);
                     if (pDispatch != NULL)
                     {
                            VariantClear(&varResult);
                            pvars[3] = button;
                            pvars[2] = shift;
                            pvars[1] = x;
                            pvars[0] = y;
                            DISPPARAMS disp = { pvars, NULL, 4, 0 };
                            pDispatch->Invoke(DISPID_MOUSEUP, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, &varResult, NULL, NULL);
                     }
              }
              delete[] pvars;
              return varResult.scode;
       
       }

Here is the caller graph for this function:

STDMETHOD() ATL_NO_VTABLE::FloatTest ( double  n1,
double  n2,
double *  n3 
)
STDMETHOD() ATL_NO_VTABLE::get_Numprop ( long  ndx,
long *  retVal 
)
HRESULT ATL_NO_VTABLE::OnDraw ( ATL_DRAWINFO &  di) [inline]

Definition at line 115 of file testcontrol.h.

       {
              RECT& rc = *(RECT*)di.prcBounds;
              Rectangle(di.hdcDraw, rc.left, rc.top, rc.right, rc.bottom);

              SetTextAlign(di.hdcDraw, TA_CENTER|TA_BASELINE);
              LPCTSTR pszText = _T("MysterX Test Control");
              TextOut(di.hdcDraw,
                     (rc.left + rc.right) / 2,
                     (rc.top + rc.bottom) / 2,
                     pszText,
                     lstrlen(pszText));

              return S_OK;
       }
LRESULT ATL_NO_VTABLE::OnLButtonDown ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
) [inline]

Definition at line 133 of file testcontrol.h.

       {
         Fire_MouseDown (0x1, wParam, GET_X_LPARAM (lParam), GET_Y_LPARAM (lParam));
         Fire_Click();
         return DefWindowProc (uMsg, wParam, lParam);
       }

Here is the call graph for this function:

LRESULT ATL_NO_VTABLE::OnLButtonUp ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
) [inline]

Definition at line 140 of file testcontrol.h.

       {
         Fire_MouseUp (0x1, wParam, GET_X_LPARAM (lParam), GET_Y_LPARAM (lParam));
         return DefWindowProc (uMsg, wParam, lParam);
       }

Here is the call graph for this function:

LRESULT ATL_NO_VTABLE::OnMButtonDown ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
) [inline]

Definition at line 146 of file testcontrol.h.

       {
         Fire_MouseDown (0x4, wParam, GET_X_LPARAM (lParam), GET_Y_LPARAM (lParam));
         Fire_Click();
         return DefWindowProc (uMsg, wParam, lParam);
       }

Here is the call graph for this function:

LRESULT ATL_NO_VTABLE::OnMButtonUp ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
) [inline]

Definition at line 153 of file testcontrol.h.

       {
         Fire_MouseUp (0x4, wParam, GET_X_LPARAM (lParam), GET_Y_LPARAM (lParam));
         return DefWindowProc (uMsg, wParam, lParam);
       }

Here is the call graph for this function:

LRESULT ATL_NO_VTABLE::OnMouseMove ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
) [inline]

Definition at line 172 of file testcontrol.h.

       {
         short button;
         short shift;

         button = wParam & (MK_LBUTTON | MK_MBUTTON | MK_RBUTTON);
         shift = wParam & (MK_CONTROL | MK_SHIFT);

         Fire_MouseMove (button, shift, GET_X_LPARAM (lParam), GET_Y_LPARAM (lParam));

         return DefWindowProc (uMsg, wParam, lParam);
       }

Here is the call graph for this function:

LRESULT ATL_NO_VTABLE::OnRButtonDown ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
) [inline]

Definition at line 159 of file testcontrol.h.

       {
         Fire_MouseDown (0x2, wParam, GET_X_LPARAM (lParam), GET_Y_LPARAM (lParam));
         Fire_Click();
         return DefWindowProc(uMsg, wParam, lParam);
       }

Here is the call graph for this function:

LRESULT ATL_NO_VTABLE::OnRButtonUp ( UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
) [inline]

Definition at line 166 of file testcontrol.h.

       {
         Fire_MouseUp (0x2, wParam, GET_X_LPARAM (lParam), GET_Y_LPARAM (lParam));
         return DefWindowProc (uMsg, wParam, lParam);
       }

Here is the call graph for this function:

STDMETHOD() ATL_NO_VTABLE::put_Numprop ( long  ndx,
long  newVal 
)
STDMETHOD() ATL_NO_VTABLE::ShortTest ( short int  n1,
short int  n2,
short int n3 
)
STDMETHOD() ATL_NO_VTABLE::StringTest ( BSTR  s1,
BSTR  s2,
BSTR *  s3 
)
STDMETHOD() ATL_NO_VTABLE::UnsignedTest ( unsigned  n1,
unsigned  n2,
unsigned *  n3 
)

Member Data Documentation

Definition at line 131 of file testcontrol.h.

long ATL_NO_VTABLE::the_value [private]

Definition at line 35 of file testcontrol.h.


The documentation for this protocol was generated from the following file: