Archive: CreateBitmap without using NsDialogs


CreateBitmap without using NsDialogs
I'm not using a custom dialog generated by nsDialogs. I know we can create a bitmap using the NSDialogs , hence the question on how to display a bitmap on an existing MUI dialog .


You can modify the mui page either through editing the appropriate nsh file (compile time) or calling the appropriate (nsDialogs) functions in the page's show function (run time).


Thanks MSG for the reply.
However not able to display with the NSD function.
I need to show a bitmap image on the install files dialog. Hence as mentioned by you created a custom functon that gets called in the show of the install files page.
In the function I use
NSD_CreateBitmap and NSD_SetImage but to no avail.
The same function works on a NSD dialog if generated.


for the internal pages, you'll have to edit the UI file with e.g. reshacker to add a bitmap control that you can then manipulate.

Example:
http://nsis.sourceforge.net/ModernUI...stalling_files

You can probably just take the modified UI file from there, move it to another position by code if you need to, and set the bitmap using NSD - all the other code on that page for changing the bitmap wouldn't be needed.


Easiest thing to do is use Resource Hacker as Animaether suggests but it is possible using the System plug-in (which is partly what the nsDialogs macros use):
http://nsis.sourceforge.net/Image_in...dow_background

Stu


Thanks Guys,

I used the LoadImage API for getting this done.