Click here to Skip to main content
14,040,261 members
Click here to Skip to main content

Stats

253.3K views
954 downloads
70 bookmarked
Posted 24 Aug 2000
Licenced CPOL

A Comprehensive CE Class Library to Replace ATL and MFC

, 4 Oct 2000
A collection of classes for CE that do not use ATL or MFC, plus an FTP client, database viewer, and sample application that solves beam deflection equations.
WinCe
BeamEx
app.ico
BeamEx.dsp
BeamEx.dsw
BeamEx.plg
bitmap1.bmp
bmp00001.bmp
bmp00002.bmp
calc.bmp
calc16.bmp
circ_cross.ico
cir_cross.ico
cross_4.ico
help16.bmp
help4.bmp
ico00001.ico
ico00002.ico
ico00005.ico
ico00008.ico
ico00009.ico
ico00010.ico
icon1.ico
icon2.ico
icon4.ico
id_downl.bmp
Install
BeamEx.inf
BeamEx.MIPS_PPCBW.CAB
BeamEx.MIPS_PPCColor.CAB
BeamEx.SH3_PPCColor.CAB
Setup.exe
i_cross.ico
l_cross.ico
magenic.ico
mssccprj.scc
obl_corss.ico
obl_cross.ico
options.bmp
options1.bmp
ping16.bmp
rect_cross.ico
scene_5.ico
scene_6.ico
tri_cross.ico
vssver.scc
CeLib
CeLib.aps
CeLib.dsp
CeLib.dsw
CeLib.old
CeLib.plg
CeLib.vcp
mssccprj.scc
vssver.scc
WinLib.dsp
WinLib.dsw
dbView
bitmap1.bmp
bmp00001.bmp
db5.bmp
dbView.aps
DbView.dsp
dbView.dsw
dbView.old
dbView.plg
DbView.vcp
deldb.bp2
deldb5.bmp
delrec.bp2
delrecor.bmp
help16.bmp
help4.bmp
icon1.ico
icon2.ico
Install
dbView.inf
Setup.exe
magenic.bmp
magenic.ico
mssccprj.scc
vssver.scc
ftpView
appicon.ico
bitmap1.bmp
bitmap2.bmp
bitmap3.bmp
bitmap4.bmp
bmp00001.bmp
bmp00002.bmp
db5.bmp
deldb.bp2
delrec.bp2
FtpView.dsp
ftpView.dsw
FtpView.old
ftpView.plg
FtpView.vcp
help16.bmp
help4.bmp
ico00001.ico
ico00002.ico
ico171.ico
ico35.ico
icon1.ico
icon2.ico
imagelis.bmp
IMAGES.bmp
Install
ftpView.inf
Setup.exe
vssver.scc
magenic.bmp
magenic.ico
mssccprj.scc
options.bmp
options1.bmp
seperato.bmp
vssver.scc
Setup
ico101.ico
Setup.aps
Setup.dsp
setup.ico
Setup.plg
WinCe.dsw
WinLib.dsw
app.ico
BeamEx.dsp
BeamEx.dsw
BeamEx.plg
BeamEx.vcp
bitmap1.bmp
bmp00001.bmp
bmp00002.bmp
calc.bmp
calc16.bmp
circ_cross.ico
cir_cross.ico
cross_4.ico
help16.bmp
help4.bmp
ico00001.ico
ico00002.ico
ico00005.ico
ico00008.ico
ico00009.ico
ico00010.ico
icon1.ico
icon2.ico
icon4.ico
id_downl.bmp
BeamEx.inf
Setup.exe
i_cross.ico
l_cross.ico
magenic.ico
mssccprj.scc
obl_corss.ico
obl_cross.ico
options.bmp
options1.bmp
ping16.bmp
rect_cross.ico
scene_5.ico
scene_6.ico
tri_cross.ico
vssver.scc
CeFtp.vcp
CeFtp.vcw
CeLib.aps
CeLib.dsp
CeLib.dsw
CeLib.plg
CeLib.vcp
mssccprj.scc
vssver.scc
WinLib.dsp
WinLib.dsw
bitmap1.bmp
bitmap2.bmp
bmp00001.bmp
db5.bmp
DbView.dsp
dbView.dsw
dbView.plg
DbView.vcp
deldb.bp2
deldb5.bmp
delrec.bp2
delrecor.bmp
help16.bmp
help4.bmp
icon1.ico
icon2.ico
dbView.inf
Setup.exe
magenic.bmp
magenic.ico
menu1_5.bmp
mssccprj.scc
vssver.scc
appicon.ico
bitmap1.bmp
bitmap2.bmp
bitmap3.bmp
bitmap4.bmp
bmp00001.bmp
bmp00002.bmp
db5.bmp
deldb.bp2
delrec.bp2
FtpView.dsp
ftpView.dsw
ftpView.plg
FtpView.vcp
FtpView.vcw
help16.bmp
help4.bmp
ico00001.ico
ico00002.ico
ico171.ico
ico35.ico
icon1.ico
icon2.ico
imagelis.bmp
IMAGES.bmp
ftpView.inf
Setup.exe
vssver.scc
magenic.bmp
magenic.ico
mssccprj.scc
newmenu.bmp
options.bmp
options1.bmp
rcdata1.bin
seperato.bmp
toolbar1.bmp
vssver.scc
WinCe.dsw
WinCe.vcw
///////////////////////////////////////////////////////////////////////////////

