Global ccgLib Functions |
09/02/99 |
Author:
Daniel.Lindh@Home.se ICQ: 7983755 HOMEPAGE: home.bip.net/CyberCow Copyright © Cyber Cow 1995 - 1999. |
Overview |
#include <ccgLib.h>
|
Members | ||||||||||||||||||||||||||||||||||||
Constants
Enums
Functions Public:
|
getSaveAsFile | ||||||
CString getSaveAsFile( CString asFileName, CString asFileNameExtension ) Return Value:
Arguments:
Remarks: Show a "save as" dialog window, and lets the user to select a directory. Example: CString lsFileName; lsFileName = getSaveAsFile( "ReadMe.txt", "txt" ); |
fileExist | ||||
E_ccErrRet fileExist( CString lsFileName ) Return Value:
Arguments:
Remarks: Check if the specified file exist. Example: if ( fileExist( "ReadMe.txt" ) == CCSUCCEDED ) { ... } |
AfxMessageBoxF | ||||||||
int AfxMessagBoxF(UINT nType, PSTR sz,...) Return Value:
Arguments:
Remarks: This small utility funtion will simply put up a userdefined message box with a string formatted like printf(). Example: if ( AfxMessageBoxF( MB_RETRYCANCEL, "Error on line: %d", errLine) == IDRETRY ) { ... } |
ccDelay | ||||
void ccDelay( int aiTime ) Return Value:
Arguments:
Remarks: Delay the program . Example: ccDelay( 1000 ); |
surfTo | ||||||||
E_ccErrRet surfTo(CString asWebPage, CWnd * pParentWnd, E_BROWSER_TYPE aBrowserType /* = CC_DEFAULT */ ) Return Value:
Arguments:
Remarks: Open a specific web browser with a specific URL. Example: surfTo( _T("www.codeguru.com", NULL); |
mailTo | ||||||||
E_ccErrRet mailTo(CString asMailTo, CWnd * pParentWnd, E_MAILCLIENT_TYPE aMailClientType = CC_DEFAULT ) Return Value:
Arguments:
Remarks: Open a specific web browser with a specific URL. Example: mailTo( _T("cybercow@home.se", NULL); |
isSHIFTPressed | ||||
int isSHIFTPressed() Return Value:
Arguments:
Remarks: Check if SHIFT is pressed. Example: if (isSHIFTPressed() ) { ... } |
isCTRLPressed | ||||
int isCTRLPressed() Return Value:
Arguments:
Remarks: Check if CTRL is pressed Example: if (isCTRLPressed() ) { ... } |