K
kelvin.koogan
I want to dynamically change the icon displayed in a status bar panel.
I've created the icons in the resource file, app.rc, e.g. IDI_MYICON.
How can I load this icon and display it in the StatusBarPanel?
The auto-generated code does:
this->StatusBarPanel->Icon = (__try_cast<System:rawing::Icon *
But this loads the icon from form1.resX and the icons I've defined
aren't in there.
TIA,
KK
I've created the icons in the resource file, app.rc, e.g. IDI_MYICON.
How can I load this icon and display it in the StatusBarPanel?
The auto-generated code does:
this->StatusBarPanel->Icon = (__try_cast<System:rawing::Icon *
(resources->GetObject(S"StatusBarPanel.Icon")));
But this loads the icon from form1.resX and the icons I've defined
aren't in there.
TIA,
KK