Populating Image in MDI Window

forum.connectivity (2000-2005) & forum.td.connectivity (2005-2010)
NewsgroupServer
Robot
Robot
Posts: 115421
Joined: 24 Feb 2017, 12:00
Location: World wide

Populating Image in MDI Window

Post by NewsgroupServer » 19 Mar 2009, 04:26

 Posted by:  charlierp 

Hi All,
Is there any Possibility to populate any images in MDI window (i.e., in
Backround image )in Centura TD 1.5.1.

Much appreciation if you could provide some sample file in CTD
1.5.1

Thanks

Regards,
Balaji.S

NewsgroupServer
Robot
Robot
Posts: 115421
Joined: 24 Feb 2017, 12:00
Location: World wide

Populating Image in MDI Window

Post by NewsgroupServer » 26 Mar 2009, 16:37

 Posted by:  Sergio Cerda 

MDI Actions

On SAM_Create
! --- Set background image
Call SetImage( hWndMDI, 'MMM1024HCOLOR.BMP', 0, 0, STRING_Null,
BCKG_STRECH )

where the constants

! --- Constantes to SetImage() function . Library BACKGROUND.DLL
Number: BCKG_MOSAIC = 0
Number: BCKG_STRECH = 1
Number: BCKG_NORMAL = 2

External Library
Library name: BACKGROUND.DLL
ThreadSafe: No
Function: SetImage
Description:
Export Ordinal: 0
Returns
Boolean: BOOL
Parameters
Window Handle: HWND
String: LPSTR
Number: INT
Number: HANDLE
String: LPCSTR
Number: INT
Function: SetGradient
Description:
Export Ordinal: 0
Returns
Boolean: BOOL
Parameters
Window Handle: HWND
String: LPVOID
Number: INT
Number: INT
Function: FillGradient
Description:
Export Ordinal: 0
Returns
Boolean: BOOL
Parameters
Window Handle: HWND
Number: HANDLE
String: LPVOID
Number: INT
Number: INT
Function: SetAVI
Description:
Export Ordinal: 0
Returns
Boolean: BOOL
Parameters
Window Handle: HWND
String: LPSTR
Function: SetColor
Description:
Export Ordinal: 0
Returns
Boolean: BOOL
Parameters
Window Handle: HWND
Number: LONG
Function: LoadPicture
Description:
Export Ordinal: 0
Returns
Number: HANDLE
Parameters
String: LPSTR
Number: INT
Number: HANDLE
String: LPCSTR
Receive Number: LPSHORT

Regards.

Sergio Cerda

Attachment: Background1.zip

Return to “td.connectivity”

Who is online

Users browsing this forum: [Ccbot] and 0 guests