#include <commctrl.h>

inline CeStatic::CeStatic()
	{}
inline BOOL CeStatic::Create(LPCTSTR lpszText, DWORD dwStyle, const RECT& rect, HWND hParentWnd, UINT nID, HINSTANCE hInst)
	{ return CeWnd::Create(_T("STATIC"), hParentWnd, rect, lpszText, dwStyle, 0, nID, hInst); }
//	{ return CeWnd::Create(_T("TTSTATIC"), hParentWnd, rect, lpszText, dwStyle, 0, nID, hInst); }

inline HBITMAP CeStatic::SetBitmap(HBITMAP hBitmap)
	{ return (HBITMAP) SendMessage(STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hBitmap); }
inline HBITMAP CeStatic::GetBitmap() const
	{ return (HBITMAP) ::SendMessage(m_hWnd, STM_GETIMAGE, IMAGE_BITMAP, 0L); }
inline HICON CeStatic::SetIcon(HICON hIcon)
	{ return (HICON) SendMessage(STM_SETIMAGE, IMAGE_ICON, (LPARAM)hIcon); }
inline HICON CeStatic::GetIcon() const
	{ return (HICON) ::SendMessage(m_hWnd, STM_GETIMAGE, IMAGE_ICON, 0L); }

inline CeStatic::~CeStatic()
	{}

///////////////////////////////////////////////////////////////////////////////

inline BOOL CeEdit::Create(LPCTSTR lpszText, DWORD dwStyle, DWORD dwExStyle, const RECT& rect, HWND hParentWnd, UINT nID, HINSTANCE hInst)
	{ return CeWnd::Create(_T("EDIT"), hParentWnd, rect, lpszText, dwStyle, dwExStyle, nID, hInst); }

inline int CeEdit::Enable(BOOL fEnable)
	{ return ::Edit_Enable(m_hWnd, fEnable); }
inline int CeEdit::GetText(LPTSTR lpch, int cchMax)
	{ return GetWindowText(lpch, cchMax); }
inline int CeEdit::GetTextLength()
	{ return ::Edit_GetTextLength(m_hWnd); }
inline int CeEdit::SetText(LPCTSTR lpsz)
	{ return ::Edit_SetText(m_hWnd, lpsz); }
inline void CeEdit::LimitText(int cchMax)
	{ Edit_LimitText(m_hWnd, cchMax); }

inline int CeEdit::GetLineCount()
	{ return Edit_GetLineCount(m_hWnd); }

inline int CeEdit::GetLine(int line, LPCTSTR lpch, int cchMax)
	{ return Edit_GetLine(m_hWnd, line, lpch, cchMax); }
inline void CeEdit::GetRect(LPRECT lprc)
	{ Edit_GetRect(m_hWnd, lprc); }
inline void CeEdit::SetRect(LPCRECT lprc)
	{ Edit_SetRect(m_hWnd, lprc); }
inline void CeEdit::SetRectNoPaint(LPCRECT lprc)
	{ Edit_SetRectNoPaint(m_hWnd, lprc); }
inline int CeEdit::GetSel()
	{ return Edit_GetSel(m_hWnd); }
inline void CeEdit::SetSel(int ichStart, int ichEnd)
	{ Edit_SetSel(m_hWnd, ichStart, ichEnd); }
inline void CeEdit::ReplaceSel(LPCTSTR lpszReplace)
	{ Edit_ReplaceSel(m_hWnd, lpszReplace); }
inline BOOL CeEdit::GetModify()
	{ return Edit_GetModify(m_hWnd); }
inline void CeEdit::SetModify(BOOL fModified)
	{ Edit_SetModify(m_hWnd, fModified); }
inline int CeEdit::ScrollCaret()
	{ return Edit_ScrollCaret(m_hWnd); }
inline int CeEdit::LineFromChar(int ich)
	{ return Edit_LineFromChar(m_hWnd, ich); }
inline int CeEdit::LineIndex(int line)
	{ return Edit_LineIndex(m_hWnd, line); }
inline int CeEdit::LineLength(int line)
	{ return Edit_LineLength(m_hWnd, line); }
inline void CeEdit::Scroll(int dv, int dh)
	{ Edit_Scroll(m_hWnd, dv, dh); }
inline int CeEdit::CanUndo()
	{ return Edit_CanUndo(m_hWnd); }
