Michael Stark
Usenet Archive
- Joined
- Aug 3, 2000
- Messages
- 50
- Reaction score
- 0
Hello all !
I'd like to make an icon-frame which I define in a mdl-resource-file but take the icons from a (maybe fixed) resource file. Is this possible ? I could open the resource-file (plus the once from the application) but once they tell me that they could not find the icon with the id, or they could not find the dialog
in the .r-file i define a
DialogBoxRsc DIALOGID_DWDbrFrame
with inside a
DItem_IconCmdFrameXRsc ICONCMDFRAMEID_MyApp =
{
1, 3, NOHELP, MHELP, 0, TXT_CmdFrameTitle,
{
{IconCmd, 10001, ""},
{ToolBox, TOOLBOXID_MyCommands, "MYAPP"},
{IconCmd, 10002, ""},
}
};
......
in mdl i do:
mdlDialog_open (NULL, DIALOGID_DWDbrFrame) (or the same with the opened second resource-file)
any suggestions ?
Thanks Michael
PS: I'd like to let the icons be built by a user, with the icon editor, and call them only with the id or name (if possible)
I'd like to make an icon-frame which I define in a mdl-resource-file but take the icons from a (maybe fixed) resource file. Is this possible ? I could open the resource-file (plus the once from the application) but once they tell me that they could not find the icon with the id, or they could not find the dialog
in the .r-file i define a
DialogBoxRsc DIALOGID_DWDbrFrame
with inside a
DItem_IconCmdFrameXRsc ICONCMDFRAMEID_MyApp =
{
1, 3, NOHELP, MHELP, 0, TXT_CmdFrameTitle,
{
{IconCmd, 10001, ""},
{ToolBox, TOOLBOXID_MyCommands, "MYAPP"},
{IconCmd, 10002, ""},
}
};
......
in mdl i do:
mdlDialog_open (NULL, DIALOGID_DWDbrFrame) (or the same with the opened second resource-file)
any suggestions ?
Thanks Michael
PS: I'd like to let the icons be built by a user, with the icon editor, and call them only with the id or name (if possible)