XPopup: defines.h Source File

- Main Page
- Classes
- Files
- Related Pages

- File List
- File Members

# defines.h

Go to the documentation of this file.

    00001
    00015 #pragma warning( disable : 4530 )
    00016
    00017 #ifndef _DEFINES_H_
    00018 #define _DEFINES_H_
    00019
    00020 #define _WIN32_WINNT 0x0501
    00021 #define _WIN32_IE 0x0501
    00022
    00023 #include <windows.h>
    00024 #include <vector>
    00025 #include <commctrl.h>
    00026 #include "classes/tstring/tstring.h"
    00027
    00028 #define XPOP_DLL_VERSION 1
    00029 #define XPOP_DLL_SUBVERSION 1
    00030 #define XPOP_DLL_BUILD 3
    00031 #define XPOP_DLL_STATE "Official Release"
    00032
    00033
    00034 #define mIRC_ID_OFFSET 6000
    00035
    00036 #define XPOPUPMENUCLASS "XPopupMenu32"
    00037
    00038
    00039 #define mIRC( x ) int __stdcall WINAPI x( HWND mWnd, HWND aWnd, char * data, char * parms, BOOL, BOOL )
    00040
    00042 #define ret( x ) { lstrcpy( data, x ); lstrcat( data, "\0" ); return 3; }
    00043
    00048 typedef struct {
    00049
    00050   DWORD  mVersion;
    00051   HWND   mHwnd;
    00052   BOOL   mKeep;
    00053
    00054 } LOADINFO;
    00055
    00060 typedef struct {
    00061
    00062   HANDLE m_hFileMap;
    00063   LPSTR m_pData;
    00064   HWND m_mIRCHWND;
    00065
    00066 } mIRCDLL;
    00067
    00075 typedef struct {
    00076
    00077   int switch_flags[26];
    00078   int switch_cap_flags[26];
    00079
    00080 } XSwitchFlags;
    00081
    00082 void mIRCError( const char * data );
    00083 void mIRCeval( const char * text, char * res );
    00084 void mIRCcom( const char * data );
    00085
    00086 LRESULT CALLBACK mIRCSubClassWinProc( HWND mHwnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
    00087 BOOL isMenuBarMenu( HMENU hMenu, HMENU hMatch );
    00088
    00089
    00090 #endif // _DEFINES_H_