inline int CeEdit::Undo()
	{ return Edit_Undo(m_hWnd); }
inline void CeEdit::EmptyUndoBuffer()
	{ Edit_EmptyUndoBuffer(m_hWnd); }
inline void CeEdit::SetTabStops(int cTabs, int* lpTabs)
	{ Edit_SetTabStops(m_hWnd, cTabs, lpTabs); }
inline int CeEdit::FmtLines(BOOL fAddEOL)
	{ return Edit_FmtLines(m_hWnd, fAddEOL); }
inline int CeEdit::GetFirstVisibleLine()
	{ return Edit_GetFirstVisibleLine(m_hWnd); }
inline int CeEdit::SetReadOnly(BOOL fReadOnly)
	{ return Edit_SetReadOnly(m_hWnd, fReadOnly); }
inline int CeEdit::GetPasswordChar()
	{ return Edit_GetPasswordChar(m_hWnd); }
inline void CeEdit::SetPasswordChar(TCHAR ch)
	{ Edit_SetPasswordChar(m_hWnd, ch); }

///////////////////////////////////////////////////////////////////////////////
inline CeDateTime::CeDateTime()
	{}

inline CeDateTime::~CeDateTime()
	{}

inline BOOL CeDateTime::Create(LPCTSTR lpszText, DWORD dwStyle, DWORD dwExStyle, const RECT& rect, HWND hParentWnd, UINT nID, HINSTANCE hInst)
	{ return CeWnd::Create(DATETIMEPICK_CLASS, hParentWnd, rect, lpszText, dwStyle, dwExStyle, nID, hInst); }

//   returns GDT_NONE if "none" is selected (DTS_SHOWNONE only)
//   returns GDT_VALID and modifies *pst to be the currently selected value
inline DWORD CeDateTime::GetSystemtime(LPSYSTEMTIME pst) const
	{ return DateTime_GetSystemtime(m_hWnd, pst); }

//   if gd==GDT_NONE, sets datetimepick to None (DTS_SHOWNONE only)
//   if gd==GDT_VALID, sets datetimepick to *pst
//   returns TRUE on success, FALSE on error (such as bad params)
inline BOOL CeDateTime::SetSystemtime(DWORD gd, LPSYSTEMTIME pst)
	{ return DateTime_SetSystemtime(m_hWnd, gd, pst); }

//   modifies rgst[0] to be the minimum ALLOWABLE systemtime (or 0 if no minimum)
//   modifies rgst[1] to be the maximum ALLOWABLE systemtime (or 0 if no maximum)
//   returns GDTR_MIN|GDTR_MAX if there is a minimum|maximum limit
inline DWORD CeDateTime::GetRange(LPSYSTEMTIME rgst) const
	{ return DateTime_GetRange(m_hWnd, rgst); }

//   if GDTR_MIN, sets the minimum ALLOWABLE systemtime to rgst[0], otherwise removes minimum
//   if GDTR_MAX, sets the maximum ALLOWABLE systemtime to rgst[1], otherwise removes maximum
//   returns TRUE on success, FALSE on error (such as invalid parameters)
inline BOOL CeDateTime::SetRange(DWORD gdtr, LPSYSTEMTIME rgst)
	{ return DateTime_SetRange(m_hWnd, gdtr, rgst);	}

//   sets the display formatting string to sz (see GetDateFormat and GetTimeFormat for valid formatting chars)
//   NOTE: 'X' is a valid formatting character which indicates that the application
//   will determine how to display information. Such apps must support DTN_WMKEYDOWN,
//   DTN_FORMAT, and DTN_FORMATQUERY.
inline BOOL CeDateTime::SetFormat(LPCTSTR sz)
	{ return DateTime_SetFormat(m_hWnd, sz); }

inline COLORREF CeDateTime::SetMonthCalColor(int iColor, COLORREF clr)
	{ return DateTime_SetMonthCalColor(m_hWnd, iColor, clr); }

inline COLORREF CeDateTime::GetMonthCalColor(int iColor)
	{ return DateTime_GetMonthCalColor(m_hWnd, iColor); }

//   returns the HWND of the MonthCal popup window. Only valid
// between DTN_DROPDOWN and DTN_CLOSEUP notifications.
inline HWND CeDateTime::GetMonthCal() const
	{ return DateTime_GetMonthCal(m_hWnd); }

inline void CeDateTime::SetMonthCalFont(HFONT hfont, BOOL fRedraw)
	{ DateTime_SetMonthCalFont(m_hWnd, hfont, fRedraw); }

inline HFONT CeDateTime::GetMonthCalFont() const
	{ return (HFONT) DateTime_GetMonthCalFont(m_hWnd); }

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Kenny G
United States United States
No Biography provided

You may also be interested in...

Pro
Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web02 | 2.8.190425.1 | Last Updated 5 Oct 2000
Article Copyright 2000 by Kenny G
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid