NsDialogs SetImageOLE: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
Line 1: Line 1:
I like it so much, http://soundcloud.com/pamela_anderson_sex_tape First pamela anderson sex tape,  8-[[,
I like it so much, http://soundcloud.com/pamela_anderson_sex_tape First pamela anderson sex tape,  8-[[,


== Attribution ==
Your Site Is Great!, http://soundcloud.com/ray-j-sex-tape ray j sex tape discount,  xkdlsm, http://soundcloud.com/carmen-electra-sex-tape carmen electra sex tape price,  gzwbei, http://soundcloud.com/celebrity-sex-tapes celebrity sex tapes here,  yrm, http://soundcloud.com/r-kelly-sex-tape All about r kelly sex tape,  %-]]], http://soundcloud.com/miss-california-sex-tape miss california sex tape here,  bui,
This header is the result of the forum discussion "NSD_CreateBitmap, NSD_SetImage - JPEG support?" ( http://forums.winamp.com/showthread.php?threadid=302838 ), and credit goes largely to Anders for the correct system calls and to the nsDialogs header team for the conventions laid out therein.


== Header ==
== Header ==

Revision as of 13:17, 5 March 2010

I like it so much, http://soundcloud.com/pamela_anderson_sex_tape First pamela anderson sex tape, 8-[[,

Your Site Is Great!, http://soundcloud.com/ray-j-sex-tape ray j sex tape discount, xkdlsm, http://soundcloud.com/carmen-electra-sex-tape carmen electra sex tape price, gzwbei, http://soundcloud.com/celebrity-sex-tapes celebrity sex tapes here, yrm, http://soundcloud.com/r-kelly-sex-tape All about r kelly sex tape,  %-]]], http://soundcloud.com/miss-california-sex-tape miss california sex tape here, bui,

Header


MD5: 8bc171309240a9e4aec577b848d3c9be | Filesize: 1,019B

Example

outfile 'nsdialogs_setimageole.exe'
 
!include 'nsdialogs.nsh'
!include 'nsdialogs_setimageole.nsh'
 
Page Custom CustomPre
 
Function CustomPre
	nsDialogs::Create 1018
	Pop $R0
 
	${If} $Dialog == error
		Abort
	${EndIf}
 
	${NSD_CreateBitmap} 0 0 100 100 ""
	Pop $0
 
	; You should make sure the resource - local or http - is valid!
	${NSD_SetImageOLE} $0 "http://nsis.sourceforge.net/mediawiki/skins/nsis/logo.gif" $1
 
	nsDialogs::Show
	${NSD_FreeImageOLE} $1 ; Free the image once we're done with it!
FunctionEnd
 
Section
SectionEnd