Hi Fellows,
I want to pass an icon through a procedure that builds a dialog. This icon maybe either one of the 6 default Windows icons (%IDI_QUESTION and those) or an icon from the application's resource file.
The problem is that windows' default icons have a long integer ID, while icons in the .PBR file are referred to as string literals.
How can I overcome that difference, using only 1 param with the procedure? I tried 'ID_Icon AS ANY' here, but PB does not seem to know that one.
To make myself clear: I don't want to load the icon in advance (i.e. just before calling the sub) and then pass its handle (too much overhead I'm afraid). The icon should be loaded within the procedure.
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
I want to pass an icon through a procedure that builds a dialog. This icon maybe either one of the 6 default Windows icons (%IDI_QUESTION and those) or an icon from the application's resource file.
The problem is that windows' default icons have a long integer ID, while icons in the .PBR file are referred to as string literals.
How can I overcome that difference, using only 1 param with the procedure? I tried 'ID_Icon AS ANY' here, but PB does not seem to know that one.
To make myself clear: I don't want to load the icon in advance (i.e. just before calling the sub) and then pass its handle (too much overhead I'm afraid). The icon should be loaded within the procedure.
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
Comment