BOOL SetBackgroundBitmap(UINT nImageID) - call this function to set the bitmap as the background for the whole application. The bitmap file needs to be added into the application first. The parameter "nImageID" will be something like "IDB_BITMAP1". This function is normally called before all other GUI objects are initialized, such as in CMainFrame's constructor. The function returns TRUE if it is successful.
void DeleteBackgroundBitmap() - delete the background bitmap. This function does not need to be called if SetBackgroundBitmap() is not used. It can be put in CMainFrame's destructor.
BOOL PaintBackgroundBitmap(CDC* pDC) - paint a window's background using the background bitmap. Call this function in a window's OnPaint() if it is not derived from a JPICT class. The function returns TRUE if it is successful.
BOOL SetDialogBitmap(UINT nImageID) - call this function to set the bitmap as the background for all the dialogs in the application. The bitmap file needs to be added into the application first. The parameter "nImageID" will be something like "IDB_BITMAP1". This function is normally called before all other GUI objects are initialized, such as in CMainFrame's constructor. The function returns TRUE if it is successful.
void DeleteDialogBitmap() - delete the dialog bitmap. This function does not need to be called if SetDialogBitmap() is not used. It can be put in CMainFrame's destructor.
BOOL PaintDialogBitmap(CDC* pDC) - paint a window's background using the dialog's bitmap. Call this function in a window's OnPaint() if it is not derived from a JPICT class. The function returns TRUE if it is successful.
BOOL SetDialogModifyColor(COLORREF color) - modify the dialog background color by offset the dialog bitmap with the pass-in color value. The value can be negative such as RGB(-33,-20,-25). The function returns TRUE if it is successful.
int DispMessageBox(LPCTSTR lpszText, UINT nType = MB_OK, UINT nIDHelp = 0) - functions just like AfxMessageBox but displays background bitmap with the message.
int DispMessageBox(UINT nIDPrompt, UINT nType = MB_OK, UINT nIDHelp = 0) - functions just like AfxMessageBox but displays background bitmap with the message. The first parameter "nIDPrompt" is the string id. The function will try to load the string from resource by this id.