CmyFC.h
上传用户:hyb6888
上传日期:2016-01-24
资源大小:5186k
文件大小:2k
- #include "myHDC.h"
- #include <imm.h>
- #if !defined(defCmyFC)
- #define defCmyFC
- #define GETLPRESULTSTR(lpcs) (LPTSTR)((LPBYTE)(lpcs) + (lpcs)->dwResultStrOffset)
- typedef struct _tagGENEMSG{
- UINT msg;
- WPARAM wParam;
- LPARAM lParam;
- } GENEMSG, NEAR *PGENEMSG, FAR *LPGENEMSG;
- class CmyFC
- {
- public:
- CmyFC();
- bool ValIsWinNT;
- int myfileExtname(char *filefullname,char *extname);
- int getallfile(char *path1,char **filelist);
- int myGetPath(char *filefullname);
- BOOL MyIsWinNT();
- void TransparentBlt2(HDC hdc0,int nX0,int nY0,int nW0,int nH0,
- HDC hdc1,int nX1,int nY1,int nW1,int nH1,
- UINT Tcol);
- OutTextPic(char *ss,long x,long y,HDC hDC1,HDC hDC2, long dw , long dh,double a,double zoom,HDC backhdc);
- OutPicture(long x,long y,HDC hDC1,long startx,long starty,HDC hDC2, long dw , long dh,double a);
- POINT ReadRegPos(char *PathName);
- int WriteRegPos(char *PathName,POINT SavePos);
- DWORD ReadReg(char *valname);
- DWORD ReadReg(char *pathname, char *valname);
- int WriteReg(char *valname,DWORD keyVal);
- int WriteReg(char *pathname,char *valname,DWORD keyVal);
- int WriteReg(HKEY mainhkey,char *pathname,char *valname,DWORD keyVal);
- int RegReadString(char *strPath, char *valname);
- int RegReadString(char *pathname,char *valname, char *keyVal);
- int RegSaveString(char *strPath, char *valname);
- int RegSaveString(char *pathname,char *valname, char *keyVal);
- int RegSaveString(HKEY mainhkey ,char *pathname,char *valname, char *keyVal);
- bool DirExists(const char *dir);
- BOOL FileExists(const char *dir);
- long GetIsUpdate();
- BOOL SoftKbdProcess(char *chss,int mykey,char*retSendCH);
- BOOL GenerateMessage(HIMC hIMC, LPDWORD lpdwTransKey,LPGENEMSG lpGeneMsg);
- BOOL IMESenChiApp(HIMC hIMC, char *ss);
- int CALLBACK browseCallbackProc(HWND hwnd, UINT uMsg, LPARAM /*lp*/, LPARAM pData) ;
- bool browseFile(char * target,int buflen, HWND owner /* = NULL */, bool save /* = true */, char* initialDir /* = Util::emptyString */, char* types /* = NULL */);
- bool browseDirectory(char *Title,char *target, HWND owner /* = NULL */) ;
- };
- #endif // !defined(defCMyWnd)