GeodesicDragon
Vendor
- Aug 17, 2008
- 28
I am the creator of a (very popular) program that allows users to create their own Windows-based message boxes. In order to make said program better, I am updating it to allow the user to create messages using icons from a certain list I've created (thus, I am using a .RES file).
The following code creates the message box:
msgtext = Text in message box.
msgtype = Depends on what type of box the user wants to create. Example: vbInformation or vbOKonly.
msgtitle = Obvious.
lstCustomIcons.ListIndex refers to the ID number of the icon in the .RES file.
msgtext, msgtype and msgtitle are in brackets because every time I tried to compile the program, I got a message saying 'ByRef argument type mismatch'.
So, I wrapped them in the brackets, and that fixed it, but now the custom icons are not showing. What am I doing wrong? I followed the instructions set out by Hypetia ( but it's just not working.
GeodesicDragon
curquhart.co.uk
The following code creates the message box:
Code:
MsgBoxEx((msgtext), (msgtype), (msgtitle), , lstCustomIcons.ListIndex)
msgtext = Text in message box.
msgtype = Depends on what type of box the user wants to create. Example: vbInformation or vbOKonly.
msgtitle = Obvious.
lstCustomIcons.ListIndex refers to the ID number of the icon in the .RES file.
msgtext, msgtype and msgtitle are in brackets because every time I tried to compile the program, I got a message saying 'ByRef argument type mismatch'.
So, I wrapped them in the brackets, and that fixed it, but now the custom icons are not showing. What am I doing wrong? I followed the instructions set out by Hypetia ( but it's just not working.
GeodesicDragon
curquhart.co.uk