How does CRhinoUiBitmapButton works ?
If aBUTTON is a CRhinoUiBitmapButton :
bool bLOAD = aBUTTON .LoadBitmap( IDB );
does’nt work… No image are drawn on the button…
An idea ?
Regards
How does CRhinoUiBitmapButton works ?
If aBUTTON is a CRhinoUiBitmapButton :
bool bLOAD = aBUTTON .LoadBitmap( IDB );
does’nt work… No image are drawn on the button…
An idea ?
Regards
CRhinoUiBitmapButton is very similar to MFC’s CBitmapButton class. So this class is always an option for you.
When loading resources out of your plug-in (DLL), make sure the module state is set to that of your plug-ins. Otherwise, MFC will look for resources in Rhino.exe, not your DLL.
void CMyDialog::LoadBitmaps()
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
m_button1.AutoLoad(IDC_BUTTON1, this, IDB_BUTTON1);
m_button2.AutoLoad(IDC_BUTTON2, this, IDB_BUTTON2);
m_button3.AutoLoad(IDC_BUTTON3, this, IDB_BUTTON3);
// ...
}
– Dale