SECBitmapDialog Class
class SECBitmapDialog: public CDialog
The SECBitmapDialog class is derived from CDialog. It implements a dialogue with a bitmap in the background. SECBitmapDialog supports three different bitmap modes.
Defined in: SECBMPDG.H
SEC_BITMAP_TILE
The bitmap is tiled in the dialog background.
SEC_BITMAP_CENTER
The bitmap is placed in the center of the dialog background.
SEC_BITMAP_FILL
The bitmap is sized so that it completely fills the dialog background.
Comments
The BMPDIALOG32 sample in the \SAMPLES\TOOLKIT\STANDARD\UIEXT\BMPDIALOG32\ directory demonstrates how to create SECBitmapDialogs with all three display options.
Example
Create a tiled brickwall bitmap
The example shows how to create a dialog with a brickwall bitmap tiled in the background.
SECBitmapDialog bmpDlg(IDD_MODAL_BMPDLG);
bmpDlg.SetBitmap(IDB_BRICKWALL, SEC_BITMAP_TILE);
bmpDlg.DoModal();
Class Members
Public Members
SECBitmapDialog(UINT nDialogID, CWnd* pParent = NULL)
Creates a modal dialogue
SECBitmapDialog(LPCTSTR lpcDialogName, CWnd* pParent = NULL)
Creates a modal dialogue
BOOL SetBitmap(UINT nResBitmapID, int nType = SEC_BITMAP_TILE)
Sets the specified bitmap in the dialogue
BOOL SetBitmap(LPCTSTR lpcResBitmapName, int nType = SEC_BITMAP_TILE)
Sets the specified bitmap in the dialogue
BOOL SetBitmap(stingray::foundation::SECImage* pImage, int nType = SEC_BITMAP_TILE)
Sets the specified bitmap in the dialogue