#ifndef __OCXDEFINE_H__
#define __OCXDEFINE_H__

#include <windows.h>
//Button ID for MainToolbarHideButton() function, you can call this 
//function to hide or show the specified button in a toolbar control
//For example,
//Hide form filling button
//m_ctrlPDFOcx.MainToolbarHideButton(ID_TOOLBAR_FORM,TRUE);
//Show form filling button
//m_ctrlPDFOcx.MainToolbarHideButton(ID_TOOLBAR_FORM,TRUE);
#define ID_TOOLBAR_OPEN                 32772
#define ID_TOOLBAR_SAVE                 32774
#define ID_TOOLBAR_PRINT                32773
#define ID_TOOLBAR_EMAIL                32776
#define ID_TOOLBAR_HAND                 32777
#define ID_TOOLBAR_COMMENT              32778
#define ID_TOOLBAR_CONTENT              32779
#define ID_TOOLBAR_FORM                 32877
#define ID_TOOLBAR_LINKTOOL             32878
#define ID_TOOLBAR_COMMENT_TEXT         32780
#define ID_TOOLBAR_COMMENT_NOTE         32781
#define ID_TOOLBAR_COMMENT_STAMP        32782
#define ID_TOOLBAR_COMMENT_PENCIL       32783
#define ID_TOOLBAR_COMMENT_LINE         32784
#define ID_TOOLBAR_COMMENT_RECTANGLE    32785
#define ID_TOOLBAR_COMMENT_ELLIPSE      32786
#define ID_TOOLBAR_CONTENT_TEXT         32787
#define ID_TOOLBAR_CONTENT_LINE         32788
#define ID_TOOLBAR_CONTENT_RECTANGLE    32789
#define ID_TOOLBAR_CONTENT_ELLIPSE      32790
#define ID_TOOLBAR_CONTENT_POLYLINE     32791
#define ID_TOOLBAR_SELECT_TEXT          32792
#define ID_TOOLBAR_SELECT_IMAGE         32793

//Messages for SetMessageCallbackFunc() function
#define WM_MESSAGECALLBACK                  (WM_USER+1001)
#define WM_ADD_COMMENT_FINISHED             (WM_USER+1014)
#define WM_SELECT_A_COMMENT                 (WM_USER+1015)
#define WM_SELECT_A_TEXTAREA                (WM_USER+1016)
#define WM_SELECT_A_TEXTAREA_BEGIN          (WM_USER+1017)
#define WM_SELECT_A_TEXTAREA_PROCESSING     (WM_USER+1018)
#define WM_ADD_COMMENT_GET_PREDEFINED_TEXT  (WM_USER+1019)
#define WM_ADD_COMMENT_CLICK                (WM_USER+1020)

typedef struct SSELECTEDTEXTCONTENTtag{
    RECT rect;
    char *text;
}SSELECTEDTEXTCONTENT,*LPSSELECTEDTEXTCONTENT;
typedef struct STEXTDATAtag{
    const char *text;
    int  len;
}STEXTDATA,*LPSTEXTDATA;

//Compression methods for ConvertPDFToImage() function
#define     COMPRESSION_NONE        1    /* dump mode */
#define     COMPRESSION_CCITTRLE    2    /* CCITT modified Huffman RLE */
#define     COMPRESSION_CCITTFAX3   3    /* CCITT Group 3 fax encoding */
#define     COMPRESSION_CCITT_T4    3    /* CCITT T.4 (TIFF 6 name) */
#define     COMPRESSION_CCITTFAX4   4    /* CCITT Group 4 fax encoding */
#define     COMPRESSION_CCITT_T6    4    /* CCITT T.6 (TIFF 6 name) */
#define     COMPRESSION_LZW         5    /* Lempel-Ziv  & Welch */
#define     COMPRESSION_OJPEG       6    /* !6.0 JPEG */
#define     COMPRESSION_JPEG        7    /* %JPEG DCT compression */

#endif//__OCXDEFINE_H__