home *** CD-ROM | disk | FTP | other *** search
- // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
-
- // NOTE: Do not modify the contents of this file. If this class is regenerated by
- // Microsoft Visual C++, your modifications will be overwritten.
-
-
- #include "stdafx.h"
- #include "pvfontsel.h"
-
- // Dispatch interfaces referenced by this interface
- #include "font.h"
-
- /////////////////////////////////////////////////////////////////////////////
- // CPVFontSel
-
- IMPLEMENT_DYNCREATE(CPVFontSel, CWnd)
-
- /////////////////////////////////////////////////////////////////////////////
- // CPVFontSel properties
-
- short CPVFontSel::GetAppearance()
- {
- short result;
- GetProperty(DISPID_APPEARANCE, VT_I2, (void*)&result);
- return result;
- }
-
- void CPVFontSel::SetAppearance(short propVal)
- {
- SetProperty(DISPID_APPEARANCE, VT_I2, propVal);
- }
-
- short CPVFontSel::GetBorderStyle()
- {
- short result;
- GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
- return result;
- }
-
- void CPVFontSel::SetBorderStyle(short propVal)
- {
- SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
- }
-
- BOOL CPVFontSel::GetEnabled()
- {
- BOOL result;
- GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
- return result;
- }
-
- void CPVFontSel::SetEnabled(BOOL propVal)
- {
- SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
- }
-
- OLE_HANDLE CPVFontSel::GetHWnd()
- {
- OLE_HANDLE result;
- GetProperty(DISPID_HWND, VT_I4, (void*)&result);
- return result;
- }
-
- void CPVFontSel::SetHWnd(OLE_HANDLE propVal)
- {
- SetProperty(DISPID_HWND, VT_I4, propVal);
- }
-
- COleFont CPVFontSel::GetFont()
- {
- LPDISPATCH pDispatch;
- GetProperty(DISPID_FONT, VT_DISPATCH, (void*)&pDispatch);
- return COleFont(pDispatch);
- }
-
- void CPVFontSel::SetFont(LPDISPATCH propVal)
- {
- SetProperty(DISPID_FONT, VT_DISPATCH, propVal);
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // CPVFontSel operations
-
- void CPVFontSel::SetItemHeight(short Height)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Height);
- }
-
- CString CPVFontSel::GetFontName()
- {
- CString result;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
- return result;
- }
-
- void CPVFontSel::SetFontName(LPCTSTR strFontName)
- {
- static BYTE parms[] =
- VTS_BSTR;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- strFontName);
- }
-
- short CPVFontSel::GetFontHeight()
- {
- short result;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
- return result;
- }
-
- short CPVFontSel::GetPointSize()
- {
- short result;
- InvokeHelper(0x5, DISPATCH_METHOD, VT_I2, (void*)&result, NULL);
- return result;
- }
-
- void CPVFontSel::SetFontHeight(short Height)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Height);
- }
-
- void CPVFontSel::SetPointSize(short PointSize)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- PointSize);
- }
-
- void CPVFontSel::AboutBox()
- {
- InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
-